Add Tracking Script to Your Website | Predictive Response

Add Tracking Script to Your Website

To track if campaign members click to landing pages or other pages on your site, it is required that the Predictive tracking script is added to the page source for your site. This script is similar to the kind of tracking script you would use for Google Analytics. If your website uses page templates, we suggest you add the script to the template so that it propagates through the entire website.

Important Important:

  • If you are placing the tracking script on a page that is a redirection page, make sure the script is entered above the redirection.
  • Place the Predictive tracking script just after the <title></title> tag. Our two lines should be above any other javascripts you may have in place on your website to ensure that no preceding javascripts will accidentally prevent tracking.
  • Most websites re-use one file for common content, so it’s likely that you won’t have to place the code snippet on every single page of your website.

Use either the http or https script to enable click tracking for your emails. Click here for tracking script.

The decision can be made on which script to use based on the following pros and cons to each:

  • Using the https:// codes on the non securely served pages will work, but will take longer for the initial page load due to the security check that is performed in background by the browser.
  • Using the http:// codes on the securely served pages will cause the secure page when loading, to display the warning that the page contains both secure and non secure content.

Parameterized Pages

You may need to provide specific embedded code on a page generated by parameters specific to a user. For example, a payment receipt page could be a standard URL like https://www.domain.com/receipt.php but the parameters make it a receipt for a particular user making the URL https://www.domain.com/receipt.php?usrid=123456.

For these kind of pages, use the following tracking method. For these, each landing page requires a unique page identifier. On your landing page(s) you will need to include the script linked here: parameterizedtrackingscript.

The Page # referenced in the script will then be available for scoring and campaign branching. Your campaign owner will find the Page # referenced on the Scoring tab accessed from a Predictive campaign. An example of what your page code will look like is below:

<html>
<head>

<script language=”JavaScript” src=”http://aws.predictiveresponse.net/http/trac.js”> </script>
<script language=”JavaScript”> embedTracking(12); </script></head>
<body>This is the default landing_page<br><br>
</body>…

 

(0)(0)