Support » Plugin: Google Tag Manager for WooCommerce FREE » Purchase Tag not firing

  • Resolved caffeinatedweb

    (@caffeinatedweb)


    I’m having issues with getting the purchase tag to fire. I assume it fires from the Checkout page?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Handcraft Byte

    (@handcraftbyte)

    Hey @caffeinatedweb!

    thanks for posting this ticket.

    The purchase tag is fired on so called “thank you” or confirmation page. Depending on the chosen payment gateway it will be shown to the user and the event will be tracked after payment confirmation.

    Let me know if that helps or if you have any further concerns,

    all the best,

    Thread Starter caffeinatedweb

    (@caffeinatedweb)

    If I’m using custom thank you pages, is there something I can add to the page to make the tag fire? I’m using this plugin, https://docs.woocommerce.com/document/woocommerce-custom-thank-you-pages/, but I can add custom code or whatever to the page also.

    Plugin Author Handcraft Byte

    (@handcraftbyte)

    We had a look at the Custom Thank You Pages plugin and according to this section:
    https://docs.woocommerce.com/document/woocommerce-custom-thank-you-pages/#section-8

    You may need to add to your page following short code:
    [order_detail key="thankyou_action"]

    I’m not sure if that would have any unwanted side effects, but our plugin hooks into woocommerce_thankyou action so you need to call it on your custom thank you page.

    Let us know if that worked for you, otherwise we are happy to search for alternative solutions.

    All the best

    Thread Starter caffeinatedweb

    (@caffeinatedweb)

    I did add this, but it still isn’t firing the tag.

    Plugin Author Handcraft Byte

    (@handcraftbyte)

    That’s weird. We tried to go to the page you have linked above, but we obviously cannot get through to the confirmation page without buying a product there.

    Could you send us (contact@handcraftbyte.com) the full page source of the successful confirmation page?

    If that won’t tell us anything the only other option would be to have a look at how the Custom Confirmation plugin calls the thankyou action, but we would need to get an access to parts of the code…

    Thread Starter caffeinatedweb

    (@caffeinatedweb)

    Just a follow-up, it turned out the problem was caused by the ordering of scripts since my GTM tags are added by a GDPR plugin. Handcraft Byte was super helpful and got it worked out for me in the update 🙂

    Plugin Author Handcraft Byte

    (@handcraftbyte)

    Big thanks @caffeinatedweb for the confirmation here and the positive review.

    We really appreciate all of it!

    All the best,
    Handcraft Byte

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Purchase Tag not firing’ is closed to new replies.