Nearly there 😊 This step will install a tracking pixel to be sent to Brandbassador when a sale is made. Ensuring Ambassadors receive their commission and allowing you to track your sales easily on the platform.

1. Copy this new script:

💡 Script to copy (NB! Remember to replace 'BRAND_KEY' in both places with the key you received from support):

<script>(function(){var BBV="1.0.0";var loadScript=function(url,callback){var script=document.createElement("script");script.type="text/javascript";if(script.readyState){script.onreadystatechange=function(){if(script.readyState=="loaded"||script.readyState=="complete"){script.onreadystatechange=null;callback()}}}else{script.onload=function(){callback()}}script.src=url;document.getElementsByTagName("head")[0].appendChild(script)};var trackOrder=function(url){if((typeof jQuery==='undefined')||(parseFloat(jQuery.fn.jquery)<1.7)){loadScript('//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js',function(){jQuery191=jQuery.noConflict(true);jQuery191.get(url)})}else{jQuery.get(url)}};var checkOrder=function(){var linkURL="https://api.brandbassador.com/tracking/pixel.gif?tracking_link=true&ref=__bb-ref__&order_id={{ order_number }}&total={{ total_price | money_without_currency || replace: ',', '.'}}&key=BRAND_KEY&currency={{ shop.currency }}";var codeURL="https://api.brandbassador.com/tracking/pixel.gif?order_id={{ order_number }}&total={{ total_price | money_without_currency || replace: ',', '.'}}&code={{ discounts[0].code }}&key=BRAND_KEY&currency={{ shop.currency }}";try{var ref=localStorage.getItem("bb-ref");var code="{{ discounts[0].code }}";if(ref&&ref.length>0){localStorage.removeItem("bb-ref");linkURL=linkURL.replace("__bb-ref__",ref);trackOrder(linkURL)}else if(code&&code.length>0){trackOrder(codeURL)}}catch(e){}};checkOrder()})();</script>

2. Go to your Shopify admin again

3. Click in your Settings > Checkout page

3. In "Order processing" find the "Additional scripts" text box:

4. Paste the tracking pixel and the bottom and replace the two instances of 'BRAND_KEY' with your brand key you have received from the customer support team and finally click save.

If you're stuck check out the recording below!

Did this answer your question?