Collect SiteSpect Campaign Data in Zuko

If SiteSpect is the A/B testing solution that you use, you can easily integrate it with Zuko Analytics. You’ll then be able to track your SiteSpect campaign variants in your Zuko reports. Here’s how to do it.

Step 1 - Getting Ready

Set up your accounts. We’re assuming that you already have a Zuko account. If not, you can sign up here. And that your form is tracking Zuko sessions data.

You’ll also need an SiteSpect account with your campaign setup.

Step 2 - Set up a SiteSpect WATTS Site Variation

To send SiteSpect campaign variants to Zuko, you will need to set up a Site Variation using SiteSpect’s WATTS macros and use our default code snippet. Site Variations allow you to make site-wide changes independent of SiteSpect Campaigns. WATTS macros are dynamic variables or data points that are filled when the Variation is applied.

For example, you can configure SiteSpect to pass the Campaign ID and Variation ID to Zuko.

Create the WATTS Site Variation:

  1. From the main dashboard Select New > Global Variation
  2. Enter a Name, such as Zuko Analytics Site Variation. And ensure the Scope is set to Site
  3. The default Status is Inactive. You will change the Status to Active when you want this Site Variation to be applied.
  4. Click the WATTS button on the right side of the page. This prefills the Site Variation with some key WATTS macros.
  5. To see the code that the WATTS button just inserted, expand the Triggers area of the page by clicking the right arrow next to Triggers and the right arrow next to Search & Replace. It has added a Page Source Trigger that contains the </body> tag. This means that the Site Variation is applied only when the page has a </body> tag. This is important because we want to make these changes only on HTML pages and not for other content. In addition, it has specified that SiteSpect should search for the </body> tag and replace it with the WATTS code you see above. The WATTS macro used here __SS_LISTCAMPAIGNCOUNTED iterates through assigned and counted Campaigns, dynamically injecting actual values for the visitor, and stores this SiteSpect data in a JavaScript variable called ss_watts.

Then, provide this WATTS Site Variation to the Zuko data layer:

  1. In the Search & Replace area of the page, edit the Replacement Text by entering the following immediately before </script>:

window.zuko = window.zuko || {};
window.zuko.attributes = window.zuko.attributes || {};
window.zuko.attributes.variant = ss_watts;

The following is the entire code snippet, which you can copy and paste:

var ss_watts = "__SS_LISTCAMPAIGNCOUNTED{__SS_TCID__:__SS_VGID__}{,}__";
window.zuko = window.zuko || {};
window.zuko.attributes = window.zuko.attributes || {};
window.zuko.attributes.variant = ss_watts;

Note: This variant will be assigned to your Zuko visitor sessions as a custom attribute.

And finally:

  1. You can now change the Status to Active.
  2. Click Save at the bottom of the page.

Step 3 - Using the Integration

Once your WATTS Site Variation is in place, Zuko will automatically track all the variants in your campaigns. To filter your Zuko dashboard by the respective variants you can click on the “Select a Filter” box in the top right hand corner of the dashboard.

Select the variant you want to analyse and Zuko’s dashboard will filter the data just down to that one. 

You are now able to understand how in-form behaviour differs across your campaigns.

See more guides
zuko full colour logo
Formisimo Ltd, Colony, 5 Piccadilly Place, Manchester, M1 3BR
VAT Number: GB181252425
Registered in England as company number 08859680
New Business:
This website stores data such as cookies to enable important site functionality including analytics, targeting, and personalization. By remaining on this web site you indicate your consent.