How To Setup New Facebook Pixel with Shopify Using Google Tag Manager For Tracking ROI Plus Dynamic Product Ads

If you are advertising using Facebook and sending traffic to your Shopify store, the number one thing you want to know is your ROI. If you are not tracking this you are losing money. Finding a working solution has been a priority for me lately and I finally have a solution to share with you.

Updated – 6-5-16

Shopify has just implemented the new Facebook Pixel.

shopify-facebook-pixel

This means you simply add your Facebook Pixel to your store and skip all the hard parts of installing the pixel with Google Tag Manager. No coding needed.

shopify-facebook-pixel-where-to-add

You will still need to setup a Facebook Product Feed so that can use Dynamic Product Ads.

Latest Method – What You Need:

  • Shopify
  • Facebook Product Feed by Flexify
  • Facebook Pixel Helper

Latest Method – Overview of What You Need To Setup and Install:

Add Facebook Pixel to Shopify Store
Install Facebook Product Feed by Flexify into Shopify

Latest Method – Instructions

  1. Add Facebook Pixel to Shopify Store – https://help.shopify.com/manual/reports-and-analytics/facebook-pixel/getting-started
  2. Install Facebook Product Feed by Flexify into Shopify – https://apps.shopify.com/facebook-product-catalog
  3. Install Facebook Pixel Helper – https://chrome.google.com/webstore/detail/fb-pixel-helper/fdgfkebogiimcoedlicjlajpkdmockpc?hl=en

Travis Patelle (Kingpinning.com)has made excellent videos on how to install the pixel and setup the Facebook Product Catalog


 

Please note that Facebook Product Feed by Flexify has been updated and now works with the new Shopify Facebook Pixel feature.


Everything below relates to the original method. You no longer have to use this method.


 

A big thanks goes out to Tony Redfearn – Check out his new Shopify appThe Shopify Guy ) and Philippe Kyprianou who did all the hard work putting the videos together.

Original Method – What You Need:

  • Shopify
  • Facebook Product Feed by Flexify
  • Google Shopping
  • Google Merchant Account
  • Google Tag Manager
  • Google Analytics
  • Facebook Pixel Helper

Original Method – Overview of What You Need To Setup and Install:

Install Facebook Product Feed by Flexify into Shopify
Create Google Tag Manager Account
Create Google Analytics Account
How to install Google Analytics for Shopify By Dimitris Skiadas
Create Google Merchant Account
Install Google Shopping
Install Facebook Pixel Helper

 

Watch All Videos First Before You Do Anything

Watch this video first
The ULTIMATE how-to on installing FB pixels into Shopify using GTM
Watch this video 2nd:
Facebook DPA

Original Method – Instructions

  1. Watch both videos first.
  2. Setup your Google Tag Manager Account, Google Merchant Account, Google Analytics Account.
  3. Install Facebook Product Feed by Flexify into Shopify
  4. Install  Google Shopping in Shopify
  5. Watch The ULTIMATE how-to on installing FB pixels into Shopify using GTM video again to learn how to setup Google Tag Manager and add your New Facebook Pixel to your Shopify Store.
  6. After successfully installing you FB pixel using GTM, you will need to setup Facebook Dynamic Ads. Watch The Facebook DPA video for how to do this.

Example of Additional Content and Scripts Checkout Code


Code Mentioned In The ULTIMATE how-to on installing FB pixels into Shopify using GTM

The Extended Checkout code is here:

https://cdn.shopify.com/s/files/1/0498/1025/files/Extended_Checkout_Code.rtf?15410135894080192232

The GTM code is here:

https://cdn.shopify.com/s/files/1/0498/1025/files/GTM_Page_Code.rtf?15410135894080192232

The GTM Shopify Snippet code is here:

https://cdn.shopify.com/s/files/1/0498/1025/files/GTM_Snippet.rtf?1429053223569931116

The GTM Product and add to cart code is here:

https://cdn.shopify.com/s/files/1/0498/1025/files/GTC_product_and_cart_code.rtf?16043475598701090714


 

Alternatives to setting this up yourself

Hire someone to do it for you.
Here is a link ( Disclaimer: I have not used this service nor do I gain any benefit from this)
Search Fiverr or Upwork also.
You can also install this Shopify App called Pixel Perfect (free trial). I recommend giving this a go if you have no idea technically how to follow this post. 🙂

ROI Tracking

Most of your tracking can be done thru Google Analytics. Once Google Analytics has been setup correctly on your Shopify store you will be able to see what campaigns are profitable.
Currently I am using Clickmagick and Terminus. I use Clickmagick to create shortened links to use in my Facebook Ads. Terminus is an advanced UTM URL builder. You can use this free Google Analytics URL Builder ( Video Explaining How To Use – Chrome Extension)  if you can’t afford Terminus. I append the ads with the UTM URL’s so that when the ad is clicked, it appears in Google Analytics and Shopify Dashboard. This shows traffic and sales measured by Clickmagick, Shopify and Google Analytics.
clickmagick
terminus
marketingcampaigns

Finishing Up

I will be updating this post regularly, so come back and check out if there are any changes.
Hope this brief guide is helpful. If you have any questions please comment below.
Thanks
Garth