Skip to content
  • There are no suggestions because the search field is empty.

Create Custom Goals

Custom Goals is a feature in Visually to help you track customer behavior throughout the website. This feature enables you to track elements, buttons, sign-up buttons and pages outside of the generally available goals for your experiences. 

This page walks through setting up custom goals and FAQ's.

1. Setting up a custom goal

2. FAQ's



setting up a custom goal?

To track Custom Goals, be it from an element in a page or tracking visits in a page, you can set it up via the Custom Goals section in your Account Settings.

1. Access this via the Account Settings > Global Rules.
Select "Add Custom Goal", and start adding in your JavaScript to track your elements or actions.dc36b03f-af25-4aae-b93d-0a7845e06cac

Tracking an Element or Button

Custom goals can help you track specific elements or buttons including If you want to track a button for a survey, a Feedback link or a navigation link, then using a Custom Goal can help you track them. 
To help you get started on this, w
e have a pre-built template for tracking specific elements or buttons in a page. You can change the button or action that it tracks.

f2db22ff-c4d0-438f-8c80-6efb870528fc 
Tracking Custom Pages

You can also track visits to custom pages in your website. In this example below, we are tracking visits to collection pages: 

if (location?.pathname?.includes(`/collections/`)) {
 trackCustomEvent();
}


Save the above and then wait a few minutes for it to reflect in the site.

How to Confirm if your custom Goal is Firing?

  1. Go to any page you are trying to set the goal for ('/collections/' from the example above).

  2. Open network and filter ‘api/s?token=‘
    One of the events will have in the body ‘event_type: CUSTOM_EVENT’

  3. Refresh the page if it isn't appearing.


FAQ's

How many Custom Goals can I create?

You can create as many Custom Goals as you like and they can be renamed to any name of your choosing.
As for the tracking, the custom goal can be confirmed by their Click ID. Each created Custom Goal will follow the sequence 1,2,3,…

e89114ef-1540-4daf-9c9b-47ce544c1da3
 
Can we create custom goals to track Checkout Metrics?

Currently this is not available due to the checkout limitations in Shopify. Tracking of specific fields, click on CTAs, etc is not yet available due to the limitations of running code in checkout. 

 



Having Trouble?

We’ve got your back.
Email us at support@visually.io or reach out on chat for help with setup or troubleshooting