Form Lead Source Tracking
Adding Hidden Fields to Record Values
This documentation will guide you through adding hidden fields to your form so you can record various attribution data and UTM Parameters. By adding hidden fields to your form our script will automatically fill in the values with the appropriate data that will then be submitted with your form. This will provide granular data. Trigger a conversion on the thank you page to record granular and aggregate data.
Prerequisites
Ensure you have your tracking script installed.
Available Values
First Touch Values
1. ct_ft_referrer: Records the referrer URL of the user’s first visit.
2. ct_ft_landingpage: Records the landing page URL of the user’s first visit.
3. ct_ft_querystring: Records the query string parameters from the first visit URL.
4. ct_ft_timestamp: Records the timestamp of the user’s first visit (in Unix time).
5. ct_ft_human_timestamp: Records the human-readable timestamp of the user’s first visit.
6. ct_ft_utm_id: Records the utm_id parameter from the first visit URL.
7. ct_ft_utm_campaign: Records the utm_campaign parameter from the first visit URL.
8. ct_ft_utm_medium: Records the utm_medium parameter from the first visit URL.
9. ct_ft_utm_source: Records the utm_source parameter from the first visit URL.
10. ct_ft_utm_content: Records the utm_content parameter from the first visit URL.
11. ct_ft_utm_term: Records the utm_term parameter from the first visit URL.
12. ct_ft_ref: Records the ref parameter from the first visit URL.
Last Touch Values
(only recorded if the session count is greater than 1, otherwise first and last touch will be the same.)
1. ct_lt_referrer: Records the referrer URL of the user’s most recent visit.
2. ct_lt_landingpage: Records the landing page URL of the user’s most recent visit.
3. ct_lt_querystring: Records the query string parameters from the most recent visit URL.
4. ct_lt_timestamp: Records the timestamp of the user’s most recent visit (in Unix time).
5. ct_lt_human_timestamp: Records the human-readable timestamp of the user’s most recent visit.
6. ct_lt_utm_id: Records the utm_id parameter from the most recent visit URL.
7. ct_lt_utm_campaign: Records the utm_campaign parameter from the most recent visit URL.
8. ct_lt_utm_medium: Records the utm_medium parameter from the most recent visit URL.
9. ct_lt_utm_source: Records the utm_source parameter from the most recent visit URL.
10. ct_lt_utm_content: Records the utm_content parameter from the most recent visit URL.
11. ct_lt_utm_term: Records the utm_term parameter from the most recent visit URL.
12. ct_lt_ref: Records the ref parameter from the most recent visit URL.
Session Values
1. ct_session_count: Records the total number of sessions (visits) the user has had.
2. ct_pageview_count: Records the total number of page views the user has had during the current session.
Form Example
These hidden fields are used to track and record specific data related to the user’s first and last touchpoints, as well as session details. Add only the hidden field you need.
<form id="myForm"> <input type="hidden" name="ct_ft_referrer"> <input type="hidden" name="ct_ft_landingpage"> <input type="hidden" name="ct_ft_querystring"> <input type="hidden" name="ct_ft_timestamp"> <input type="hidden" name="ct_ft_human_timestamp"> <input type="hidden" name="ct_ft_utm_id"> <input type="hidden" name="ct_ft_utm_campaign"> <input type="hidden" name="ct_ft_utm_medium"> <input type="hidden" name="ct_ft_utm_source"> <input type="hidden" name="ct_ft_utm_content"> <input type="hidden" name="ct_ft_utm_term"> <input type="hidden" name="ct_ft_ref"> <input type="hidden" name="ct_lt_referrer"> <input type="hidden" name="ct_lt_landingpage"> <input type="hidden" name="ct_lt_querystring"> <input type="hidden" name="ct_lt_timestamp"> <input type="hidden" name="ct_lt_human_timestamp"> <input type="hidden" name="ct_lt_utm_id"> <input type="hidden" name="ct_lt_utm_campaign"> <input type="hidden" name="ct_lt_utm_medium"> <input type="hidden" name="ct_lt_utm_source"> <input type="hidden" name="ct_lt_utm_content"> <input type="hidden" name="ct_lt_utm_term"> <input type="hidden" name="ct_lt_ref"> <input type="hidden" name="ct_session_count"> <input type="hidden" name="ct_pageview_count"> </form>