• Hello,

    I am using WooCommerce plugin and for virtual products, there is no ecommerce.detail datalayer for the product page generated. The non-virtual products work.

    Is it possible to enable it somehow or somewhere?

    Adam

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

    (@duracelltomi)

    Hi Adam,

    Could you post a sample URL where I can see the issue?

    Thread Starter adamjurak

    (@adamjurak)

    Sure, here:
    https://trails.cryptomania.cz/en/trail/coronation-bratislava/

    Add To Basket dataLayer works, page view does not.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Is this the default WooCommerce product page or a custom created product page?
    From what I can see this is a custom post type, other than product which might contain a product detail element.

    Thread Starter adamjurak

    (@adamjurak)

    You’re right, I got info that it is a custom page with some buying box. This could be the reason, why th AddToCart works and the page not.

    So, is it possible to integrate it somehow into the page? Or would be the best way to launch a custom made dl.push into the page?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    You can always add your own datalayer content using the gtm4wp_compile_datalayer WordPress hook. I think the best way would be to add the necessary codes manually keeping your custom product page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce Virtual product dataLayer’ is closed to new replies.