Custom Event Goal in Zoho PageSense | Setup Guide & Event Tracking Implementation

Custom Event Goal


What is a Custom Event Goal?

A Custom Event Goal allows you to track specific user actions that cannot be measured using standard click-based or time-based tracking.

Unlike Element Click or Link Click goals, which track visible interactions, a Custom Event Goal tracks a JavaScript event that is triggered only when a defined condition is successfully completed.

Every time the defined event fires, PageSense records it as a conversion. Each visitor is counted once per goal, ensuring accurate and reliable reporting.

This goal type is ideal when the conversion:

  • Does not redirect to a new page

  • Happens after backend validation

  • Occurs within dynamic content

  • Requires confirmation before counting as success

When Should You Use a Custom Event Goal?

Use a Custom Event Goal when:

  • A form submission does not redirect to a thank-you page

  • A success message appears on the same URL

  • You want to track newsletter signups

  • You want to track webinar registrations

  • You want to track contact form submissions

  • A payment confirmation happens without page reload

  • You need to track success inside login areas

  • The conversion happens after backend processing

If your website does not change URLs after a successful action, Custom Event is the most accurate way to measure conversions.

Example Scenario

Imagine you have a contact form on: https://example.com/contact-us

When a visitor submits the form successfully, a “Thank You” message appears on the same page, but the URL does not change. Since there is no new destination page to track, Element Click or Link Click will not accurately measure real submissions. In this case, you add a Custom Event inside the form’s success function. When the form submission succeeds, the event triggers, and PageSense records it as a conversion.

How to Set Up a Custom Event Goal

Step 1: Click New Goal
  1. In the Track module, click New Goal to start creating your goal.

  1. This opens the goal configuration setup.


Step 2: Choose Custom Event as the Goal Type
  1. Enter a clear and descriptive name for your goal. 
    Example: Zylker Custom
  1. From the list of available goal types, select Custom Event.

  1. Click Next to proceed.
Step 3: Define Pages to Track
  1. In this step, you define where the custom event may be triggered. These are the pages where the success action can occur.

  1. PageSense provides an Advanced option that gives you flexibility through 8 URL match types.


Below is the explanation of each: 


 URL Match Type
When to use
Example
What it tracks
Simple URL
When tracking a single static page
Only that specific page 
Exact URL
When the URL must match exactly
Tracks only the exact URL entered
URL contains
When tracking multiple related options
Tracks all URLs containing “/product”
Starts with
When tracking a section or a folder
Tracks all blog pages
Ends with
When tracking pages with a common ending
Tracks any URL ending in ''thank-you''
Matches with
For flexible partial matchinghttps://zylkerautomation.zohocommerce.com/offer
Tracks URL matching similar patterns
Regex
For dynamic or complex URL structures
Tracks product pages with numeric IDs
Page GroupsWhen tracking a predefined group of URLsZylker – Marketing Campaign Pages
Tracks all URLs inside the defined group

How to Configure

  • Select the appropriate match type.

  • Enter the corresponding URL value.

  • Add multiple conditions if the event can trigger across different sections.

Choose carefully to avoid over-tracking or missing conversions.



Step 4: Add Pages Not to Track ( optional )

If the event may trigger on multiple sections but should not count everywhere:

  • Use Pages Not to Track

  • Apply the same URL match types to define exclusions.

  1. This prevents invalid or inflated conversions.

Step 5: Select or Create the Custom Event
  1. In this step, you define the event that will trigger the conversion.

You can:

Select an Existing Event

Choose from previously created custom events if available.


Create a New Custom Event

  • Type the event name in the input field.
    Example: form_success

  • Click + Create 'form_success'.

The event will now be created and saved.


Once created, the same custom event can be reused across other experiments in PageSense.

The event name must exactly match the name used in your website code.



Step 6: Copy and Implement the Event Tracking Code

After creating the event, PageSense generates a custom event API code.

You must copy this code and paste it into your website’s JavaScript.

The code should be placed inside the function that runs after the action is successfully completed.


For example:

  • Inside the success callback of a form submission

  • Inside an AJAX success response

  • After payment confirmation

  • After backend validation

The event should fire only after the action is successfully completed.

If placed incorrectly, conversions may:

  • Not be recorded

  • Be recorded prematurely

  • Be triggered multiple times

It is recommended to implement this with developer assistance.



Step 7: Review and Launch

Before launching:

  • Confirm page targeting rules

  • Check exclusion conditions (if any)

  • Ensure the event name matches exactly

  • Confirm code is implemented correctly


Once verified, click Launch.

PageSense will begin tracking conversions whenever the event is triggered.


 



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

                                                                                                                                    • Goals overview in Zoho PageSense

                                                                                                                                      <br> Measure the actions that define success In Zoho PageSense, a Goal represents a measurable visitor action that indicates success - such as clicking a button, navigating to a link, spending time on a page, or ...
                                                                                                                                    • Set Goals

                                                                                                                                      After creating and saving your personalized experience, configure goals to measure how visitors interact with the experience and determine whether it drives the intended conversion.Goals help you track whether visitors complete specific actions after ...
                                                                                                                                    • Set goals and launch your push notification

                                                                                                                                      The primary goal of any notification is to evoke a desired action from the users reaching your website. You can easily track this by creating different types of goals for your targeted audience on PageSense. These can trigger automated ...
                                                                                                                                    • Track Goal

                                                                                                                                      The trackGoal() method is used to record goal conversions for Full Stack A/B Testing experiments in PageSense. It records the conversion events in PageSense only for the users who qualify for the experiment. This API can be invoked with or without ...
                                                                                                                                    • Element Click Goal

                                                                                                                                      <br> What is an Element click? An Element Click Goal allows you to track when a visitor clicks on a specific element on your website, such as a button, image, CTA, banner, tab or ...
                                                                                                                                      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