ESP - Sendgrid

A guide to generating UUIDs with Sendgrid

SendGrid offers substitution tags which dynamically pull in contact data. By using combinations of these tags we can generate and pass unique values (UUIDs) into the "key" parameters without the need for any javascript. For example:

{{firstname}}   pulls in the recipient's first name
{{lastname}}   pulls in the recipient's last name

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

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

NOTE: the same tags should be passed into the "key" parameter values of both the click and image URLs just like we've done above.