Passing Parameters to the URL on a button

SOLVE
Highlighted
New Contributor

I'm creating an email template.  Can anyone tell me how to pass a parameter to the URL of a button?  For example, I have a button labelled "Send Sample".  I need to know at least the name, or email address of the person making the request so I can look up their address, etc. in order to send the sample.

 

I'm hoping that the [email address] or some other parameter can be sent to the URL so the server can capture that information.

 

Does anyone know how this can be done?  Thanks in Advance!!

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Community Superstar

If your 'button' is a HubSpot CTA it's not eligible for use with personalization tokens -- see this thread.

 

That being said, you may build an image button (non-CTA) and link to it manually using a personalization token (see same thread).

Hope that helps.

 

Best,
Frank

 

MFrankJohnson-dot-com-HubSpot-Community-banner-gif-v20190817

Reply
0 Upvotes
5 Replies 5
Community Superstar

If your 'button' is a HubSpot CTA it's not eligible for use with personalization tokens -- see this thread.

 

That being said, you may build an image button (non-CTA) and link to it manually using a personalization token (see same thread).

Hope that helps.

 

Best,
Frank

 

MFrankJohnson-dot-com-HubSpot-Community-banner-gif-v20190817

Reply
0 Upvotes
New Contributor

Thank you. 

 

Where can you get a list of all of the tokens?  

Reply
0 Upvotes
Community Superstar

Not aware of a 'list' of personalization tokens. However, most default and custom properties are available for use as personalization tokens per the following article.

- see Personalize your HubSpot content

Hope that helps.

 

Best,
Frank

 

MFrankJohnson-dot-com-HubSpot-Community-banner-gif-v20190817

Reply
0 Upvotes
New Contributor

We're getting close.  I guess what I'm asking is what is the syntax of the property? 

 

In the example we have {{contact.email}}.  But what if I create a custom property like "my custom property" with spaces.  What is the syntax of the token:

 

1. {{contact.my custom property}}

2. {{contact.mycustomproperty}}

3. {{contact.my_custom_property}}

4. ??

 

Thanks!!

Reply
0 Upvotes
Community Superstar

You'll need to use what's known as the 'internal value' for the property. These are highly specific to each property, as the ability to edit these internal values within HubSpot has evolved over time and is now totally prohibited.


That being said, the general syntax replaces spaces and most other special characters with the underscore character ('_') -- as shown in your example #3.


Best way to be certain what the internal value for any given property is is to view the property within the HubSpot UI. Once in the property definition dialog you'll want to click on the '</>' symbol to reveal the internal value.

- see image

 

hubspot-properties-internal-values.pngHubSpot Properties Internal Values

 

Hope that helps.

 

Best,
Frank

 

MFrankJohnson-dot-com-HubSpot-Community-banner-gif-v20190817

Reply
0 Upvotes