Installation Guide

1. Install Social Analytics code

Copy and paste into the global footer template or tag management solution

<script type="text/javascript">
var js = document.createElement('script'); js.type = 'text/javascript'; js.async = true; js.id = 'AddShoppers';
js.src = ('https:' == document.location.protocol ? 'https://shop.pe/widget/' : 'http://cdn.shop.pe/widget/') + 'widget_async.js#XXXXX';
document.getElementsByTagName("head")[0].appendChild(js);
</script>

2. Install ROI Tracking code

Copy and paste the following code into your checkout success page or tag management solution.  

Note: in the code below these 2 variables:

**Order ID**

**Order Total**

Should be replaced with the variable in your system associated with the order ID and the order total. 

<script type="text/javascript">
AddShoppersConversion = {
        order_id: '**Order ID**',
        value: '**Order Total**'
};
var js = document.createElement('script'); js.type = 'text/javascript'; js.async = true; js.id = 'AddShoppers';
js.src = ('https:' == document.location.protocol ? 'https://shop.pe/widget/' : 'http://cdn.shop.pe/widget/') + 'widget_async.js#XXXXXXXX';
document.getElementsByTagName("head")[0].appendChild(js);
</script>

So the final output that the use would see if they viewed source on the page would look like this below:
AddShoppersConversion = {
       order_id: '18000542332',
       value: '$124.59'
};

3. Install Refer a Friend

a. Add a new CMS page.

b. Copy / Paste the following code into the page you created.  

<img src="https://s3.amazonaws.com/hanes-image/banner.png" style="width:100%; height:auto;">
<div id="AddShoppersRefer"></div>