Skip to main content
Solved

How to send multiple client tracking event at a single second - Magento2

  • September 28, 2023
  • 3 replies
  • 103 views

Forum|alt.badge.img+2

I am using Magento 2.

I am using “Create Event” endpoint (https://a.klaviyo.com/api/events/) https://developers.klaviyo.com/en/reference/create_event

In my store I am sending multiple tracking requests at a time.

If I send 5 requests, only 3 is received in klaviyo.

Is there a way to send bulk requests?

 

Best answer by Brian Turcotte

Hi @jason.d!

Turns out that this behavior is due to a feature of our Create Event and Create Client Event called unique_id. This screenshot is from the API docs for these calls:

 

 

To summarize, if you don’t include a unique_id value in the different calls, Klaviyo will default to using the timestamp as the unique_id - which means that if you’re sending multiple events at the same time, Klaviyo will assign them all the same unique_id, for which there is a limit of one event per profile per second.

 

This is all to say that you can work around this behavior by assigning a unique_id to each new create event call.

 

Best,

Brian

3 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • September 29, 2023

Hi @jason.d !

 

I’m going to check on this with Engineering and I’ll update the thread ASAP!

Best,

Brian


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • October 5, 2023

Hi @jason.d!

Turns out that this behavior is due to a feature of our Create Event and Create Client Event called unique_id. This screenshot is from the API docs for these calls:

 

 

To summarize, if you don’t include a unique_id value in the different calls, Klaviyo will default to using the timestamp as the unique_id - which means that if you’re sending multiple events at the same time, Klaviyo will assign them all the same unique_id, for which there is a limit of one event per profile per second.

 

This is all to say that you can work around this behavior by assigning a unique_id to each new create event call.

 

Best,

Brian


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • October 6, 2023

Hi @Brian Turcotte 

Thank you so much for the response. I will try to check on the unique_id part in sending the event. I hope this might help.

 

Thanks,

Jason D