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 the following https script to enable click tracking for your emails. Click here for tracking script.

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: parameterized tracking script.

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=”https://aws.predictiveresponse.net/trac.js”> </script>
<script language=”JavaScript”> embedTracking(12); </script></head>
<body>This is the default landing_page<br><br>
</body>…

(0)(0)