Knowledge Base - Setup Sub-Id Tracking

To track revenue and lead counts, you will need to add the tracking code to your landing and conversion pages, for example: a bridge page that sends a user to an external link, shopping cart checkout success, or a contact form.

Automating sub id insertion is recommended, so this does not need to be added again on future pages. Here are some examples and code to do this:

 

 

A. Adding a sub-id to a external affiliate link:

Every major affiliate network that we're aware of supports sub-id reporting. This lets you know where your traffic came from and how much revenue is earned from that click. Sub-id's may be referred to as sub, uv, SourceID, sid, or similar depending on the agency that you're using as an affiliate. Please see their documentation or contact us if you cannot get this value in your link.

Scenario: A user clicked on this affiliate link. To get back revenue earned from this click, a sub-id needs to be inserted into the link.
Solution: Add the supplied tracking javascript code to the bridge page, and add the sub-id in the link before redirecting the user.

Example code in PHP: Download
Example code in .Net: Download
Example code in Python: Download

B. Adding a sub-id to local shopping cart script:

Track checkouts in real-time with a shopping cart. There's no need to upload reports for shopping carts. Just add the code to your checkout page with some basic values.

Scenario: A user checked out items from a shopping cart on your site.
Solution: Add the supplied tracking code to the successful checkout page and insert the shopping cart customer or checkout ID (or optional customer name), and cart total $ to the supplied tracking code. This data will be updated in real time to the platform.

Example code in PHP: Download
Example code in .Net: Download
Example code in Python: Download

C: Adding a sub-id to a local goal page, such as a contact form submission:

Scenario: A user filled out a form on your site that you consider a goal.
Solution: Add the supplied tracking code to the form confirmation page and insert the value of this conversion. This data will be updated in real time to the platform.

Example JavaScript tracking code:

Modify the following to add a value of 75 cents to the worth of the conversion:

var $productValue = ".75";

Further assistance:

We're glad to help you setup sub-id tracking if you are not familiar with this step. Please create a support ticket if you need additional assistance.

Details

Created : 2015-03-29 20:27:18, Last Modified : 2015-03-29 20:27:18

User Comments