UTM builder using Marketo Tokens | Community
Skip to main content
New Participant
February 23, 2022
Solved

UTM builder using Marketo Tokens

  • February 23, 2022
  • 2 replies
  • 6244 views

Hi All,

 

Looking for ideas here, how to create UTM tracking links (single or if there are multiple UTM tracking links) using marketo tokens.

 

Or any other ideas are also welcome.

 

Thanks in advance,

Deepthi.

 

 

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Darshil_Shah1

You can create custom program level text tokens and use them in the CTAs in the emails created within the program. Below are some examples of custom text tokens FYR:

These tokens can be used in the email CTAs as per below:

 

 

https://{{my.CTA Link}}?{{my.medium}}&{{my.campaign}}&{{my.source}}&{{my.channel}}&{{my.content}}

 

 

Below is how the tokens would look like in the HTML editor FYR:

You can tokenize your UTM parameters & use them in your COE/clone-able template programs to have your UTM params updated everywhere in the emails within program by making a single update upon cloning the template program. Lastly, please keep in mind that you cannot actually nest these tokens inside an another program token. Hope this helps!

2 replies

SanfordWhiteman
New Participant
February 23, 2022

Additional note: you need to URL-encode query params yourself.

 

For a simple example, if you want the utm_source to be the string q&a, you can’t have the {{my.token}}:

utm_source=q&a

 

It needs to be:

utm_source=q%26a

 

dillonlee02
New Participant
February 23, 2022

Found this topic to be really interesting, and it is good to know about the & sign needing to be %26 because "&" usually translates to %26 when it is encoded within a URL parameter. Thanks for sharing!

SanfordWhiteman
New Participant
February 23, 2022

 it is good to know about the & sign needing to be %26 because "&" usually translates to %26 when it is encoded within a URL parameter.

always, I’d say 🙂

Darshil_Shah1
Darshil_Shah1Accepted solution
Community Manager
February 23, 2022

You can create custom program level text tokens and use them in the CTAs in the emails created within the program. Below are some examples of custom text tokens FYR:

These tokens can be used in the email CTAs as per below:

 

 

https://{{my.CTA Link}}?{{my.medium}}&{{my.campaign}}&{{my.source}}&{{my.channel}}&{{my.content}}

 

 

Below is how the tokens would look like in the HTML editor FYR:

You can tokenize your UTM parameters & use them in your COE/clone-able template programs to have your UTM params updated everywhere in the emails within program by making a single update upon cloning the template program. Lastly, please keep in mind that you cannot actually nest these tokens inside an another program token. Hope this helps!

DeepthiSwAuthor
New Participant
February 23, 2022

Thank you @darshil_shah1,.

But what if I have more than one UTM tracking link then how do we use marketo tokens ?.

 

Thanks,

Deepthi.

 

Darshil_Shah1
Community Manager
February 23, 2022

Well, in that case you can create custom text tokens for each link you wanna track - e.g., {{my.CTA Link 1}}, {{my.CTA Link 2}}, etc., and use them in the respective CTAs within the email(s). Let me know if this answers your question. 🙂