Skip to main content
All CollectionsAttributionPolar Attribution
How-To: Set up Polar Pixel on Recharge
How-To: Set up Polar Pixel on Recharge

This article details how to set up the Polar Pixel on your Recharge account.

PolarBears avatar
Written by PolarBears
Updated over a week ago

An additional configuration is necessary to collect purchase information on 3rd Party Checkout platforms. This guide shows you how to configure your Recharge account to allow the Polar Pixel to collect checkout information from subscribed customers and attribute orders made with Recharge. This will increase the order coverage of the Polar Pixel to 85% on average.

Step 1. Login to your Recharge Account here, go to the "Storefront" section and click on the "Checkout" sub-section.

⚠️ If you do not see the "Checkout" sub-section in the storefront section: Go to the "Customer Portal" sub-section, scroll down to the "Customer portal login" field and click "Enable manage subscriptions on checkout". The "Checkout" sub-section should appear. ⚠️

Step 2. Scroll down to the 'Thank you page' field, then copy and paste the below code alongside any other scripts you have already set up there.

<script> 
try {
window.shopifyShopURL = 'REPLACE_WITH_SHOPIFY_URL';
window.headlessEmail = '{{email}}';
} catch(e) {}
</script>
<script>
/* Begin Polar Analytics Pixel */
!function(){function load(retry){var PA=new XMLHttpRequest;PA.open("GET","https://cdn-production.polaranalytics.com/pap.txt?"+(new Date).toISOString().slice(0,10).replace(/-/g,""),!0),PA.send(),PA.onreadystatechange=function(){4===PA.readyState&&200===PA.status?setTimeout(function(){return eval(PA.responseText)},40):(299<PA.status||PA.status<200)&&retry&&load(retry-1)}}load(10)}();
/* End Polar Analytics Pixel */
</script>

⚠️ After copy-pasting your code, replace the 'REPLACE_WITH_SHOPIFY_URL' with your own Shopify store URL. ⚠️

Here's an example:

window.shopifyShopURL = 'example_shop.myshopify.com';

Step 3. Save & check your modifications have been adequately applied.

Did this answer your question?