Google Analytics

How to integrate Google Universal Analytics with Zoho PageSense

With the Google Universal Analytics(UA) integration, you can track the web metrics of each variation in your experiment running on Zoho PageSense. 

Note: You will be able to use this integration exclusively with A/B test and split URL test experiments in PageSense. 

This page details how you can integrate an A/B test (or split URL test) in Zoho PageSense with Google Analytics while using gtag.js global snippet (launched in beta in 2017). In case you are using analytics.js tracking snippet, check out this page to know how to integrate with Zoho PageSense.

To enable the integration, make sure you've added the Google Universal Analytics global snippet and Zoho PageSense's code snippet in the pages you want to track. After you set it up once, it will automatically run for all of your experiments.

You will be able to findthe tracking code for Googlw Universal Analytics here:

Google Analytics Tracking code for Zoho PageSense Integration

Step 1: Setting up Google Analytics

  1. Login to your Google Analytics account and select the Admin option on the bottom left corner.
  2. Click Custom Definition under the Property section and select Custom Dimension.
    PageSense and Google Analytics Integration-Custom Definition
  3. Click +New Custom Dimension on the right pane.
    PageSense Integration with Google Analytics- Custom Dimension
  4. Give your Custom Dimension a name and click Create. Make a note of the Custom Dimension Number that you've created.
    NOTE: Make a note of the Tracking ID of your Google Analytics Account as well.

Step 2: Setting up PageSense

  1. Click the Integrations option in the top pane of the experiment listing page. Enable Google Analytics.
  2. Next, open the experiment (A/B or Split URL test) which you wish to integrate with Google Analytics.
  3. Select the Configurations tab in the experiment, under the Integrations section, enable Google Analytics.
  4. Change the Custom Dimension value to match the one you noted in Google Analytics. Make a note of the Experiment ID.
    PageSense Integration with Google Analytics- Change Custom Dimension
  5. Set up your experiment with the required configuration and launch it.

Step 3: Adding the tracking code

  1. In the Google Analytics code snippet, find the following line of code (above the </script> tag):
    gtag ('config','UA-XXXXXXXX-X') 
     
  2. Replace it with:

    gtag('config','UA-XXXXXXXX-X', {

    'custom_map': {'dimensionValue': 'zoho'}
    });
    $( document ).ready(function() {
    window.ZAB.GAIntegFunc();
    }); 

  3. UA-XXXXXXXX-X" is the Tracking ID from Step 1. Replace "Value" in " dimensionValue " with the Custom Dimension Number from Step 1.

Step 4: Creating a custom report in Google Analytics

  1. Select Customization in the left pane and click + New Custom Report
    PageSense Integration with Google Analytics- Create Custom Report
  2. Give your custom report a title.
  3. In the Report Content section, select the custom dimension created as the Dimension Drilldown.
  4. Add the same custom dimension in the Filters section.
  5. Select Regex from the adjacent dropdown. Enter the Zoho PageSense Experiment ID you noted in Step 2 in the text box that appears. 
    PageSense Integration with Google Analytics- Custom Report Content
  6. Click Save to create a custom report.

After launching the Zoho PageSense experiment, you'll be able to view the custom report in Google Universal Analytics. 

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohopagesense.com