Skip to main content
Solved

Specifying unique_id for site tracking.

  • August 28, 2024
  • 2 replies
  • 79 views

Forum|alt.badge.img+1

Is it possible to set unique_id when using site tracking script (klaviyo.track)?

Best answer by ArpitBanjara

Hey @demian.sh 

Yes, it is possible to set a unique_id when using the Klaviyo site tracking script (klaviyo.track)

When using klaviyo.track to send events to Klaviyo, you can include a properties object where you define custom properties for the event. Within this properties object, you can set a unique_id to uniquely identify the event.

i hope this helps

Cheers

Arpit

2 replies

ArpitBanjara
Principal User I
Forum|alt.badge.img+36
  • Principal User I
  • 384 replies
  • Answer
  • August 28, 2024

Hey @demian.sh 

Yes, it is possible to set a unique_id when using the Klaviyo site tracking script (klaviyo.track)

When using klaviyo.track to send events to Klaviyo, you can include a properties object where you define custom properties for the event. Within this properties object, you can set a unique_id to uniquely identify the event.

i hope this helps

Cheers

Arpit


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 1 reply
  • August 29, 2024

Hello, @ArpitBanjara.
Thanks for you reply. Are you sure about `unique_id` property? I figured out that passing `$event_id` prevents duplications when I pass the same ID for multiple events.