Emails with unique identifier included

Eve_Tate
Level 2

Emails with unique identifier included

Hi Community,

I have a question about emails within a campaign/program. We want to run a program where a person will fill in a form with some details and then be emailed with a unique link (to a follow-up page) as a result of their form input; each form fill should produce a different unique link that is displayed in the email.

Wanted to know if a unique link in each email was possible to do in Marketo?

Thanks

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Emails with unique identifier included

Yes, it's possible in multiple ways, from concatenating a random number+address+timestamp in JS and adding a hidden field to the form... to generating the same in a Velocity (Email Script) token... to gen'ing via webhook for an instance-wide unique counter.

But what exactly are you trying to accomplish? There's not enough info about the meaning of this link. A link that's unique to an email id+lead already exists (mkt_tok) and if you append a score field to the querystring, that's guaranteed unique to email id+lead+send.

Eve_Tate
Level 2

Re: Emails with unique identifier included

Thanks for replying so quickly.

We needed Marketo to populate a follow-up page with data provided in the first form fill and then send that unique link to the person that filled out the form. One of our guys thinks he's worked out how to do it.

If it works, I'll post it here.

Thanks again.

SanfordWhiteman
Level 10 - Community Moderator

Re: Emails with unique identifier included

A non-Marketo page, you mean?

A Marketo LP with tokens would already serve this purpose, and any link sent via Marketo email is tokenized by default to load the recipient's Marketo record.

If it's a non-Marketo page, any webpage can read data passed in the URL. That's not a generic "unique link" -- which is why we should've started by talking about your specific goal. If you want to include form data in a link, you can either (a) mirror the form data, URI-encoded, in a hidden textarea field and pass that lead.token in the URL, or (b) use a Velocity token to assemble the link from the individual form fields and URI-encode it. Note what you *don't* want to do is just put lead.tokens in the link URL without encoding them, since the URL will not work when values contain incompatible data.