Marketing Integrations

SAut
Membre

Identify contact from url with querystring coming from email

Résolue

Hi all, I've got a Contacts list and I'm going to send to contacts a customized email which requires a user interaction (clicking on a CTA), sending the contact to an Hubspot landing page.

I would like to know how the landing page can identify the specific contact from this url (token? id?)

Thanks in advance!

0 Votes
2 Solutions acceptées
karstenkoehler
Solution
Au panthéon de la communauté | Partenaire solutions
Au panthéon de la communauté | Partenaire solutions

Identify contact from url with querystring coming from email

Résolue

Hi @SAut,

 

Anything that is stored on the contact record, you can pass through a URL via personalization token.

 

https://knowledge.hubspot.com/website-pages/personalize-your-content

 

The internal syntax of a contact personalization token is {{ contact.internal_name_of_property }}

 

You can look up the internal name of a property in the property settings:

 

karstenkoehler_0-1701275360963.png

 

This means that you can pass on contact information dynamically to a landing page like this:

 

www.website.com?id={{ contact.hs_object_id }}

or

www.website.com?firstname={{ contact.firstname }}&lastname={{ contact.lastname }}

 

Let me know if you have any follow-up questions!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

Voir la solution dans l'envoi d'origine

SAut
Solution
Membre

Identify contact from url with querystring coming from email

Résolue

Hi Karsten,

 

thanks, the solution was in fact:

 

{{ personalization_token('contact.hs_object_id') }}

Voir la solution dans l'envoi d'origine

0 Votes
6 Réponses
karstenkoehler
Au panthéon de la communauté | Partenaire solutions
Au panthéon de la communauté | Partenaire solutions

Identify contact from url with querystring coming from email

Résolue

Hi @SAut,

 

Can you please explain what you would like to achieve? There are various ways of approaching this but it depends on what exactly your goal is.

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

SAut
Membre

Identify contact from url with querystring coming from email

Résolue

Thanks @karstenkoehler ,

I will try to explain it with the dumbest example I can think of.

Suppose I've got a contacts list and want to send them an email with a button. The email would be something like:

 

====================================================

Hi John Doe (the name is automatically set for each contact),

click on the button to read something interesting:

 

CALL_TO_ACTION_BUTTON?id=john_doe_contact_id

====================================================

 

The contact clicks on the link, which points to an Hubspot landing page. On the landing page, the recipient reads:

 

====================================================

Hi, John Doe, this is the interesting thing etc....

====================================================

 

What I would like to achieve, is creating an dynamic email which contains a link with a piece of information (a token, an ID) suited to be read by the landing page so that the landing page can retrieve the full contact information and fill, for example, a placeholder or autocomplete a form field.

Thanks!

 

0 Votes
karstenkoehler
Solution
Au panthéon de la communauté | Partenaire solutions
Au panthéon de la communauté | Partenaire solutions

Identify contact from url with querystring coming from email

Résolue

Hi @SAut,

 

Anything that is stored on the contact record, you can pass through a URL via personalization token.

 

https://knowledge.hubspot.com/website-pages/personalize-your-content

 

The internal syntax of a contact personalization token is {{ contact.internal_name_of_property }}

 

You can look up the internal name of a property in the property settings:

 

karstenkoehler_0-1701275360963.png

 

This means that you can pass on contact information dynamically to a landing page like this:

 

www.website.com?id={{ contact.hs_object_id }}

or

www.website.com?firstname={{ contact.firstname }}&lastname={{ contact.lastname }}

 

Let me know if you have any follow-up questions!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

SAut
Solution
Membre

Identify contact from url with querystring coming from email

Résolue

Hi Karsten,

 

thanks, the solution was in fact:

 

{{ personalization_token('contact.hs_object_id') }}

0 Votes
karstenkoehler
Au panthéon de la communauté | Partenaire solutions
Au panthéon de la communauté | Partenaire solutions

Identify contact from url with querystring coming from email

Résolue

Hi @SAut,

 

Virtually the same thing as the one I had proposed earlier, glad it's working 🙂

 

Please make sure to accept my earlier replies as solutions if they helped you in getting this to work.

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Votes
SAut
Membre

Identify contact from url with querystring coming from email

Résolue

Thanks Karsten,

it's ok for the link creation. But if I wanted to pass the ID only

 

www.website.com?id={{ contact.hs_object_id }}

 

without passing other informations inside the url, how can the landing page retrieve the contact info?

0 Votes