Macros for Listing Campaign Variations

You can use any of the macros listed in this document in Campaign Variations, since Campaign Variations are a type of Site Variation. All macros work the same way in Campaign Variations as they do on Site Variations, which means that they return information about all the Campaigns the Visitor is assigned to.

However, the following high-level Campaign Variation listing macro is a special macro. You can use it only in a Campaign Variation, not in a Site Variation. It returns only Campaigns the visitor is assigned to that also match only the Campaigns that are associated with the Campaign Variation. Use at least one of the macros in the table below as the {fmt} parameter. Specify a delimiter using {delim}.

__SS_LISTCVCAMPAIGN{fmt}{delim}__ – Returns data on all assigned Campaigns that are associated with the Campaign Variation.
 

Macro Data Type Description
__SS_TCID__ Integer Campaign ID. The TestCampaign_ID listed in the URL when you are editing a Campaign or the ID visible in the tooltip when you hover over the Campaign on the Campaign List.
__SS_TCNAME__ Alphanumeric, cleaned Campaign name. The name of the Campaign.
__SS_VGID__ Integer Variation Group ID. The VariationGroup_ID in an edit Variation Group URL or the tooltip when hovering over the Variation Group Edit button.
__SS_VGNAME__ Alphanumeric, cleaned Variation Group name. The name of the Variation Group.
__SS_UASMTVISITCOUNT__ Integer Vists. The number of visits by the visitor within the context of this Campaign.
__SS_UVISITASMTCOUNTED__ Integer User Visit Counted. A value of 1 if the user is counted in the Campaign; otherwise, it’s 0. This macro also works when using __SS_LISTCAMPAIGNCOUNTED{fmt}{delim}__, but it will always contain a value of 1 since the user will be counted in all Campaigns listed.

Example For __SS_LISTCVCAMPAIGN

To create a list of Campaign IDs that includes the Campaign Variation and that the visitor is assigned to, use the following macro:

__SS_LISTCVCAMPAIGN{__SS_TCID__}{;}__

If the visitor is assigned to three Campaigns, but the Campaign Variation is included in only two, the dynamically generated text looks similar to the following:

52698;48975