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?
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.
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.
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.