ESP - HubSpot

A guide to generating UUIDs with HubSpot

HubSpot offers predefined variables which allow users to pull in personalized campaign and contact data. By using combinations of these variables we can generate and pass unique identifiers (UUIDs) into the "key" parameters without the need for any javascript. For example:

{{contact.lastname}}  pulls in the last name of a known contact
{{contact.firstname}}  pulls in the first name of a known contact
{{content.campaign}} pulls in the campaign's ID

By combining these variables we can successfully create dynamic UUIDs and our "key" parameter values would therefore look something like this:

<a href="{{contact.lastname}}{{contact.firstname}}{{content.campaign}}...
<img src="{{contact.lastname}}{{contact.firstname}}{{content.campaign}}...

NOTE: the same UUID should be passed into the "key" parameter values of both the click and image URLs