Skip to main content
Contributor I
March 8, 2024
Solved

Email template person.id not populating

  • March 8, 2024
  • 3 replies
  • 398 views

I’m trying to create an email with a URL that contains the profile’s unique ID. This is an example of the link

https://my-website.com/some-page/{{ person.id|default:'uuid' }}

The person.id is never populating in preview mode, even when selecting a profile. Other fields like name, email, location populate. Is there something I am missing?

    This topic has been closed for replies.
    Best answer by dgrigg

    Thanks Ashley,

    It turned out this is what I needed {{ person.KlaviyoID }} That outputs the users UUID that can be used by this api end point https://developers.klaviyo.com/en/reference/get_profile to find the user. 

    3 replies

    Ashley I.
    Partner - Platinum
    2025 Champion
    March 11, 2024

    Hi @dgrigg,

    Welcome to the Community! 

    Based on what I am seeing in a previous thread here:

     

    In order to track the ID in Google Analytics using UTM parameters, it seems like you may need to update the Profile ID variable here to 

    {{ subscriber_id }}

     

    Alternatively, I have also seen this variable referenced in API documentation as 

    {{ profile_id }}

     

    So you may also need to try with the {{ _ }} connector instead of the {{ . }}

    I’d recommend trying each of the above solutions to see if you are able to successfully populate the Profile ID in your test URLs. 

     

    Note: It may also be helpful to send yourself a test email to check the URL from your inbox instead of just checking from the Preview mode in Klaviyo. 

    --

     

    Hope this helps!

    -- Ashley Ismailovski

    Ashley Ismailovski, Klaviyo Champion & Director of Email Marketing at SmartSites https://www.smartsites.com/
    dgriggAuthorAnswer
    Contributor I
    March 11, 2024

    Thanks Ashley,

    It turned out this is what I needed {{ person.KlaviyoID }} That outputs the users UUID that can be used by this api end point https://developers.klaviyo.com/en/reference/get_profile to find the user. 

    Ashley I.
    Partner - Platinum
    2025 Champion
    March 11, 2024

    @dgrigg Glad you were able to find a solution! 

    Ashley Ismailovski, Klaviyo Champion & Director of Email Marketing at SmartSites https://www.smartsites.com/