How to integrate Google Universal Analytics with Zoho PageSense?

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. 
This page will provide you details on how you can integrate Zoho PageSense with Google Analytics using the following methods:
  1. Using gtag.js global snippet (launched in beta in 2017), and
  2. Using analytics.js library tracking snippet
  1. 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. 
  1. You will be able to use this integration exclusively with A/B test and split URL test experiments in PageSense. 
You will be able to find the tracking code for Google Universal Analytics here:

Google Analytics Tracking code for Zoho PageSense Integration

Set 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.
Make a note of the Tracking ID of your Google Analytics Account as well.

Set 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.

Add the tracking code 

While using gtag.js global snippet

01. Copy the following line of code and paste it immediately below the gtag ('config','UA-XXXXXXXX-X') code of your website as shown in the figure.



'custom_map': {'dimensionValue': 'zoho'}

});
$( document ).ready(function() {
window.ZAB.GAIntegFunc();
});



Before adding the code:





After adding the code:






02. Now replace the “Value" key in " dimensionValue" with the Custom Dimension Number that you obtained from Step 04 of the Setup PageSense procedure.



While using analytics.js library tracking snippet

1. Paste the UA tracking code in the <head> tag of the HTML to the experiment web page under the Zoho PageSense code snippet. 
The UA tracking code should look like this:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '<UA ID>', 'auto');
ga('send', 'pageview');
</script>
2. Find the part of the code that appears below: 

ga('send', 'pageview'); 

 3. Replace it with the following lines of code:

setTimeout(function(){
window.ZAB.GAIntegFuncOld();
ga('send', 'pageview');
},200);

4. The entire script should look like this:

<script src="https://cdn.pagesense.io/js/xxxxxxxx/xxxxxxxxxxxxxxxxxxxxx.js"></script>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '<UA ID>', 'auto');
setTimeout(function(){
window.ZAB.GAIntegFuncOld();
ga('send', 'pageview');
},200);
</script>
 Replace UA ID with the Tracking ID you had noted in step 1.

Create 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. 


    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Get started with Zoho Sign

            in a few quick steps!

            Download Help Guide





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

                      Write to us:  support@zohoforms.com


                            




                          

                          Zoho Marketing Automation

                            Zoho Sheet Resources

                             




                                Zoho Forms Resources


                                  Secure your business
                                  communication with Zoho Mail


                                  Mail on the move with
                                  Zoho Mail mobile application

                                    Stay on top of your schedule
                                    at all times


                                    Carry your calendar with you
                                    Anytime, anywhere




                                          Zoho Sign Resources

                                            Sign, Paperless!

                                            Sign and send business documents on the go!

                                            Get Started Now


                                                Zoho SalesIQ Resources



                                                    Zoho TeamInbox Resources



                                                            Zoho DataPrep Resources



                                                              Zoho DataPrep Demo

                                                              Get a personalized demo or POC

                                                              REGISTER NOW


                                                                Design. Discuss. Deliver.

                                                                Create visually engaging stories with Zoho Show.

                                                                Get Started Now











                                                                                      • Related Articles

                                                                                      • Integrate Google Analytics with PageSense via Google Tag Manager

                                                                                        You can effortlessly integrate Google Analytics (GA) with Zoho PageSense using Google Tag Manager. GTM is a free tool that allows you to quickly add and update your code (tags) on your website without having to manually write a single line of code. ...
                                                                                      • Integrate Google Ads with Zoho PageSense

                                                                                        By integrating PageSense with Google Ads, you can easily track which Google ad campaigns you ran on your website or landing page brought in the most clicks, impressions, and conversions for your business, in addition to key metrics like cost per ...
                                                                                      • Setup your Zoho PageSense account

                                                                                        Zoho PageSense provides you with the right set of tools to test personalized website experiences, track user's key metrics, and further analyze their behavior on your website in real time to boost visitor conversions. To sign up with PageSense, all ...
                                                                                      • Integrate Mixpanel with Zoho PageSense

                                                                                        If you are using Mixpanel to monitor your website's traffic and get more visibility on how customers interact with your site pages, then integrating with PageSense can help you extract powerful insights about your A/B and Split URL experiment data. ...
                                                                                      • Integrate Zoho SalesIQ with PageSense

                                                                                        If you are using Zoho SalesIQ, the live chat software used to connect and solve customer queries, then integrating with Zoho PageSense will let you easily view your customers' behavior on the website in real time, and further provide enhanced ...
                                                                                      Wherever you are is as good as
                                                                                      your workplace

                                                                                        Resources

                                                                                        Videos

                                                                                        Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                        eBooks

                                                                                        Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                        Webinars

                                                                                        Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                        CRM Tips

                                                                                        Make the most of Zoho CRM with these useful tips.



                                                                                          Zoho Show Resources