Skip to main content
Solved

Email template person.id not populating

  • March 8, 2024
  • 3 replies
  • 154 views

Forum|alt.badge.img

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?

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. 

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

Ashley I.
Partner - Platinum
Forum|alt.badge.img+39
  • 2025 Champion
  • 242 replies
  • 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


Forum|alt.badge.img
  • Author
  • Contributor I
  • 1 reply
  • Answer
  • 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
Forum|alt.badge.img+39
  • 2025 Champion
  • 242 replies
  • March 11, 2024

@dgrigg Glad you were able to find a solution!