Skip to main content
Contributor I
August 28, 2024
Solved

Specifying unique_id for site tracking.

  • August 28, 2024
  • 2 replies
  • 152 views

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

    This topic has been closed for replies.
    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 II
    Principal User II
    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

    Arpit Banjara - Lead Email Marketing Specialist at Flowium
    demian.shAuthor
    Contributor I
    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.