Enabling Website Tracking on Your Registration Form
Use website tracking to capture visitor activity from your website forms and pages.
If you are using a Spark registration form on your website, you can enable website tracking through the form’s embed options. This will allow you to see visits to pages and links clicked directly on the contact’s profile and via the form submission logs. You can also gain insight into website activity in an Analytics report from the First Website Visit Date and Most Recent Website Visit Date fields.
Note: Before you begin, make sure your website includes a cookie disclosure that complies with your local website activity tracking legislation. Your web developer should ensure that the tracking script only runs if the contact consents to the tracking cookie.
Enable website tracking on a registration form
- In Spark, go to Menu → Forms → List.
- Create a new form, or select an existing form.
- Open the form’s micromenu, and click Embed Options. Spark uses this path for registration form embed settings and custom form code.
- Choose your preferred embed option, and load the form on your website.
- On a registrant's first visit, the form will create website activity tracking. If a submission already exists in the same browser for the same form, a new activity will be logged against the contact that was previously created.
Add tracking to non-registration form pages
To capture tracking on pages that do not contain the registration form, your web developer should add the following tracking script snippet and inputs to those pages:
<script src="https://spark.re/tracking/script.js" data-script-locator="tracking" data-project-id="<project_id>" data-template-id="<template_id>" data-consent="true" data-events-url="https://spark.re/<company_name>/<project_name>/tracking/events"></script>
The above script snippet is an example; be sure to replace <project_id>, <template_id>, <company_name>, and <project_name> with the actual values for your form! If you are unsure of these values, contact support@spark.re.
<input type="hidden" id="tracking_cookie_id" name="tracking_cookie_id" />
<input type="hidden" id="tracking_page_url" name="tracking_page_url" />
<input type="hidden" id="tracking_referrer" name="tracking_referrer" />
<input type="hidden" id="tracking_initial_landing_url" name="tracking_initial_landing_url" />
<input type="hidden" id="tracking_initial_referrer" name="tracking_initial_referrer" />
<input type="hidden" id="tracking_utm_source" name="tracking_utm_source" />
<input type="hidden" id="tracking_utm_medium" name="tracking_utm_medium" />
<input type="hidden" id="tracking_utm_campaign" name="tracking_utm_campaign" />
<input type="hidden" id="tracking_utm_term" name="tracking_utm_term" />
<input type="hidden" id="tracking_utm_content" name="tracking_utm_content" />
Why don't I see tracking activity for a contact?
Sometimes, a contact may register on the website and you will not see tracking activity, or you may initially receive tracking activity and notice that it stops. Here are some possible reasons:
-
The cookie was never set. The tracking script may not have run, may have failed, or the browser blocked it before creation.
- The cookie was deleted. Some browsers clear cookies after a certain amount of time has passed, and users can manually delete them as well.
- Browser privacy settings blocked it. Safari ITP, Firefox ETP, Brave, and some Chrome settings/extensions can limit tracking cookies.
-
Consent was not given. The user may have rejected the tracking cookie.
-
The user is in incognito/private mode. Some browsers limit persistence or block certain tracking behavior there.
- Ad blockers or script blockers interfered. Tools like uBlock, Ghostery, or privacy DNS filters may block the script.
- The script is not present on non-registration form pages