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.
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.
How to setup the Conversion Tracking Script on your website
- Go to Settings > Integrations then select Conversion Script or click here.
- Copy the code in the grey box and paste it into the HTML of the conversion page right before the closing
Conversion Settings for your Individual Program
Once you set up your Integration Scripts, it is set up for the whole site on the account level. However, if you are interested in running multiple programs with different conversion tracking logic, we allow you to add Conversion Settings on the program level. For instance, if you want Referrals to be automatically approved for one program and not the another or set an expiration date for the cookie, you can do so in Conversion Settings.
To access your Conversion settings, go to your Program > Edit Program > Additional Options and select Conversion Settings.
Testing your Conversion Tracking Script
Once you have completed the Conversion Tracking Script setup, we recommend you test them in order to ensure they are working correctly and you are pulling all the necessary Referral information.
The Integration Event Log
The Integration Event Log is a great place to make sure that referrals and their information is being captured properly. Using the Event Log, you can view a list of all the integration events that are associated with your Referral Rock account. When you select details, you are able to view all the data being passed by the integration scripts and confirm that the desired parameters are being passed correctly.
Using the Integration Event Log, you can confirm you are tracking conversions properly. However, if you check out your Event log and notice it is missing or pulling incorrect data, you might be making one of these common mistakes:
What Is Happening
What Causes It
How to Fix It
No events under 'List All' in the Event Log.
Integration Script is not firing.
Event Log is showing conversions but metadata is missing or incorrect.
Metadata is not correctly mapped to parameters.
Event Log is showing: Info - No Tracking ID.
User did not go through a referral link before conversion.
This happens when the conversion script fires but the user does not have a Referral Rock cookie from a member on their browser. If you are testing conversion tracking, ensure that you click through a live member's referral link. This can also happen if users switch devices, as member cookies are device specific.