• Hello,
    Thank you for the awesome plugin ??
    I have an issue, most certainly related to the way I am configuring things in GTM. I have followed all the steps in your set-up article, but my View content event is still not firing on product pages.

    In the deug console the datalayer seems correct.

    ecommerce: {
    currencyCode: ‘BGN’,
    detail: {
    products: [
    {
    id: 277,
    name: ‘Морски дарове с ориз яки меши’,
    sku: 277,
    category: ‘Меню’,
    price: 11.99,
    stocklevel: null

    So I guess the issue might be trigger related. The Ecomm events trigger is created as described in the set-up documentation, so I wonder if this trigger can be used to fire the FB tags? It works for Google analytics nevertheless.
    Many thanks for your help,
    Best regards

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter kterziev

    (@kterziev)

    I mean normally your trigger could be used on any tag, right?
    The thing is that I don’t see the product page related trigger event on any product page.
    gtm4wp.productClickEEC
    https://tonusmeals.com/product/morski-darove/
    Still on Google analytics the event action fires events.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    For simple WooCommerce products, there is not specific GTM event for the product detail action. You should fire your FB ViewContent tag using a Page View tag where you restrict the trigger to only fire where the URL contains /product/ or the corresponding translation.

    Thread Starter kterziev

    (@kterziev)

    Thanks Thomas,
    So same principle I guess for Add to cart, Initiate checkout and purchase FB tags I guess?
    Best regards,
    Kiril

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Add to cart and any post-pageload event has a dedicated GTM event.
    InitiateCheckout and Purchase does not need any as it can be tracked on pageview just like ViewContent

    Thread Starter kterziev

    (@kterziev)

    Many thanks, Thomas ??
    Your help is much appreciated.
    One last thing, on the purchase confirmation page I have a data layer that is ecommerce.checkout.products instead of ecommerce.purchase.products.
    Is there any way I can amend this?

    ecommerce: {
    currencyCode: ‘BGN’,
    checkout: {
    actionField: {step: 2},
    products: [
    {
    id: 667,
    name: ‘Комбо меню 5 за 50 лв.’,
    sku: 667,
    category: ‘Меню’,
    price: 50,
    stocklevel: 38,
    quantity: 5
    }
    ]
    }
    },

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Did you set the same page as tje Cart and Checkout page in WooCommerce settings?

    Thread Starter kterziev

    (@kterziev)

    Hi Thomas,
    I’ve done some modifications and the datalayer with checkout events is no longer on the order confirmation page. But now instead of it I have a datalayer that doesn’t contain the “ecommerce” event. Is that the correct datalayer I am supposed to have?
    I am asking because in my gtm settings I use the datalayer variable “ecommerce.purchase.products” in order to retreive product information, that I use for dynamic facebook ads. If I don’t have those events in the datalayer I need to find another way to get this info. Do you have something to suggest?

    {
    pagePostType: ‘page’,
    pagePostType2: ‘single-page’,
    cartContent: {
    totals: {
    applied_coupons: [],
    discount_total: 0,
    subtotal: 0,
    total: 0
    },
    items: []
    },
    orderData: {
    attributes: {
    date: ‘2021-0_________1:22:28+00:00’,
    order_number: ‘9__5’,
    order_key: ‘wc_order_Z_________tV’,
    payment_method: ‘mypos_virtual’,
    payment_method_title: ‘Плащане с банкова карта’,
    shipping_method: ‘Безплатна доставка’,
    status: ‘processing’,
    coupons: ”
    },
    totals: {
    currency: ‘BGN’,
    discount_total: ‘0’,
    discount_tax: ‘0’,
    shipping_total: ‘0.00’,
    shipping_tax: ‘0’,
    cart_tax: ‘0’,
    total: ‘100.00’,
    total_tax: ‘0’,
    total_discount: ‘0’,
    subtotal: ‘100’,
    tax_totals: []
    },
    customer: {
    id: 22,
    billing: {
    first_name: ‘V______’,
    last_name: ‘G______’,
    company: ”,
    address_1: ‘G__________v 2, G, floor _, app. __5’,
    address_2: ”,
    city: ”,
    state: ”,
    postcode: ”,
    country: ”,
    email: ‘[email protected]’,
    phone: ‘8_______1’
    },
    shipping: {
    first_name: ‘V_____’,
    last_name: ‘G________’,
    company: ”,
    address_1: ‘G___________v 255, G, floor _8, app. __’,
    address_2: ”,
    city: ”,
    state: ”,
    postcode: ”,
    country: ”
    }
    },
    items: [
    {
    id: 6__,
    name: ‘Комбо меню 5 за 50 лв.’,
    sku: 667,
    category: ‘Меню’,
    price: 50,
    stocklevel: 38,
    quantity: 2
    }
    ]
    },
    gtm: {start: 1610035846912, uniqueEventId: 119},
    event: ‘gtm.load’
    }

    • This reply was modified 3 years, 10 months ago by kterziev.
    Thread Starter kterziev

    (@kterziev)

    I’ve also found in other discussions in your support that Simo Ahava’s Custom tag template is compatible with your plugin. But Simo’s template also relies on the “ecommerce” object and “purchase” for purchase tracking. So I was wondering how can Simo’s tag be executed without that?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Simo’s tag template will omit firing the Facebook pixel is no ecommerce data is found in the data layer.

    With that, you can setup two FB tags: one with a generic pageview event firing on all pages and one with enhanced ecommerce integration that fires on all pages and on the ecommerce helper events. This second will however not fire the FB pixel on all actual pages but only on pages where there is an ecommerce data in the data layer. This is the case on product detail pages, on the checkout page and on the order received page so your FB pixel should get what it needs to have full ecommerce tracking as well.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘View Content FB event not firing’ is closed to new replies.