Custom Goals Events
What are Custom Goals?
Custom goal refer to any event outside of the standard Purchase event. In order to start tracking any of these events, please implement our fireCustomGoalScript.
// Args:
// Arg0: The name of the custom goal.
// Arg1: An empty object.
window.Northbeam.fireCustomGoal("add_to_cart", {})
Examples of custom goal that can be tracked via the script:
- Non-Klaviyo Sign Ups
- (All Klaviyo Sign Ups are automatically tracked under the "Email Sign Up" event)
- Add To Carts
- Initiate Checkout
- Quiz Submissions
- Phone Calls
- Leads
- Any other action on your website
How to set up Custom Goals
Step 1: Make sure the Northbeam Pixel is firing
Confirm the following:
- The base Northbeam Pixel is firing on the page of where the event occurs
- This page lives on the same top-level domain as your website
Step 2: Insert the Custom Goal Script
// Args:
// Arg0: The name of the custom goal.
// Arg1: An empty object.
window.Northbeam.fireCustomGoal("add_to_cart", {})
You'll see the 'Goal ID' is labeled as "add_to_cart". Rename this to anything you'd like based on the goal. Ex) "sms_signup", "initiate_checkout", etc.
This line of javascript can be deployed through Google Tag Manager or hardcoded on your website.
Please Note
If deployed through Google Tag Manager via HTML tag, be sure to wrap it inside of script tags: <script> </script>
Step 3: Send Northbeam Your Goal ID
Please submit an inquiry here with the ‘Goal ID’ you’re using (from Step 2). We’ll plug this into our backend, which will enable them in your dashboard view.
Step 4: Add Custom Goals into View
After the events are plugged in, you should see them populate within the Sales menu, under your custom metrics. Don’t forget to add these metrics to a saved view for easy access.
Can we pass any other values, like value?
This script is limited to tracking event count. Therefore, no other values could be passed.
Updated 3 months ago