Skip to main content
Solved

Klaviyo V1/V2 API Retirement

  • March 25, 2024
  • 6 replies
  • 530 views

Forum|alt.badge.img+4

Hi, hope everyone is doing fine! I went through all the migration resources provided by Klaviyo. The one thing that isn’t still clear to me, that where we can find the code to update in Shopify? For example, I have a  “/track” legacy API now I want to update it with new version, where I can find the code to update this? And how to do it because the migration resources are not much clearer. Thanks

 

Best answer by Brian Turcotte

Hi @AQKhan!
 

You can now use the new API audit tools to get this information!

- Brian

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

6 replies

Forum|alt.badge.img+7
  • Klaviyo Employee
  • 169 replies
  • March 25, 2024

Which JS snippet is this for, for which events?


retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 938 replies
  • March 25, 2024

@AQKhan - assuming you are doing this in a Shopify template on the client side, you should call the “Create Client Event” API and pass in the appropriate parameters for the event/metric you want to pass to Klaviyo.  If you are doing 

These resources might be helpful:

Which events or metrics are you trying to update?  If you paste in the existing code, maybe someone here can help (make sure you don’t share your private API key here!)

 


Forum|alt.badge.img+4
  • Author
  • Contributor I
  • 2 replies
  • March 26, 2024

Hi, this comes under the migrating track calls https://developers.klaviyo.com/en/docs/migrate_track_identify_and_subscribe_to_our_new_apis. The problem is that I am not sure where to create an updated event or where to change the code in Shopify template. When I click on the legacy end points Docs in my exported APIs sheet, it redirects me here https://developers.klaviyo.com/en/v1-2/reference/track-get


Forum|alt.badge.img+7
  • Klaviyo Employee
  • 169 replies
  • March 26, 2024

Is this one of the standard snippets like Added to Cart? https://help.klaviyo.com/hc/en-us/articles/115001396711

If so, there’s nothing to update.

Or is this a custom JavaScript snippet?


Forum|alt.badge.img+4
  • Author
  • Contributor I
  • 2 replies
  • March 26, 2024

Hi, thanks for your response. As Klaviyo migration resources says, if something ends at Endpoint path /track, V1,V2 it needs to be updated. I imported the APIs data in CSV, and I am now seeing Endpoints paths ending at /track, V1, V2. But that is what I am not clear on how to find which code causes endpoint path /track. For something's like that is associated with 3rd party tools like attentive, I can see it has Key Label, but the code that is on Shopify how I am going to find what code it is because I am only getting endpoint paths data in CSV. Hope this is clear.


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • April 25, 2024

Hi @AQKhan!
 

You can now use the new API audit tools to get this information!

- Brian