What is a custom event goal and how do I configure one?

What is a custom event goal and how do I configure one?

Custom event goals help in tracking user interactions on elements that cannot be determined just by clicks on buttons or links on a website. Few webpages have dynamic updating of content or Single Page Applications like signup forms, webinar registration forms, and contact us forms, where the URL of the page remains the same even after the visitor interacts and submits the form successfully on your site.

In this case, you can’t track clicks and conversions on these form submits using the default goals like element clicks, links to track, or time spent on page goals. This is why MA helps you create custom event goals to bind them with the success function of the actual event or element on the webpage, thereby recording the conversions seamlessly.

Custom event goals are generally useful in tracking the following user interactions on your web pages:
  1. Form submissions with no thank you or confirmation page URL.
  2. Clicks on outbound links
  3. Clicks on video
  4. Downloads (such as PDFs)
To implement a custom event goal, you need to add a two-line customized code snippet in the post success function of the webpage element you want to track conversions for.