AdRoll's SmartPixel installation

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 = "[email protected]"; */
(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) ? "" : "");
scr.setAttribute('async', 'true');
scr.type = "text/javascript";
scr.src = host + "/j/roundtrip.js";
((document.getElementsByTagName('head') || [null])[0] ||
if (window.addEventListener) {window.addEventListener('load', _onload, false);}
else {window.attachEvent('onload', _onload)}

The code is for SmartPixel, used by the re-targeting software company called Adroll (, 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?


View Replies: View Best Answer
mesuva replied on at Permalink Best Answer Reply
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.

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