What is the Conversion Tracking Script?
The Conversion Tracking script is added to a page that signifies that a conversion has happened. This could define a successful demo form submission, quote request form submission, e-commerce purchase, mailing list sign-up, or any other on-site action that you want to track. The script is triggered whenever the page is loaded by a visitor.
The Conversion Tracking script does three things:
Checks if the user is a referral by checking for the existence of a Referral Rock cookie.
Creates a referral record and attributes it to the correct referring member, if the user is a referral.
Optionally adds parameters to the new referral record from your site. Examples include the referral's name, email address, and purchase amount.
This script does the hard work of creating a referral upon a sale or other desired action and adding information (parameters) about the new referral.
The Conversion Tracking script is usually placed in one of the following areas:
A Thank You Page after a successful form submission.
A Confirmation Page after a successful e-commerce purchase.
A Welcome Page after a successful user sign-up.
It is best practice to place the script on a page that is only loaded once per user per conversion. Avoid placing the Conversion Tracking Script on a page that the same user will likely see multiple times, like a dashboard or homepage.
If you have more than one page that represents a conversion, you should add the Conversion Tracking Script to each page that represents a conversion. For instance, you may have slightly different thank you or welcome pages for different services or plans. Ensuring the script is on every page that represents a conversion will ensure that referrals are not missed.
Conversion Tracking Settings
To configure your conversion tracking settings, visit our help article