Use customer data to personalise a link

cdeyes89
Level 1

Use customer data to personalise a link

Hi 🙂

I'm looking for some help with putting a link into a Marketo email which contains customer information. We are using this to pull back a nearest shop on a map, so would need the URL to read as below:

 

www.myweb.co.uk/store-search/results/?country=en-GB&query=BH21%201UB,%20UK

 

The bold part ifs the customer's postcode, which then directs to search results nearest to that customer. Is this something we can currently through Marketo? I can't seem to find anything in the user guides or on the boards already.

 

Thanks in advance!

Charlotte

2 REPLIES 2
Michael_Florin
Level 9

Re: Use customer data to personalise a link

Very generally speaking, yes, you can put "customer information" on your email. All fields in your database can be dynamically pulled onto your email as lead tokens. Like {{lead.Postcode}}, if "Postcode" is the name of your field. And these lead tokens can be pretty much anywhere on your email, including in links. So something like:

 

www.myweb.co.uk/store-search/results/?country=en-GB&query={{lead.Postcode}} will work perfectly fine.

 

Question now: What exactly are the values in your field and what exactly do you need to output in your link? You might need to tinker with that, probably by creating a different field that holds a reformatted variation of your postcode value or by using email scripting to get to that new value.

SanfordWhiteman
Level 10 - Community Moderator

Re: Use customer data to personalise a link


Question now: What exactly are the values in your field and what exactly do you need to output in your link?

If it has spaces as in the example, then it should be output from Velocity using $esc.uri() — although if spaces are the only possible URI-invalid character, you can get away with letting the client encode them.