AdRoll's SmartPixel installation

Permalink
I'm trying to insert the following code strong into the body tag of each web page on my site:


<script type="text/javascript">
adroll_adv_id = "B65CKWOFE5DL5L6C7DXFNL";
adroll_pix_id = "SDAK35LWIRCGBH7GM4YGRN";
/* OPTIONAL: provide email to improve user identification */
/* adroll_email = "username@example.com"; */
(function () {
var _onload = function(){
if (document.readyState && !/loaded|complete/.test(document.readyState)){setTimeout(_onload, 10);return}
if (!window.__adroll_loaded){__adroll_loaded=true;setTimeout(_onload, 50);return}
var scr = document.createElement("script");
var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com");
scr.setAttribute('async', 'true');
scr.type = "text/javascript";
scr.src = host + "/j/roundtrip.js";
((document.getElementsByTagName('head') || [null])[0] ||
document.getElementsByTagName('script')[0].parentNode).appendChild(scr);
};
if (window.addEventListener) {window.addEventListener('load', _onload, false);}
else {window.attachEvent('onload', _onload)}
}());
</script>


The code is for SmartPixel, used by the re-targeting software company called Adroll (https://www.adroll.com/), and is required for what I need to do. Adroll offers the following guidelines with regards to installation:

Instructions for placing your SmartPixel

Copy your pixel code below
Insert the code before the </body> tag on all pages on your website (secure & non-secure). Learn more
Once placed correctly, the status of the SmartPixel button on your All Campaigns page will become "SmartPixel Active" (it may take up to 24 hours to detect)


I'm new to Concrete 5 (WordPress has been my platform of choice until now). Can anyone tell me how to insert the code noted above into the body tag of each web page on my site?

Cheers

 
mesuva replied on at Permalink Best Answer Reply
mesuva
You can use the 'Tracking Code' feature that is built in. Most often this is used for Google Analytics, but it can be any kind of script you want on every page of your site.

http://documentation.concrete5.org/editors/dashboard/system-and-mai...

Just search for 'Tracking Codes' in the Intelligent Search.
nike201 replied on at Permalink Reply
outstanding, thank you! I appreciate the lighting-fast response, too. It works now