GTR.png

Installation Guide

1. Install Social Analytics code

Paste this code into your global footer template:

<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#537f9040a387646759d37e31 ';
document.getElementsByTagName("head")[0].appendChild(js);
</script>

2. Install ROI Tracking code

Add this code to your success.phtml template.

<?php 
$order = Mage::getModel('sales/order')->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId()); 
$amount = number_format($order->subtotal,2); 
?>
<script type="text/javascript">
AddShoppersConversion = {
        order_id: '<?php echo $this->getOrderId(); ?>',
        value: '<?php echo $amount; ?>'
};
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#537f9040a387646759d37e31';
document.getElementsByTagName("head")[0].appendChild(js);
</script>

3. Add Sharing Button Code

Replace the existing sharing buttons with this code:

<div class="share-buttons share-buttons-panel" data-style="medium" data-counter="true" data-oauth="true" data-hover="true" data-promo-callout="left" data-buttons="facebook,google,twitter,pinterest"></div>

4. Add Discovery Wall

Copy and paste this code where you want the Discovery Wall to appear:

<div id="AddShoppersWall"></div>

5. Add Share for Coupon to Cart Page

Copy and paste this code to the cart page where you want the Share for Coupon button to appear. We suggest as close to the coupon box as possible. 

<div class="share-buttons share-buttons-panel" data-style="coupon"></div>

6. Purchase Sharing Installation 

On the checkout success page, include this Javascript snippet. Add the information that you want shared out in each variable. 

<script type="text/javascript">
AddShoppersTracking = {
    auto: true,
    header: "",  // Your header text here
    image: "",  // Shared image URL here
    url: "",   // Shared URL here
    name: "",  // Share Title here
    description: ""   // Share description here
}
</script>