Hello, I have a problem with my shopify store and facebook pixel.
The pixel works fine, but when I select a variant it just dissapears!
This also happens to the store of a friend of mine:
For example https://geekiemania.com/collections/frontpage/products/glow-in-the-dark-caps-geekie-exclusive
If you select a variant the chrome extension will not detect the pixel.
How can I fix that?
There was an update to the Facebook pixel code a few weeks ago, and now you do just need to put in the pixel ID in your Settings for the Online Store.
I have this excerpt from our Facebook Pixel guide in regards to the product variant:
"Integrating Facebook Pixel in your admin doesn't support Dynamic Product Ads (DPA). If you have Dynamic Product Ads through Facebook on your store which required additional code snippets embedded on your store's pages, then continue to use your existing implementation instead. The current integration does not pass the
product variant ID which is required for DPA."
To correct the issue, you do have a couple options.
1.) You can use an app to help manually feed the variants to Facebook, such as Facebook Product Feed to sync all that up easily.
2.) You can manually update your Product Catalog with Facebook - more information can be found here.
That will do the trick for you!
Whith the new pixel code, if you hit the product page without a variant specified, Shopify will fire the pixel with the ProductId to Facebook. If a particular variant is selected, then Shopify will fire the pixel code with the VariantId to Facebook. So when uploading your product catalog to facebook, you have to make sure that you include all your productIds AND all your variant Ids in the feed.
For anyone that wants to know how to create your own custom Facebook product feed, here is a brief writeup on how to do so using a custom collection template:
I have Shopify's native Facebook Pixel integration installed but when I land on a variant page the variant ID is not showing up in the Facebook Pixel Helper's info
Any clue on why this is the case?
@cafevagrant is correct -- Currently Shopify only fires the pixel with the product_group / product.id and NOT with the product / variant.id.
What you **could** do is fire another facebook event on your product page like so:
HOWEVER, I'm not sure if this is a good idea, as you will now have double the product views, and double the add to cart events, etc... Which may lead to double attribution, and double the conversion value being sent to your Facebook business manager:
But, on the positive side, your dynamic product remarketing should show the correct image / product variant, which should lead to better performance.
It will all come down to if Facebook is smart enough to figure out that the product_group + product are actually the same thing and dedublicate it.
Long term, I think that you either have to wait for Shopify to update their implementation, or to NOT use the default Shopify implementation and make your own custom implementation...