<!DOCTYPE html>
<html><head><title>How do I add tracking pixels or JavaScript code to [...]?</title></head><body>
<strong>How do I add tracking pixels or JavaScript code to [...]?</strong><br />
<br />
In this FAQ, we&rsquo;re going to show you where to install tracking pixels and tracking code in the many popular page building tools and affiliates networks in use. But, before you read further, if you&nbsp;don&rsquo;t already have a good understanding of where to install tracking pixels on an HTML page, the rest of this document will make more sense if you review this FAQ first:<br />
&nbsp;
<table border="0" cellpadding="0" cellspacing="0" style="box-sizing: border-box; border-collapse: collapse; border-spacing: 0px; max-width: 100%;">
	<tbody style="box-sizing: border-box;">
		<tr style="box-sizing: border-box;">
			<td style="box-sizing: border-box; width: 20px;"><a href="/user/faqs.cgi?answer=203"><img height="20" src="//cdn.clickmagick.com/images/user/faqpage.gif" style="box-sizing: border-box; border: 0px; vertical-align: middle;" width="17" /></a></td>
			<td style="box-sizing: border-box;">&nbsp;</td>
			<td style="box-sizing: border-box;"><b><a href="/user/faqs.cgi?answer=203">Where do I install tracking pixels and tracking code?</a></b></td>
		</tr>
	</tbody>
</table>
<br />
<br />
<strong>Installing Tracking Pixels and Tracking Code in Page Builders</strong><br />
<br />
To install tracking pixels and tracking code in Page Builders, you&rsquo;ll generally want to look for the Page Settings of the page you&rsquo;re editing. It&rsquo;s very common to find the Page Settings button displayed as a &ldquo;gear&rdquo; icon: &nbsp;<img alt="" src="//cdn.clickmagick.com/images/user/options.png" /><br />
<br />
After clicking on the Page Settings button, look for something that talks about tracking pixels, tracking code, or JavaScript (since tracking code is usually written in JavaScript).<br />
&nbsp;<br />
Once you&rsquo;ve found the correct area, you&rsquo;ll typically be allowed to insert pixels or code in either the &ldquo;head&rdquo; or &ldquo;body&rdquo; sections.<br />
<br />
Some Page Builders will let you be even more specific by letting you choose between the start or end of a section. The end of the &ldquo;body&rdquo; section (right before the&nbsp;<code>((/body))</code>&nbsp;tag) is often called the &ldquo;footer&rdquo; section, so that&rsquo;s something to keep in mind, particularly if you&rsquo;re trying to insert the Sub-ID code which should go in the footer section.<br />
<br />
<b>Tip:</b> Here&rsquo;s a quick overview of where you should install the different types of tracking pixels and tracking code for best results:<br />
&nbsp;
<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td style="width: 104px;" valign="top"><code>((head))&hellip;<br />
			((/head))</code></td>
			<td style="width: 8px;">&nbsp;&nbsp;</td>
			<td>The FunnelMagick tracking code, JavaScript tracking pixels, and Organic tracking code should all be inserted in the &ldquo;head&rdquo; section of the page if at all possible, but can be inserted in the &ldquo;body&rdquo; section if that&rsquo;s your only choice.<br />
			&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 104px;" valign="top"><code>((body))&hellip;</code></td>
			<td style="width: 8px;">&nbsp;</td>
			<td>Traditional HTML tracking pixels that use the <code>((img))</code> tag <em>must</em> go between the <code>((body))</code> and <code>((/body))</code> tags and as close to the top&nbsp;<code>((body))</code> tag as possible.<br />
			&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 104px;" valign="top"><code>&hellip;((/body))</code></td>
			<td style="width: 8px;">&nbsp;</td>
			<td>JavaScript Sub-ID code (typically used for passing click IDs through pages) must go between the <code>((body))</code> and <code>((/body))</code> tags, as close&nbsp;as possible to the bottom&nbsp;<code>((/body))</code> tag.</td>
		</tr>
	</tbody>
</table>
<br />
<br />
Here&rsquo;s how to add your tracking pixels in some of the most popular Page Builders, shopping carts and eCommerce platforms ...<br />
<br />
<br />
<strong>Add Tracking Pixels and Tracking Code in Leadpages</strong><br />
<br />
Find the page you want to add a pixel to and click the blue &ldquo;Edit&quot; button on the right side. Once in the editor, follow these steps:<br />
&nbsp;
<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td valign="top"><b>1.</b></td>
			<td>&nbsp;&nbsp;</td>
			<td>Click on the Settings option where it says &ldquo;Lead Page Options&rdquo; in the menu on the lefthand side of the page. This will display a pop-up window.</td>
		</tr>
	</tbody>
</table>
&nbsp;

<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td valign="top"><b>2.</b></td>
			<td>&nbsp;&nbsp;</td>
			<td>Select &ldquo;Tracking Codes&rdquo; from the pop-up.</td>
		</tr>
	</tbody>
