Installing AnalyticsJS (CaliberMind snippet)
Installing AnalyticsJS on your site is the first step towards tracking page views and other actions on your website. This is the first step towards doing advanced attribution such as Return-on-ad-spend (ROAS) or Chain-based machine learning models.
There are two snippets typically used are:
identify. These working together allows us to match user behavior to their identity when they provide it via a login or form submission (e.g. downloading an e-book.
Step 1 - Install "Page" snippet:
In the <head> of your site, place the below code on every page (replace the
YOUR_SOURCE_ID with your unique tracking script id provided by your CSM team).
This snippet is also available in CaliberMind at https://my.calibermind.com/settings/tracking once you're logged in.
The snippet will load AnalyticsJS onto the page asynchronously, so it won’t affect the page load speed of your site. As soon as the snippet is running on your site, website data will start flowing into your CaliberMind tables.
Step 2 - Install "Identify" snippet:
For basic HTML forms, prepend the snippet below before the </body> tag on the page containing the form you'd like to track.
Basic forms example
**Please note it can take up to 12 hours once a snippet is successfully setup to propogate into CaliberMind.
For HubSpot embedded forms, please see this article on how to attach the identify call.
For Marketo embedded forms, please see this article on how to attach the identify call.
For information on how to set up automatic identification through email forms, check out our knowledgebase article on the topic.