Solved

Email template person.id not populating

  • 8 March 2024
  • 3 replies
  • 41 views

Badge

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?

icon

Best answer by dgrigg 11 March 2024, 17:01

View original

3 replies

Userlevel 6
Badge +34

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

Badge

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. 

Userlevel 6
Badge +34

@dgrigg Glad you were able to find a solution! 

Reply