</table>
&nbsp;

<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td valign="top"><b>3.</b></td>
			<td>&nbsp;&nbsp;</td>
			<td>
			<table border="0" cellpadding="1" cellspacing="1">
				<tbody>
					<tr>
						<td>You will have the option to paste your pixels and code in the &ldquo;Head&rdquo; section, or the &ldquo;End-of-Body&rdquo; section.<br />
						<br />
						Paste your tracking pixels and Sub-ID code in the End-of-Body section and paste your Organic and FunnelMagick tracking code in the Head section.<br />
						<br />
						<img src="//cdn.clickmagick.com/images/user/faqs/faq221leadpages.jpg" /><br />
						<br />
						If you&rsquo;re using Leadpage&rsquo;s Drag &amp; Drop Editor, you can find instructions on how to insert tracking pixels and tracking code here:<br />
						&nbsp;
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td><a href="https://support.leadpages.net/hc/en-us/articles/115007582368-Use-Third-Party-Analytics" target="_blank"><img height="20" src="//cdn.clickmagick.com/images/user/faqpage.gif" width="17" /></a></td>
									<td>&nbsp;</td>
									<td><b><a href="https://support.leadpages.net/hc/en-us/articles/115007582368-Use-Third-Party-Analytics" target="_blank">&nbsp;Adding Tracking Code To Your Leadpage&nbsp;&mdash;&nbsp;Drag &amp; Drop Builder</a></b></td>
								</tr>
							</tbody>
						</table>
						</td>
					</tr>
				</tbody>
			</table>
			</td>
		</tr>
	</tbody>
</table>
<br />
<br />
<strong>Add Tracking Pixels and Tracking Code in ClickFunnels</strong><br />
<br />
Go into the editor for the page you want to add the tracking pixel or track code to, then follow these steps:<br />
&nbsp;
<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td valign="top"><b>1.</b></td>
			<td>&nbsp;&nbsp;</td>
			<td>Select &ldquo;Settings&rdquo; at the top of the page editor.</td>
		</tr>
	</tbody>
</table>
&nbsp;

<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td valign="top"><b>2.</b></td>
			<td>&nbsp;&nbsp;</td>
			<td>Select &ldquo;Tracking Code&rdquo;.</td>
		</tr>
	</tbody>
</table>
&nbsp;

<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td valign="top"><b>3.</b></td>
			<td>&nbsp;&nbsp;</td>
			<td>You will have the option to paste your pixels and code in the &ldquo;Header&rdquo; section, or the &ldquo;Footer&rdquo; section. Remember, &ldquo;Footer&rdquo; is just another way of saying &ldquo;at the end of the Body section, before the&nbsp;<code>((/body))</code>&nbsp;tag&rdquo;.<br />
			<br />
			Paste your Organic and FunnelMagick&nbsp;tracking code&nbsp;in the Header section, and paste your tracking pixels and Sub-ID code in the Footer section.<br />
			<br />
			<img src="//cdn.clickmagick.com/images/user/faqs/faq221clickfunnels.jpg" /></td>
		</tr>
	</tbody>
</table>
&nbsp;

<div class="faq-note"><b>Note:</b> With ClickFunnels, your &ldquo;Thank You&rdquo; pages will almost always be secure&nbsp;<code>https</code>&nbsp;pages so you&rsquo;ll normally want to use&nbsp;<code>https</code>&nbsp;in your pixel URL as well. Simply choose the &ldquo;secure&rdquo; option in the <a href="/user/action/tools/pixelb.cgi" target="_blank"><strong>Pixel Builder</strong></a> which will change the&nbsp;pixel from&nbsp;<code>http</code>&nbsp;to&nbsp;<code>https</code>&nbsp;and you&rsquo;ll be all set.</div>
<br />
<br />
<strong>Add Tracking Pixels and Tracking Code in OptimizePress</strong>&nbsp;<br />
<br />
First click &ldquo;Page Settings&rdquo; in the LiveEditor for the page you want to add a pixel to, then select &ldquo;Other Scripts&rdquo;.<br />
<br />
There are four places you can add pixels and tracking code depending on what you&rsquo;re adding. For ClickMagick pixels select &ldquo;After&nbsp;<code>((body))</code>&nbsp;tag&rdquo;.<br />
<br />
For Organic or FunnelMagick tracking code, select &ldquo;Header&rdquo;, and for Sub-ID code select &ldquo;Footer&rdquo;.<br />
<br />
<img src="//cdn.clickmagick.com/images/user/faqs/faq221optimizepress.jpg" /><br />
<br />
<br />
<strong>Add Tracking Pixels and Tracking Code in InstaBuilder</strong><br />
<br />
To add pixels or tracking code to an InstaBuilder page, enter the page editor and follow these steps:<br />
&nbsp;
<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td valign="top"><b>1.</b></td>
			<td>&nbsp;&nbsp;</td>
			<td>Click on the gear Settings button in the upper-right corner of the page to open the Settings menu.</td>
		</tr>
	</tbody>
