Google Analytics Pro – viewed product

This topic has 4 replies, 3 voices, and was last updated 6 years, 8 months ago ago by Laranz

  • Avatar: bindebale
    bindebale
    Participant
    August 23, 2017 at 09:30

    Hi,

    Recently I wrote about a missing “product” class and an issue with event tracking. However there is one more thing – one event still isn’t tracked properly. The staff wrote

    “Viewed product event tracking depends on the woocommerce_after_single_product_summary action hook. If this hook is removed, the event cannot be tracked. It looks like this hook is either not fired, or all the hooked actions are removed on the XStore theme, thus breaking tracking for GA Pro.

    You would need to reach out to the theme author again and report this compatibility issue to them. It looks like the theme overrides a lot of templates and they may well be out of date as well.”

    How can I fix that?

    Best,
    Kuba

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 25, 2017 at 09:53

    Hello,

    I have sent this question to our developer, unfortunately, he is on vacation, and we may return to this problem only in 4 days. Please wait, sorry for the inconvenience.

    Regards

    Avatar: bindebale
    bindebale
    Participant
    August 25, 2017 at 09:54

    Sure, thanks for the answer

    Avatar: laranz
    Laranz
    Participant
    August 26, 2017 at 02:36

    Hi,

    In the mean time, try this.

    That hooks runs only under these condition..

    1. 8Theme Options -> E-Commerce -> Single Product Page -> Layout is other than Large
    2. 8Theme Options -> E-Commerce -> Single Product Page -> Location of product tabs = Under Content

    If both these option matches then that hook runs, if you still want to run that hook, copy content-single-product.php into your child theme, and remove the condition around line #61.

    Let us know,

    Thanks,
    laranz.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.