Hi,
I am wondering how the Activity Id and Unique ID on events is calculated?
Cheers
Chris
Best answer by saulblum
View originalHi,
I am wondering how the Activity Id and Unique ID on events is calculated?
Cheers
Chris
Best answer by saulblum
View originalhttps://developers.klaviyo.com/en/reference/create_event
You can explictly set the event’s unique ID when creating an event; else, it’ll default to a timestamp.
unique_id
string
A unique identifier for an event. If the unique_id is repeated for the same
profile and metric, only the first processed event will be recorded. If this is not
present, this will use the time to the second. Using the default, this limits only one
event per profile per second.
Unique ID is also used in events like Canceled Order, to match the event back to the original order, for CLV calculations.
Hey Saulblum,
Thanks for your reply.
Correct, I can set the unique_id myself, I guess i was wondering how the value was created, was it based on a timestamp + useragent?
Hey Saulblum,
Thanks for your reply.
Correct, I can set the unique_id myself, I guess i was wondering how the value was created, was it based on a timestamp + useragent?
If you don’t explicitly set the event’s unique ID, it’s just a UNIX time stamp.
Hey Saulblum,
Thanks for your reply.
Correct, I can set the unique_id myself, I guess i was wondering how the value was created, was it based on a timestamp + useragent?
If you don’t explicitly set the event’s unique ID, it’s just a UNIX time stamp.
thanks, understood!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.