Skip to main content
Solved

add to cart metric isnt syncing data in analytics


Forum|alt.badge.img+2
  • Contributor I
  • 2 replies

 

I have been trying to get this metric working for days now. At first when i applied the snippet code to create the abandonment cart flow, it gave the green tick and said its working. After testing to receive the emails, i found out the ‘add to cart’ data is not being sent to klaviyo analytics. I have tried both methods for an ID and class notation but nothing seems to work.

Above is a screenshot of the inspector tool hoving over my add to cart button. By the looks of it, I would use the ID but neither work. is there maybe a slight change I need to make to help it recognise.

I use the shopify theme ‘venture’ if that is any help.

Any help would be amazing.

Thanks

Best answer by David To

Hey @ethan,

It looks like you had commented on a similar Community thread with the same issue which I’ve already answered. I’ve linked the thread below for others who may be following along on this topic:

Great callout @retention! Case -sensitivity is a crucial aspect when working with javascript!

Have a great day!

David

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 920 replies
  • July 1, 2021

@ethan I see that now, what does your event script look like?  Can you paste that code here too?
if it’s not obvious, everything in javascript case-sensitive and has to match exactly. 


David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • Answer
  • July 8, 2021

Hey @ethan,

It looks like you had commented on a similar Community thread with the same issue which I’ve already answered. I’ve linked the thread below for others who may be following along on this topic:

Great callout @retention! Case -sensitivity is a crucial aspect when working with javascript!

Have a great day!

David