• I currently have the plugin working with GTM and have implemented GA. I now want to implement the Facebook Pixel. I’ve been able to get the basic tag on each page and this seems to be working fine. I can’t however figure out how to add events to the Facebook Pixel; add to cart, purchase with amount etc.

    I appreciate that you have a blog post on piggybacking onto GA, but I don’t want to take this approach as from an architectural perspective it doesn’t make sense to create a dependedncy between GA and Facebook; they should be orthogonal.

    How can I get started adding these events? Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi scorpiotiger,

    It is a bit hard to explain this in a nutshell.
    How deeply you understand the content and logic of the data layer and enhanced ecommerce?

    If you are familiar with both topics, you should be able to implement Facebook Pixel events.

    For example my plugin fires the gtm4wp.addProductToCartEEC GTM event while a user is adding a product to the cart. In the data layer you can read the quantity and price of the product as well as the product ID/SKU and name.

    Using this, you should create GTM variables that read those data layer values and pass this to your Facebook pixel using the appropriate event name.

    Does this help you getting closer?

    Have a great day,
    Thomas Geiger

    Thread Starter scorpiotiger

    (@scorpiotiger)

    Hi,

    Ok, based on your response, I think I might be a little closer. I’m still struggling with some a few items where there just doesn’t seem to be any documentation.

    How do I pass an array for content_id? I’m using content_ids: [{{ecomm_prodid}}], but I don’t know if this is correct.

    I’ve also set the Facebook Pixel to fire before the events using the “Fire a tag before” options. Is this correct?

    Also, I’m firing many events based on the value of ecomm_pagetype. Do I need to consider the DOM Ready event also?

    Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Facebook Pixel events’ is closed to new replies.