Solved

Activity Id and Unique on events?


Userlevel 1
Badge +3

Hi, 

 

I am wondering how the Activity Id and Unique ID on events is calculated?

Cheers

 

Chris 

icon

Best answer by saulblum 2 May 2024, 03:21

View original

4 replies

Userlevel 5
Badge +7

https://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.

Userlevel 1
Badge +3

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?

Userlevel 5
Badge +7

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.

Userlevel 1
Badge +3

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! 

Reply