How to create a custom events goal in Zoho PageSense | Help Guide

Create a custom event goal

Custom event goal is different from the other type of goals (Element ClicksLink Clicks, and Time Spent on Page) in PageSense where you can track clicks and record the success metrics of common behavior of a user on your web page with no unique destination or confirmation page URL. For example, form submissions are one of the most conversion actions on a website that uses the Custom Event goal. This includes tracking newsletter sign ups, registering for an upcoming webinar, or submitting a contact request. Implementing custom event requires you to add a custom code to your site (with the help of developers) in order to track actual conversions under your reports page. These conversion metrics are often the key goal of email, social media, and other digital marketing campaigns.
 

To understand the custom event goal better, let'imagine you have a 'Contact Us' form on your website 'example.com/contact-us' that displays a 'ThankYou message' to visitors upon submitting the form. In this case, the page URL remains the same even after the visitor submits the form. For such instances, you can use the Custom Event goal in the destination page to track successful conversions whenever a specific condition is achieved. Implementing the custom goal requires you to add the two line Javascript code in the success function of the AJAX request. This event code will be triggered after the form is submitted to send the required conversion metrics to PageSense. 

To create a custom event as your goal:
1. Click Goals on the left pane, then click the New Goal button. 

2. Choose the goal type as Custom Event, then add a descriptive name for it. 



3. Enter the URL of the web page on which you want to track your custom event and click Next.



4. Enter a specific name for your custom event, then click 
+Create 'event name' to create a new custom event or select from the previously created ones (if it's already available). 
For example, let us say you want to track the successful submission of your newsletter 'subscribe' form that does not redirect visitors to a confirmation or thank you page. 

You will be able to access the same custom event across other experiments in PageSense.
5. Based on your input in the field, PageSense will generate an event API code. Copy and paste the API code inside the exact <script> tag of your web page, depending on the event you would like to track. 



In our example, the <script> tag should be placed inside the success response of the form on your web page. The code snippet should appear as follows on your web page before and after the implementation of 'form_success' custom event goal on your web page.
<code snippet before custom event implementation--->             <code snippet after custom event implementation---> 
                                  

Whenever a visitor clicks on the 'subscribe' button on your newsletter form, Zoho PageSense will track the successful conversions on your web page.
 
6. Click Launch to finish setting up the goal and start running it on your web page.
You will be able to track conversions and analyze your visitor metrics for the set goal under the REPORTS tab.