{"id":3300,"date":"2015-05-09T03:53:02","date_gmt":"2015-05-09T03:53:02","guid":{"rendered":"https:\/\/139.59.23.56\/predictive3\/?page_id=3300"},"modified":"2020-12-29T15:52:09","modified_gmt":"2020-12-29T15:52:09","slug":"add-tracking-script-to-website","status":"publish","type":"page","link":"https:\/\/help.predictiveresponse.com\/?page_id=3300","title":{"rendered":"Add Tracking Script to Your Website"},"content":{"rendered":"<p>To track if campaign members click\u00a0to landing pages or other pages on your site, it is required that the Predictive tracking script is\u00a0added to the page source for your site. This script is\u00a0similar to the kind of tracking script\u00a0you would use for Google Analytics. If your website uses page templates, we suggest you add the script\u00a0to the template so that it propagates through the entire website.<\/p>\n<p><a href=\"https:\/\/help.predictiveresponse.com\/wp-content\/uploads\/2014\/08\/Important.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-2489\" src=\"https:\/\/help.predictiveresponse.com\/wp-content\/uploads\/2014\/08\/Important.png\" alt=\"Important\" width=\"25\" height=\"25\" \/><\/a>\u00a0<strong>Important<\/strong>:<\/p>\n<ul>\n<li>If you are placing the tracking script\u00a0on a page that is a redirection page, make sure the script is entered\u00a0above the redirection.<\/li>\n<li>Place the Predictive tracking script just after the\u00a0<strong>&lt;title&gt;&lt;\/title&gt; tag<\/strong>. Our two lines should\u00a0be above any other javascripts you may have in place on your website to ensure that no preceding javascripts will accidentally prevent tracking.<\/li>\n<li>Most websites re-use one file for common content, so it&#8217;s likely that you won&#8217;t have to place the code snippet on every single page of your website.<\/li>\n<\/ul>\n<p>Use the following https script to enable click tracking for your emails. <a href=\"https:\/\/help.predictiveresponse.com\/?page_id=7191\">Click here for tracking script<\/a>.<\/p>\n<h1>Parameterized Pages<\/h1>\n<p>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.<\/p>\n<p>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\u00a0the\u00a0script linked here:\u00a0<a href=\"https:\/\/help.predictiveresponse.com\/?page_id=7193\">parameterized tracking script<\/a>.<\/p>\n<p>The Page # referenced in the script will then be available\u00a0for scoring and campaign branching. Your campaign owner will find the Page # referenced on the Scoring tab\u00a0accessed from a Predictive campaign.\u00a0An example of what your page code will look like is below:<\/p>\n<p><em>&lt;html&gt;<br \/>\n&lt;head&gt;<\/em><br \/>\n<em>&lt;script language=&#8221;JavaScript&#8221; src=&#8221;https:\/\/aws.predictiveresponse.net\/trac.js&#8221;&gt; &lt;\/script&gt;<\/em><br \/>\n<em>&lt;script language=&#8221;JavaScript&#8221;&gt; embedTracking(12); &lt;\/script&gt;&lt;\/head&gt;<br \/>\n<\/em><em>&lt;body&gt;This is the default landing_page&lt;br&gt;&lt;br&gt;<br \/>\n&lt;\/body&gt;&#8230;<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To track if campaign members click\u00a0to landing pages or other pages on your site, it is required that the Predictive tracking script is\u00a0added to the page source for your site. This script is\u00a0similar to the kind of tracking script\u00a0you would use for Google Analytics. If your website uses page templates, we suggest you add the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/pages\/3300"}],"collection":[{"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3300"}],"version-history":[{"count":18,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/pages\/3300\/revisions"}],"predecessor-version":[{"id":7203,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/pages\/3300\/revisions\/7203"}],"up":[{"embeddable":true,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/pages\/5"}],"wp:attachment":[{"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}