• Hi Community,

    Hope you are open to welcome a new member, with hopefully a simple to solve question. We use the Google Tag Manager for WordPress plugin to load the Enhanced E-Commerce dataLayer in our checkout [WooCommerce]. This seems to work as expected. After a visitor has moved through the checkout stage, they are redirected to a ClickFunnel upsell / thank you page on which, as you might have guessed already, no dataLayer is loaded. We would like to have our ‘Order Completed’ dataLayer event present on these pages. We need these upsell pages and these need to be in Clickfunnel, as they are an important part of our business model.

    Is there anyone who has experience with this topic and is able to share a solution?

    Any further information needed? Feel free to ask!

    Best regards,
    Joost

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

    (@duracelltomi)

    Hi Joost,

    First of all, sorry for this late reply.
    Implementing this is fully dependent on how Clickfunnel works.

    In the default flow, ecommerce data on the normal order received page is there because the order received page has the necessary information to query everything from WooCommerce and add data into the data layer.

    Question is whether the upsell page of Clickfunnel has the same? Can any we somehow programaticaly ask Clickfunnel about what order the user just placed?

    Thread Starter joostdejonge95bulls

    (@joostdejonge95bulls)

    Hi Thomas,

    No apologies necessary. Already happy to get a reply.
    Expected to receive this answer, hence I have tried to get in contact with Clickfunnel support. I can’t be the first one that uses their product to have this question, hence I am hoping to receive a favorable reply soon.

    Best,
    Joost

    Thread Starter joostdejonge95bulls

    (@joostdejonge95bulls)

    Hi @duracelltomi,

    I have reached out to multiple Page Builders tools and also to WooCommerce but everyone seems to be playing the ‘pointing fingers’ game. I am trying to understand whether or not the setup of the business I work for is an anomaly in the world of e-commerce. Is it really this weird that we use a Page Builder plugin for our Product and Thank You page setup and there is no way for WooCommerce to communicate with these pages?

    Resulting in the Google Tag Manager for WordPress plugin to not have access to any product or order data?

    I simply find it hard to believe I am the first one to have this issue….

    Might you be able to share some new insight in my predicament?
    Am I the first one to reach out to you with this specific challenge?

    Best,
    Joost

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Joost,

    I am sorry to hear that, I was in a similar situation as well and I know this can be very frustrating.

    Let me explain what happens normally on the default order received page that GTM4WP needs in order to track everything.

    GTM4WP uses several so called conditional tags of WooCommerce in order to ask WooCommerce what kind of page is currently viewed by the user. This is checked on ALL page loads, including the order received page and if everything goes well, on your Clickfunnel page as well.

    One of these conditional tags is is_order_received_page(). I would say it is quite straightforward how it works:

    * a page loads
    * GTM4WP loads (besides other plugins)
    * GTM4WP asks WooCommerce: “hey, is this the order received page?”
    * WooCommerce answers: “yes buddy, the user is just viewing the order received page”
    * GTM4WP dumps the purchase data into the data layer

    When you insert something into the flow, like an up-sell page, GTM4WP will ask WooCommerce again, but by default, WooCommerce will answer “no, this is something else, not the order received page”

    Here comes the trick: 3rd party plugins, like Clickfunnel can hook into the flows of WooCommerce. There is a hook called woocommerce_is_order_received_page that can override what WooCommerce would tell other plugins about the currently viewed page. This should be used by 3rd party plugins like Clickfunnel in order for other plugins to work.

    If used correctly, the above conversaion will go like this:

    * a page loads
    * GTM4WP loads (besides other plugins)
    * GTM4WP asks WooCommerce: “hey, is this the order received page?”
    * WooCommerce answers: “no, this is not…”
    * Clickfunnel say: “wait, wait, it IS, I swear”
    * WooCommerce says: “well, OK, then yes, this is the order received page”
    * GTM4WP dumps the purchase data into the data layer

    This is just one part that needs to be handled in the 3rd party plugin.
    After that conversaion GTM4WP will also try to read the “order-received”, “key” and “order” variables from the URL that is part of the default order received page.

    So if Clickfunnel can also have these parameters, everything will be fine.

    This will ONLY work if the inserted page of Clickfunnel is loading inside WordPress. If they show the user a page that is generated by a completely different system, this will not work at all ??

    Other way around GTM4WP could directly check if Clickfunnel is being used and loaded but in this case there are some open questions:

    * what about other plugins also checking the order received page?
    * should all other plugins adapt to plugins like Clickfunnel or such plugins should adapt to WooCommerce in order to other WooCommerce related plugins to work?

    If anyone from Clickfunnel reads this: I am NOT telling that Clickfunnel is a piece of garbage, I will quite sure their code base is well established and maintained. Perhaps just this one info about that WooCommerce hook was missing or they already did some other steps to make sure this will work in the future.

    Thread Starter joostdejonge95bulls

    (@joostdejonge95bulls)

    Hi Thomas,

    This is above and beyond! You have taken away a big part of my frustration. The time you have taken to write this reply will not go to waste. I should think that a lot of businesses are working with third party page builder tools, hence I hope your reply will not only help me but others as well in the future. We are [most likely] going to discuss this topic with a page builder developer and make sure we can enhance our base-level reporting with transactional level data to say the least. Again… much appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘E-Commerce DataLayer on ClickFunnels Thank You page’ is closed to new replies.