This topic has 4 replies, 3 voices, and was last updated 7 years, 2 months ago ago by Laranz
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
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
Sure, thanks for the answer
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.
Tagged: google analytics, themes, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up