Skip to main content
Contributor I
April 10, 2024
Solved

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

  • April 10, 2024
  • 3 replies
  • 155 views

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.
    Best answer by Brian Turcotte

    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
    April 16, 2024

    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
    April 18, 2024

    Shopify using Shrine theme :)

    Thanks,

    Kyle

    Brian Turcotte
    Klaviyo Alum
    April 30, 2024

    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