Adding a Facebook tracking pixel to the app store listing

Highlighted
Shopify Partner
13 0 3

Hi all, I've noticed that Shopify allow Google Remarketing and AdRoll tracking pixels added into the Shopify app store listing. Are there any plans to add in the ability to use a Facebook tracking pixel for things like custom audiences?

Example pixel below. I'd imagine all that should be added into the Shopify edit listing page is the ability to put in the pixel id.

<script>(function() {
  var _fbq = window._fbq || (window._fbq = []);
  if (!_fbq.loaded) {
    var fbds = document.createElement('script');
    fbds.async = true;
    fbds.src = '//connect.facebook.net/en_US/fbds.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(fbds, s);
    _fbq.loaded = true;
  }
  _fbq.push(['addPixelId', 'yourpixelid']);
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', 'PixelInitialized', {}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=yourpixelid&amp;ev=PixelInitialized" /></noscript>

 

 

CTO of Sauce.ly, JavaScript and design junkie
Highlighted
Shopify Partner
3 0 0

Hi Chris, have you ever found a solution for this? I'd love to add a Facebook pixel to my app listing as well. :)

0 Likes
Highlighted
New Member
1 0 0

If anyone has worked this out, Please share the method with us.
Thank you.

0 Likes