• Hi there,

    Thanks for the work you put into your plugin and the recent update.

    Unfortunately I’ve encountered a problem I can’t get around after hours of trying.

    It appears as if no purchase event is being added to the datalayer at checkout or on the order-received page.

    I’m using WooCommerce with the Shoptimizer theme, with Stripe for the payment getaway (via the ‘Payment Plugins for Stripe WooCommerce’ plugin).

    After upgrading to the recent version of GTM4WP, I decided to start with a new/fresh container in GTM to ensure no conflicts or consent issues. I’ve followed your guides for setting up GA4, Conversion Tracking and Enhanced Conversion Tracking.

    The data that is pushed to the data layer looks good and general tracking in GA4 is working fine.

    Using GTM preview tool, I can see various events being added along the users’ journey, and cart, order and customer data is added as expected, but unfortunately there is no sign of a ‘purchase’ event either at checkout or on the order-received page. Due to this I can’t get G Ads to pick up on conversions.

    I’ve tried various options within the plugin settings, including ‘Do not flag orders as being tracked’, but I’m at a bit of a loss.

    I’d really love to be able to resolve this and really happy to share any additional info as needed.

    Best Regards
    Stef

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter tictok

    (@tictok)

    Hi, After further testing I have discovered that it looks like whether the Purchase event gets sent or not depends upon the browser being used.

    The Purchase event does get sent by your plugin if using Chrome. However, the Purchase event is not triggered when using Safari (17.2.1 macOS Sonoma 14.2.1). Will test other browsers too.

    I discovered this as had started to add my own JS script to the order-received page to send a Purchase event to the data layer. It worked as expected (when testing in Safari) but noticed when I tested in Chrome that two purchase events where being sent.

    Disabling my own script left just the single correct purchase event being added to the data layer in Chrome. But unfortunately still nothing in Safari.

    In the meantime, is there any way do disable your (gtm4wp) purchase event so that I can consistently/reliably send my own? I understand the data should look something like the following (depending upon products, price etc):

      event: "purchase",
      ecommerce: {
        currency: "GBP",
        transaction_id: "RJG-167656",
        affiliation: "",
        value: 1,
        tax: 0.17,
        shipping: 0,
        coupon: "",
        items: [
          {
            item_id: "ABCDE",
            item_name: "Test ABCDE",
            sku: "ABCDE",
            price: 1,
            stocklevel: null,
            stockstatus: "instock",
            google_business_vertical: "retail",
            item_category: "Planting & Feeding",
            id: "ABCDE",
            quantity: 1
          }
        ]
      }


    If using Enhanced tracking do I need to include any user provider data in that payload, or will the data already in the data layer suffice?

    Many thanks
    Stef

    I am experiencing the same problem on Chrome and possibly other browsers as well since I do not get any conversions in Google Ads and they all stopped about a week ago, probably after last update, since I havent done any changes to G Ads nor the site.

    I tested purchase tag triggering using google tagassistant and after getting to thank you page, AW Purchase tag was not fired even though the purchase event is in the testing path an. Data layer doesnt have purchase event at all like was said above.

    Any idea whats wrong?

    dexvilleweb

    (@dexvilleweb)

    Exact same issue here.
    E-commerce data have fallen flat since the 1.20 update (6 February?).

    Same problem here, and starting around the same time after updating to v1.20.

    Slightly confusing because I was also implementing all the consent stuff which necessitated the upgrade to v1.20.

    Anyway, as well as no purchase event, I have no ecommerce object on the order received page . There is the orderData object which I guess is what Woocommerce generates. But no ecommerce object and therefore no info in the datalayer.

    Do others also have this additional and probably related issue?

    Good morning, I’ve the same problem, rised about a month ago (beginning of May).
    all events, ecommerce or not, seems to works fine, but purchases are dropped to 0 on analytics, I’ve done some tests and seems that on the order-recieved page nothing happens on the ecommerce side, the page_view is sent corectly, as the scroll event, or any other “normal” events.

    I’ve checked the server logs, but nothing happens, no errors, both in frontend and backend.

    the js console is clear, and everything looks good, but no purchase event is tracked, regardless the browser in my case.

    I have the same problem from the beginnig of february. All events are track until purchase event that is not tracking

    saxjunior95

    (@saxjunior95)

    Has anyone solved the problem? I have the same problem. Rather, I fear it is a problem related to woocommerce rather than GTM4WP.

    igor3112

    (@igor3112)

    Hello, I have the same problem. Is there anybody who resolve this issue successfully? Tnx

    Hello, plugin works great with all events but “purchase” events doesn’t work when I see debug events.

    I saw your tutorial and all settings looks good.

    Can I have support? Thank you.

    Hello, I′ve resolved the issue, I found the answer from Thomas Geiger and will paste it here in the comment if someboday has the same problem this could be the solution (it worked for me): This happens usually if you are using another plugin that alters the default order received page in a way that breaks communication with 3rd party plugins like GTM4WP.


    Please check if you are using any such plugin.


    One other reason can be if you are using a payment gateway plugin that calls some WooCommerce functions in the background making GTM4WP to mark the order as being already tracked before the order received page is loaded. When the real thank you page is shown, the order is already marked and GTM4WP does not fire the purchase event to prevent double tracking of the same conversion. You can test this case by turning on the “Do not flag orders as being tracked” option in GTM4WP under WooCommerce settings.

    (@igor3112)

    Hi Igor,

    can you help me to understand better what do you mean with: “This happens usually if you are using another plugin that alters the default order received page in a way that breaks communication with 3rd party plugins like GTM4WP.”

    For example, which plugin can alter the default order received?

    Because, in my case, GTM4WP works fine for one year and more but suddenly, it didn’t track the purchase tag anymore, even if i din’t add any new plugin,

    Hi, I don′t know I had the same problem with one web that already had some setup with different plugins. I didn′t discover which plugin was the problem. I just turned on the “Do not flag orders as being tracked” option in GTM4WP under WooCommerce settings and my purchase event was available in data layer. Have you try that?

    (@igor3112)

    I tried it but no way. It doesn’t work

    @bitful try to push data layer for purchase event in the code. This will fix the problem for sure.

    @igor3112 In which way i can do that?

Viewing 15 replies - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.