Quantcast
Channel: Opinion: Shopify Community - Shopify Apps
Viewing all articles
Browse latest Browse all 11091

Adding a Facebook tracking pixel to the app store listing by Chris Houghton

$
0
0

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>

 

 


Viewing all articles
Browse latest Browse all 11091

Trending Articles