Title: is there an Ecomm_Prodid array data variable
Last modified: October 7, 2019

---

# is there an Ecomm_Prodid array data variable

 *  Resolved [overturn](https://wordpress.org/support/users/overturn/)
 * (@overturn)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/is-there-an-ecomm_prodid-array-data-variable/)
 * I have finally got to grips with your plugin, but I am stuck on trying to create
   an array of product IDs for a variable products for Facebook remarketing.
    I 
   can’t see what data Variable to reference to pass on all the product IDs of variable
   products.
 * I appreciate your plugin works with and is generally for the Google eco-system,
   but I am hoping you have come across this scenario before or are able to give
   me some pointers.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/is-there-an-ecomm_prodid-array-data-variable/#post-12008244)
 * Hi,
 * I usually turn on the Google Ads remarketing integration for WooCommerce and 
   use the ecomm_* variables to populate Facebook pixel with the same data.
 *  [evavangelooven](https://wordpress.org/support/users/evavangelooven/)
 * (@evavangelooven)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/is-there-an-ecomm_prodid-array-data-variable/#post-12008658)
 * Hi Thomas,
 * I might be able to help you out a bit. We have written a blog post on how to 
   best align your Facebook catalog feed and Facebook pixel. See: [https://adtribes.io/align-facebook-catalog-facebook-pixel/](https://adtribes.io/align-facebook-catalog-facebook-pixel/)
 * I don’t believe you really need an array of product ID’s to show on your variable
   pages.
 * This would be the best set-up assuming you want to advertise on all your variants:
    - The variable product gets the product ID of the variable product itself (content_ids
      = variable product ID). You won’t be able to advertise on the variable product
      itself anyhow since it is the variants of that product that make it to your
      product feeds. Both Google and Facebook do not allow you to advertise on variable/
      parent products as consumers can only buy its variants;
    - The variants of the variable products gets the product ID of the variant itself(
      content_ids = variant product ID). You will have to make sure though that 
      this product ID is also in the g:id field of your Facebook catalog feed so
      both the pixel and feed align
    - Simple products will get their own product ID as content_ids value.For simple
      products too you’ll have to make sure that the g:id field in your Facebook
      catalog feed is the same as in the pixel
 * Hope this makes sense?
 * All the best,
    Eva
 *  Thread Starter [overturn](https://wordpress.org/support/users/overturn/)
 * (@overturn)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/is-there-an-ecomm_prodid-array-data-variable/#post-12018904)
 * Hi Thomas,
 * This is essentially what I need, but it goes a bit over my head at the moment:
 * [https://www.simoahava.com/analytics/enhanced-ecommerce-facebook-pixel/](https://www.simoahava.com/analytics/enhanced-ecommerce-facebook-pixel/)
 * I don’t want to add another plugin to the ecosystem, when yours can do the job
   with a couple of custom scriptsin GOogle Tag Manager.
    I will keep looking into
   it, but I would appreciate any help you can offer.
 *  Thread Starter [overturn](https://wordpress.org/support/users/overturn/)
 * (@overturn)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/is-there-an-ecomm_prodid-array-data-variable/#post-12022272)
 * I think I have figured it out, I just need to utilise the already pre-existing
   event.
    Your plugin is very useful mate.
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘is there an Ecomm_Prodid array data variable’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [overturn](https://wordpress.org/support/users/overturn/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/is-there-an-ecomm_prodid-array-data-variable/#post-12022272)
 * Status: resolved