Question

Klaviyo V1/V2 API Retirement

  • 25 March 2024
  • 6 replies
  • 116 views

Badge +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

 

6 replies

Userlevel 4
Badge +7

Which JS snippet is this for, for which events?

Userlevel 7
Badge +57

@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!)

 

Badge +4

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

Userlevel 4
Badge +7

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?

Badge +4

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.

Userlevel 7
Badge +36

Hi @AQKhan!
 

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

- Brian

Reply