# Embed a unique URL with custom user fields

**URL:** <https://community.hubspot.com/t/embed-a-unique-url-with-custom-user-fields/23903>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [August 7, 2020, 12:00am UTC](https://community.hubspot.com/t/embed-a-unique-url-with-custom-user-fields/23903 "2020-08-07T00:00:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brady\_carpenter](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brady_carpenter/32/30597_2.png) [@brady\_carpenter](https://community.hubspot.com/u/brady_carpenter)\
**Post date:** [August 7, 2020, 12:00am UTC](https://community.hubspot.com/t/embed-a-unique-url-with-custom-user-fields/23903/1 "2020-08-07T00:00:58Z")

</div>

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:

> **[Explore Typeform | Create your own surveys, quizzes, forms](https://www.typeform.com/private-typeform?utm_source=typeform.com-16562906-basic&utm_medium=typeform&utm_content=typeform-private&utm_campaign=k8yBup0U%0A%20%20)**
>
> Experience a slick way of creating forms with Typeform. Try templates for quizzes, surveys, forms and more.

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?  
Thanks,

Brady

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [August 10, 2020, 4:12pm UTC](https://community.hubspot.com/t/embed-a-unique-url-with-custom-user-fields/23903/2 "2020-08-10T16:12:28Z")

</div>

Hi, [@brady\_carpenter](https://community.hubspot.com/t5/user/viewprofilepage/user-id/135647).

Yes, this is certainly possible with HubSpot [personalization tokens](https://knowledge.hubspot.com/conversations/how-do-i-add-personalization-tokens-to-a-template-or-snippet).

In the GIF below, I manually add the HubL [variables](https://developers.hubspot.com/docs/cms/hubl/variables-macros-syntax)/tokens for a contact’s `email` and `firstname` properties to a hyperlink using the syntax `{{contact.property_name}}`:

![30123iF6537417F9AA99EB.gif](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/6/762588204f0b33f230c8989792a0a58f7547cb0f.gif)

You can also swap out the `email` and `firstname` values for the [_internal names_](https://knowledge.hubspot.com/crm-setup/manage-your-properties) (not labels like “First name”) of any other default or custom contact property in your CRM.

---

<div class="post-metadata">

**Author:** ![RFasudhani](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@RFasudhani](https://community.hubspot.com/u/RFasudhani)\
**Post date:** [August 6, 2022, 12:00am UTC](https://community.hubspot.com/t/embed-a-unique-url-with-custom-user-fields/23903/3 "2022-08-06T00:00:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![JGenther](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JGenther](https://community.hubspot.com/u/JGenther)\
**Post date:** [September 13, 2022, 5:59pm UTC](https://community.hubspot.com/t/embed-a-unique-url-with-custom-user-fields/23903/4 "2022-09-13T17:59:45Z")

</div>

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:** [Certis Intelligence](https://oncointel.certisoncology.com/model/)

**Link w/ Personalization Token:** [https://oncointel.certisoncology.com/model/?={{contact.model1\_match\_barneyoi\_id](https://oncointel.certisoncology.com/model/?=%7B%7Bcontact.model1_match_barneyoi_id)}}

_I’ve tried multiple variations:_

- _[https://oncointel.certisoncology.com/model/?={{model1\_match\_barneyoi\_id}}](https://oncointel.certisoncology.com/model/?=%7B%7Bmodel1_match_barneyoi_id%7D%7D)_
- _[https://oncointel.certisoncology.com/model/?={{contact.model1\_match\_barneyoi\_id](https://oncointel.certisoncology.com/model/?=%7B%7Bcontact.model1_match_barneyoi_id)}}_
- _[https://oncointel.certisoncology.com/model/?model1\_match\_barneyoi\_id={{contact.model1\_match\_barneyoi\_id](https://oncointel.certisoncology.com/model/?model1_match_barneyoi_id=%7B%7Bcontact.model1_match_barneyoi_id)}}_
- _[https://oncointel.certisoncology.com/model/?model1\_match\_barneyoi\_id={{model1\_match\_barneyoi\_id](https://oncointel.certisoncology.com/model/?model1_match_barneyoi_id=%7B%7Bmodel1_match_barneyoi_id)}}_

**Here is how the link comes through via email:** [https://email.certisoncology.com/e3t/Ctc/OQ+113/cYBBM04/VX7pCH29g248W5TNhcX4SMXHlW7vv0b\_4PWRQhN7Wbry33lLB3V1-WJV7CgVv0W6w-sjV2kttp7W4gF1xw1VcNtrW8yg4C15RGX40W1rnZqT6SnRzqN98\_pbDncm3MW95hhTH2Bm10bVXq1WX1lg8SKW84TKd-4-2sjcW17Sl6b4Hy9S6W2-jhFb8D\_rZ0W2g8jKX9hfCNbW7xzlrW3w68zVM7HMCjJ9qrCW14HcrH7FL5H4Vng94d6rR8bwW3Z1yNf9bCQJkW2W4b\_G3tvj-WW8NXBcn3-XqScW7h\_KWc7YSlmVW4zGkJK2jy19k38RT1](https://email.certisoncology.com/e3t/Ctc/OQ+113/cYBBM04/VX7pCH29g248W5TNhcX4SMXHlW7vv0b_4PWRQhN7Wbry33lLB3V1-WJV7CgVv0W6w-sjV2kttp7W4gF1xw1VcNtrW8yg4C15RGX40W1rnZqT6SnRzqN98_pbDncm3MW95hhTH2Bm10bVXq1WX1lg8SKW84TKd-4-2sjcW17Sl6b4Hy9S6W2-jhFb8D_rZ0W2g8jKX9hfCNbW7xzlrW3w68zVM7HMCjJ9qrCW14HcrH7FL5H4Vng94d6rR8bwW3Z1yNf9bCQJkW2W4b_G3tvj-WW8NXBcn3-XqScW7h_KWc7YSlmVW4zGkJK2jy19k38RT1)

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

---

<div class="post-metadata">

**Author:** ![joshmooney](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@joshmooney](https://community.hubspot.com/u/joshmooney)\
**Post date:** [April 23, 2024, 6:21pm UTC](https://community.hubspot.com/t/embed-a-unique-url-with-custom-user-fields/23903/5 "2024-04-23T18:21:54Z")

</div>

This doesn’t work. Any reason why? See screenshots. The tokens aren’t rendered in the preview link.

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/0/604945dc95ecd7c6c9229c0a6cf77c38b684dbcb.png) ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/e/5e7166e02c9ff24be4356247b5bb5206f8a9ed52.png)

---

<div class="post-metadata">

**Author:** ![clovria](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/clovria/32/38807_2.png) [@clovria](https://community.hubspot.com/u/clovria)\
**Post date:** [November 23, 2021, 6:18pm UTC](https://community.hubspot.com/t/embed-a-unique-url-with-custom-user-fields/23903/6 "2021-11-23T18:18:57Z")

</div>

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.
