Installing the Listrak Analytics Click Tracking Script
Log into your Yahoo! Store management area.
Navigate to the Edit section.
Select Store Editor.
In the top menu, select Variables.
Scroll down to Final-text.
Paste the code sample below.
Click the Update button at the top or bottom of the page.
<!-- Listrak Analytics - Script Source -->
<script type="text/javascript">
var biJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
(function (d, s, id, tid, vid) {
var js, ljs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return; js = d.createElement(s); js.id = id;
js.src = biJsHost + "cdn.listrakbi.com/scripts/script.js?m=" + tid + "&v=" + vid;
ljs.parentNode.insertBefore(js, ljs);
})(document, 'script', 'ltkSDK', '<<MERCHANT_ID>>', '<<VERSION>>');
</script>
The below image is an example of where to place the code:
Installing the Listrak Analytics Conversion Tracking Script
Log into your Yahoo! Store management area.
Navigate to Order Settings.
Select Checkout & Registration Manager.
Click the link for Global Settings.
Select Checkout Wrapper.
Scroll down to Checkout Regions and copy and paste the code sample below into Footer.
<!-- Listrak Analytics - Script Source -->
<script type="text/javascript">
var biJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
(function (d, s, id, tid, vid) {
var js, ljs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return; js = d.createElement(s); js.id = id;
js.src = biJsHost + "cdn.listrakbi.com/scripts/script.js?m=" + tid + "&v=" + vid;
ljs.parentNode.insertBefore(js, ljs);
})(document, 'script', 'ltkSDK', '<<MERCHANT_ID>>', '<<VERSION>>');
</script>The below image is an example of where to place the code:
Click Save at the top or bottom of the page.
Return to Checkout & Registration Manager.
Select Page Configuration, then choose Order Confirmation.
Paste the following code into the Page Message input box; if you already have content inside this box, please paste this code at the top:
<img src="https://fp.listrakbi.com/fp/<<MERCHANT_ID>>.jpg" height="1" width="1" />
The below image is an example of where to place the code:
Click Save at the top or bottom of the page.
Return to the Yahoo! Store management area.
Under the Order Settings section, select Publish Order Settings.
On the Publish Order Settings screen, click Publish.
Testing Your Installation
To ensure that all of your code is properly in place it’s a simple two step process:
Open the homepage of your site and view the HTML source (right click, view source) of the page. If you see the code that you copied and pasted from the first section of this document, your site is properly configured.
Add an item to your shopping cart and begin the checkout process and then view the HTML source (right click, view source). If you see the code that you copied and pasted from the conversion tracking section of this document, the analytics are installed properly. If you do not see this code in the HTML source, go back and verify that the code was added to the correct area in your Yahoo! Store manager.