Installation Guide

1. Install Social Analytics code

Copy and paste into the 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#5400995ba387642aac3a8590';
document.getElementsByTagName("head")[0].appendChild(js);
</script>

2. Install ROI Tracking code

Copy and paste the following code into app/design/frontend/base/default/YOUR_THEME/checkout/success.phtml

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

3. Add sharing buttons

Here are the codes for the standard sharing buttons.

Like:

<div class="share-buttons share-buttons-fb-like" data-style="button_count"></div>

Tweet:

<div class="share-buttons share-buttons-tweet" data-style="horizontal"></div>

Pin:

<div class="share-buttons share-buttons-pinterest" data-style="none"></div>

4. Social Login Installation

Make sure you have followed steps A and B in the Silver Jeans guide, then call the "addshoppers_social_login" block using this snippet in each template (My Account, Checkout, and Register) where you want the social login buttons to display:

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('addshoppers_social_login')->toHtml(); ?>