Archived topic
WooCommerce: Execute Javascript in the store only
3 replies · Started by Kristian on September 27, 2019
Hello!
I have a blog with a WooCommerce store. I want to have a chat and heat map tracking, but for speed related SEO reasons only on the actual store pages.
What I have done so far:
-Created an Element with the Javascript
*Hook: wp_footer
*Location: Product, Product Category, Product Tag, Product Archive, Product Category Archive, Product Tag Archive
Problem:
-Can't find how to add it to cart, cashier and order received pages
Can you help me? Is this the best way to do it? Does this even sound reasonable thing to do for speed reasons?
(I linked you straight to the store page. I'm sorry if the terms cashier, cart or some others aren't the real ones as I'm using WooCommerce in Finnish.)
Thanks!
Hi there,
Cart and Checkout are static pages so there in the Pages display rule.
The order received is a query page so the Checkout display should ( maybe ) cover that.
Ahh, of course, how ignorant of me! Thank you!
Glad to be of help