</table>
&nbsp;

<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td valign="top"><b>2.</b></td>
			<td>&nbsp;&nbsp;</td>
			<td>Choose &ldquo;Scripts/Codes&rdquo; from the menu.</td>
		</tr>
	</tbody>
</table>
&nbsp;

<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td valign="top"><b>3.</b></td>
			<td>&nbsp;&nbsp;</td>
			<td>The &ldquo;Scripts/Codes&rdquo; panel gives you the option to paste your pixels and code in one of three places, the Head section, the start of the Body section, right after the <code>((body))</code> tag, and in the Footer section, right before the closing <code>((/body))</code> tag.<br />
			<br />
			You should paste tracking pixels in the Body section. Your Organic and FunnelMagick tracking code should go in the Head section. And your Sub-ID code should go in the Footer section.<br />
			<br />
			<img src="//cdn.clickmagick.com/images/user/faqs/faq221instabuilder.jpg" /></td>
		</tr>
	</tbody>
</table>
<br />
<br />
<strong>Add Tracking Pixels and Tracking Code In WordPress</strong><br />
<br />
To add a tracking pixel to a WordPress page simply edit the page in question, click the &ldquo;Text&rdquo; tab in the upper right-hand corner of the editor to switch to source mode, and then paste your tracking pixel code into the box as shown below &hellip;<br />
<br />
<img src="//cdn.clickmagick.com/images/user/faqs/faq221wordpress.jpg" /><br />
<br />
<br />
A more powerful solution for WordPress is to install a tracking code plugin such as the popular &ldquo;Tracking Code Manager.&rdquo; With this plugin, you can place tracking pixels or tracking code on any page anywhere without having to touch the pages themselves.<br />
<br />
Just install the plugin, then install pixels and code from the plugin&rsquo;s settings.<br />
<br />
<img src="//cdn.clickmagick.com/images/user/faqs/faq221trackingcodemgr.jpg" /><br />
<br />
<br />
One great feature of the Tracking Code Manager is that you can make system-wide settings. This can be extremely useful for Organic and FunnelMagick pages&mdash;just install the tracking code <em>once</em> &ldquo;for all pages&rdquo; and you never have to worry about installing code on individual pages.<br />
<br />
Our video tutorial on <strong><a href="/misc/video.cgi?name=organic">Organic Tracking</a></strong> will show you exactly how to install and use the Tracking Code Manager. Look for the Chapter mark on the video titled <em>Installing the WordPress &ldquo;Tracking Code Manager&rdquo;</em>.<br />
<br />
<br />
<br />
<strong>Add Tracking Pixels and Tracking Code in Unbounce</strong><br />
<br />
To add JavaScript code to the &ldquo;head&rdquo; of a page you&rsquo;ll want to use Unbounce&rsquo;s Script Manager which you can find in the bottom left corner of the Landing Page Editor.<br />
<br />
To add an image tracking pixel to the &ldquo;body,&rdquo;&nbsp;just add a new code section to your &ldquo;Thank You&rdquo; page by clicking on the &ldquo;<code>(())&rdquo;</code> button and pasting it there &hellip;<br />
<br />
<img src="//cdn.clickmagick.com/images/user/faqs/faq221unbounceeditor.jpg" /><br />
<br />
<br />
The Script Manager will take you to the JavaScript editor where you can choose the placement of the code and insert the code:<br />
<br />
<img src="//cdn.clickmagick.com/images/user/faqs/faq221unbouncemgr.jpg" /><br />
<br />
<br />
<strong>Add Tracking Pixels in Instapage</strong><br />
<br />
To add a tracking pixel to the &ldquo;head&rdquo; of a page select &ldquo;Settings&rdquo; and then &ldquo;HTML/CSS.&rdquo; To add a pixel to the &ldquo;body&rdquo; of a page, like you need to do with ClickMagick, just add a new HTML Element, click the blue &ldquo;Edit&rdquo; button and paste your pixel code there &hellip;<br />
<br />
<img alt="" src="//cdn.clickmagick.com/images/guide/pixelinstapage.jpg" /><br />
<br />
<br />
<strong>Add Tracking Pixels in Shopify</strong><br />
<br />
To add a sales tracking pixel to your Shopify order status page, just click &ldquo;Settings&rdquo; and then &ldquo;Checkout.&rdquo; Then in the &ldquo;Order processing&rdquo; section just paste your tracking pixel into the &ldquo;Additional content and scripts&rdquo; box &hellip;<br />
<br />
<img alt="" src="//cdn.clickmagick.com/images/guide/pixelshopify.jpg" /><br />
<br />
To include the order amount in your tracking pixel, just use this Shopify token:<br />
<br />
{{ total_price 
</body></html>