[Resolved] WooCommerce: Execute Javascript in the store only

Home Forums Support [Resolved] WooCommerce: Execute Javascript in the store only

Home Forums Support WooCommerce: Execute Javascript in the store only

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1020173
    Kristian

    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!

    #1020394
    David
    Staff
    Customer Support

    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.

    #1041037
    Kristian

    Ahh, of course, how ignorant of me! Thank you!

    #1041134
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.