How to install the Zoho PageSense snippet code in a website | Help Guide.

Manually install the snippet on your website

To start tracking visitor behavior and run experiments on your website, you must install the Zoho PageSense snippet.
The snippet is a small piece of JavaScript code that enables PageSense to collect visitor data, run experiments, and deliver personalized experiences on your website.
NotesNote : This is a one-time setup. Once installed, the same snippet will automatically work for all experiments within the selected website/project.
Before You Begin
Make sure you have:
  • Access to your website’s HTML source code
  • Permission to edit the <head> section of your website
  • The correct PageSense website/project selected
Each website/project in PageSense has a unique snippet, so ensure you are using the correct one.

Access the Snippet

  1. Log in to your Zoho PageSense account
  2. Navigate to Settings
The Snippet section under Website settings in Zoho PageSense allows you to install and manage the PageSense tracking code on your website. Installing this snippet is the first and most important step to begin collecting visitor behavior data and running optimization experiments on your site.



Once the snippet is added to your website, PageSense starts tracking visitor interactions such as clicks, scrolls, page visits, conversions, and other behavioral metrics. This data is used across PageSense features including A/B testing, Split URL testing, Personalization, Heatmaps, Funnels, Form Analytics, and Goals.
Installing the snippet correctly ensures that PageSense can track visitors consistently and provide accurate analytics and experimentation results

Choose the Right Snippet Type

PageSense provides three types of snippets. Choosing the right one is important for performance and experiment accuracy.
Synchronous Code
Asynchronous Code
Smart Code (Recommended)
Synchronous Code
Synchronous code loads scripts in sequence from the <head> section.



  • Ensures controlled execution order
  • More stable for certain environments
  • Slightly impacts page load speed
 Best for:
Cases where strict script execution order is required
Example: If your website depends on sequential script loading, synchronous code ensures PageSense runs in the correct order.

Asynchronous Code
Asynchronous code loads alongside other scripts on the page.



  • Faster loading alongside other resources
  • Does not block page rendering
  • May cause flickering in experiments
Best for:
Basic tracking use cases (not recommended for experiments)
Example: Suitable if you only want to track visitor data without running A/B tests or personalization.

Smart Code (Recommended)
Smart Code is the most advanced and recommended snippet type.



  • Automatically optimizes script loading
  • Reduces page flickering during experiments
  • Improves page rendering performance
  • Ensures smoother A/B testing and personalization
Best for:
A/B Testing, Split URL Testing, Personalization, and overall performance optimization
Example: When running a personalization campaign, Smart Code ensures users directly see the personalized version without a visible flicker from the original page.


Idea
Use Smart Code for the best balance of performance, accuracy, and user experience.

Warning
Paste the PageSense snippet code right below the <head> tag of your website. This will allow the code to run immediately without any delay, as and when any changes are made in your site.
Here's how the PageSense snippet code might look like on your web page script.
Notes
Note:
Notes
  • Please note that when embedding the snippet, it’s crucial not to modify or minify the code to ensure proper functionality.

  • Multiple tests can be performed with the same snippet installed on your web page. However, the snippet will be unique for each project in PageSense.

  • If you want to run an experiment from a different PageSense user account, the existing snippet needs to be removed from your website pages, and replaced with the new code generated from the current PageSense account because the snippet for each project is unique

Verify Snippet Installation

After adding the snippet, verify if it is correctly installed:
  1. Go to the Verify Installation section
  2. Enter your website URL
  3. Click Verify
Verification Result
  • Success Message (Green Tick): Snippet installed correctly and tracking is active.
Note - In some cases, verification may not appear if the page takes too long to load, but tracking may still work in the backend.
        
  • Error Message: Indicates an issue with installation



Info
If you see an error message in red, it could be due to any of the following reasons:
  • You've pasted a different snippet on your webpage's HTML code.

  • There are typographical mistakes in the code.

  • Your web page takes longer than 10seconds to load than usual.

  • You're trying to add the snippet multiple times to your webpage's HTML.

Troubleshooting Verification Issues
If verification fails, check the following:
  • Incorrect or incomplete snippet added
  • Typographical errors in the code
  • Snippet added multiple times
  • Page load time exceeding 10 seconds
The verification message will not show up in your browser window, if and when your web page loads for more than 10 seconds. However, in such instances, the PageSense snippet status will be successful at the back-end and be ready to track visitors' data on your website. You can verify the presence of the snippet by following the below steps:

Alternative Verification Method

If the verification tool does not confirm installation:
  1. Copy the Project Key from Settings
  2. Open your website
  3. Right-click → Inspect
  4. Go to the Network tab
  5. Paste the Project Key in the filter
  6. Refresh the page


If the script appears, the snippet is successfully installed.
Once the snippet is installed, PageSense begins tracking visitor data using cookies.
It is recommended to:
  • Enable a cookie consent banner
  • Inform users about tracking and personalization 


This helps ensure compliance with privacy regulations.

Additional Installation Options

Google Tag Manager (GTM)
You can install the snippet using GTM instead of editing your website code.
Example: Add the PageSense snippet as a custom HTML tag in GTM and trigger it on all pages.











We’ve designed this documentation to guide you every step of the way. If you need further assistance or have any questions, don’t hesitate to contact us at support@zohopagesense.com - we’re always here to help!


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            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


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                        Manage your brands on social media


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            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 TeamInbox 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

                                                                                                                                    • Website Settings

                                                                                                                                      The Website section in Zoho PageSense allows you to configure settings related to how PageSense connects with and interacts with your website. This includes installing the tracking snippet, enabling browser notifications, and managing how visitors ...
                                                                                                                                    • Install the PageSense code snippet on Instapage

                                                                                                                                      Instapage helps you turn clicks into customers by optimizing your landing pages. Like other website building softwares(such as Wix, Shopify, and Zoho Sites), the PageSense snippet code can be added to Instapage websites without the need to install ...
                                                                                                                                    • Install the Zoho PageSense snippet code on your website

                                                                                                                                      To run experiments and track your visitor data, you will need to install the Zoho PageSense snippet code to the experiment pages on your website. No other information is collected or communicated by the extension. Adding the snippet code to your ...
                                                                                                                                    • Install the PageSense code snippet on Wix

                                                                                                                                      If you're using Wix, cloud-based software to build and customize your online business website, you can add the PageSense snippet code on your Wix sites to start quickly start tracking and understanding all of your website data with ease. This ...
                                                                                                                                    • Install the PageSense code snippet on Squarespace

                                                                                                                                      Squarespace is a website building platform that helps you to build creative websites using its amazing drag and drop editor and showcase your work online.  This guide helps you with few simple steps to add the PageSense snippet code on your ...
                                                                                                                                      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