APIs & Integrations


Embed a unique URL with custom user fields

Hi there, 


I am building a sequence and in one of the emails, I am trying to generate a unique URL that is dyanamic based on the users first name and email address. 

Thus, I am trying to have the email send: 


Where name is the contacts: first name
Where email is the contacts: email

Is there a way for me to dynamically create this as a template and then have the merge fields generate the uniqe information as part of the template? 




4 Replies 4
HubSpot Product Team
HubSpot Product Team

Embed a unique URL with custom user fields

Hi all!

We just wanted to add some clarification that personalization tokens can be used as part of the URL, but this is only supported if they're added as part of the query parameters (the portion after the question mark (?) in the URL). We do not support using a personalization token as the entire URL.

HubSpot Employee
HubSpot Employee

Embed a unique URL with custom user fields

Hi, @brady_carpenter.


Yes, this is certainly possible with HubSpot personalization tokens.


In the GIF below, I manually add the HubL variables/tokens for a contact's email and firstname properties to a hyperlink using the syntax {{contact.property_name}}:




You can also swap out the email and firstname values for the internal names (not labels like "First name") of any other default or custom contact property in your CRM.

Isaac Takushi

Associate Certification Manager

Embed a unique URL with custom user fields

Hi there, I'm attempting to follow your instructions to embed a link using one custom field (personalization token) in the URL but it doesn't appear to be working. Once I receive the email, the link drops what I've added entirely.


For example:

Link: https://oncointel.certisoncology.com/model/

Link w/ Personalization Token: https://oncointel.certisoncology.com/model/?={{contact.model1_match_barneyoi_id}}

I've tried multiple variations:

Here is how the link comes through via email: https://email.certisoncology.com/e3t/Ctc/OQ+113/cYBBM04/VX7pCH29g248W5TNhcX4SMXHlW7vv0b_4PWRQhN7Wbry...


Are there only certain versions of HubSpot where this is possible to achieve? 



Embed a unique URL with custom user fields

I am using the internal names for the query parameter and it's been hit or miss on what works. Are there any other considerations I need to be aware of? I've tried using a property from a custom object and also another property from a contact and those haven't worked. I have only been able to successfully use the property for our salesforce ID, but this has been the only thing.