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

    (@duracelltomi)

    Hi,

    Your theme is missing some WordPress hooks that allows my plugin to place some additional data which is essential for the productClick event to work.

    There is a woocommerce_before_shop_loop_item_title hook which does not seems to work in your template.

    Thomas

    Thread Starter mckeownmarketing

    (@mckeownmarketing)

    Thank you for the quick response Thomas. Again, thank you very much for this plugin – it’s outstanding!

    Plugin Author Thomas Geiger

    (@duracelltomi)

    You’re welcome, please keep posting if you have any question.

    I have the same problem with gtm4wp.productClick is not firing, I’ve asked the theme developers if the hook is present and they replied ‘there is Woocommerce plugin with theme, so you can add and use its hooks also. It should work without conflicts.’ So what do I do?

    Site link TESOL direct

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi John,

    Your site seems to use a premium theme:
    https://themeforest.net/item/masterstudy-education-center-wordpress-theme/12170274

    The reason for your issue can be explained with some technical stuff: my plugin checks for products in a product list with a class “products”:

    <ul class="products ...">
    <li>...</li>
    <li>...</li>
    </ul>

    Your theme uses another markup:

    <ul class="stm-courses row list-unstyled">
    <li>...</li>
    <li>...</li>
    </ul>

    You should change this to this and it should work:

    <ul class="products stm-courses row list-unstyled">
    <li>...</li>
    <li>...</li>
    </ul>

    Hope that helps,
    Thomas

    Well I’ve added the ‘products’ class but unfortunately it’s still not triggering gtm4wp.productClick.

    Any other ideas?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Could you check pls whether your theme includes the woocommerce_before_shop_loop_item_title hook while printing the title of the courses?

    Currently I use this hook to add some meta data to each product so that the product click event can pass this to GTM. That will be changed in the upcoming version, until then you will need to check this.

    +1 here.

    Awaiting your upcoming version.

    As mentioned earlier, I asked the theme developers if the hook is present and they replied ‘there is Woocommerce plugin with theme, so you can add and use its hooks also. It should work without conflicts.’ So what do I do?

    Hi Tom,

    Any update on this?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    v1.3 is currently in beta which should solve this as well. If you want to, I can send you v1.3 beta for testing purposes.

    Thomas

    Having the same issue with my theme though I seem to have that hook and class in my template.

    Any update on v1.3 plugin too?

    Hope you can make a premium version of this at some point with more features and regular releases.

    Still a great plugin even without this.

    Steve

    Hi,

    I’m having also issues with the product click event not showing up in the analytics. I’ve already checked the theme for the woocommerce_before_shop_loop_item_title hook and it’s included. Also the products class is in place for the ul element. Theme is Flatsome (same that @mckeownmarketing is using) and the site is rekki.fi

    Was this problem solved for mckeownmarketing?

    Think its related and hopefully fixed with version 1.3 but the position of products on a category page is not the same as what the datalayer is saying and also add to cart buttons other than the product page itself do not provide any data of the product.

    I am using the Flatsome theme too.

    Happy to try out the 1.3 and test it thoroughly.

    Steve

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘gtm4wp.productClick is not firing GTM event’ is closed to new replies.