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'll 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, change the Search Text to:

<head>

  1. In the Search & Replace area of the page, change the Replacement Text to:

<head>
<script>
window.zuko = window.zuko || {};
window.zuko.attributes = window.zuko.attributes || {};
window.zuko.attributes.variant = "__SS_LISTCAMPAIGNCOUNTED{__SS_TCID__:__SS_VGID__}{,}__";
</script>

‍The end results should look like this:

Sitespect Zuko Console Image

‍Zuko will then read the attributes in the data layer when tracking is started on your form.

Note: The variant value must be less than 85 characters long. Please use a different MACRO with a shorter format if necessary.

And finally:

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

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


Step 3 - Using the Integration

Once your WATTS Site Variation is in place, and you have initiated Zuko tracking, 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.

For example, here the variant selected is ‘123:987’. Your variants are likely to be formatted like this, with the campaign ID and variant ID together.

Sitespect Variant in Zuko Navigation Bar

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

You can filter whole-page reports, like Form Data or Field Data. Or there are specific charts where you can compare the sessions by their variants.

For example:

Sitespec attribute segments for Zuko completion data



Zuko form segment comparison data segmented by Sitespect variants

Zuko field segment comparison report split by Sitespect variants



Read more about custom attributes here.

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: sales@zuko.io
Support: support@zuko.io