Skip to main content
Contributor I
July 1, 2021
Solved

add to cart metric isnt syncing data in analytics

  • July 1, 2021
  • 2 replies
  • 154 views

 

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

    This topic has been closed for replies.
    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

    2 replies

    retention
    Partner - Platinum
    2025 Champion
    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. 

    Joseph Hsieh // retentioncommerce.com // X: @retention
    David To
    Klaviyo Employee
    David ToAnswer
    Klaviyo Employee
    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