Skip to main content
Contributor I
Apr 10, 2024 2:00 PM UTC
Solved

'Add to Cart' Trigger - button has both ID and class?

I’ve gone through the tutorial, tried the original and both snippers 2 and 3 using the button ID and Class but neither are tracking Add to Carts. My button has both ID and Class. When I click the button Chrome highlights the Class code so I assumed it was that at first.

Do I need to have Snipper 1+snipper 2 or 3? Which should I use? I’ve tried all combinations.

Thanks!

    This topic has been closed for replies.
    Brian Turcotte
    Klaviyo Alum
    Apr 30, 2024 8:34 PM UTC

    Hi @kylespacesweets!

     

    My apologies for the delay here! Are any other functionalities not working on your site? Also, can you confirm that Klaviyo.js has been successfully added?

     

    - Brian

    3 replies

    Brian Turcotte
    Klaviyo Alum
    Apr 16, 2024 2:42 PM UTC

    Hi @kylespacesweets!

    May I ask what e-commerce platform you’re using? If you’re using Shopify, what theme are you using?

    Best,
    Brian

    Contributor I
    Apr 18, 2024 3:41 PM UTC

    Shopify using Shrine theme :)

    Thanks,

    Kyle

    Brian Turcotte
    Klaviyo Alum
    Apr 30, 2024 8:34 PM UTC

    Hi @kylespacesweets!

     

    My apologies for the delay here! Are any other functionalities not working on your site? Also, can you confirm that Klaviyo.js has been successfully added?

     

    - Brian