Tracking issue using tokens | Community
Skip to main content
Michelle_Wolle2
Level 2
March 21, 2019
Solved

Tracking issue using tokens

  • March 21, 2019
  • 3 replies
  • 5914 views

Can anyone help me with a solution to my click tracking issue.

We have a tokeninzed webinar program. The email CTA is to register for a webinar using a token link to a registration landing page.

Token = {{my.reg link}}

Value in token = http://discover.companyname/landingpage.html

The link is not being tracked which I presumed is because the http:// is in the token value but I have tried it without the http:// and still no joy.

Best answer by Loren_Posendek

Hi Michelle, as Sanford mentioned, this is known tracking issue in Marketo if you use the entire URL (with http://) within the token and link to it in the CTA.

Rather, the best practice for your CTA to track email clicks would be to hyperlink your CTA text with the following "URL" - http://{{my.reg link}} - essentially the http:// is outside of the token, and the rest of your URL is in the token. In this case, your {{my.reg link}} token value would be - discover.companyname/landingpage.html.

Hope that helps!

3 replies

SanfordWhiteman
Level 10
March 21, 2019

The link is not being tracked which I presumed is because the http:// is in the token value but I have tried it without the http:// and still no joy.

Yes, this is a known rule.

Are you saying that with http:​// hard-coded in the href and only the hostname/pathname in the {{my.token}}, the link is assembled correctly but not tracked? Can you show the HTML you're using for the <a> (and highlight the code as HTML, please).

https://s3.amazonaws.com/blog-images-teknkl-com/syntax_highlighter.gif

Michelle_Wolle2
Level 2
March 22, 2019

Thanks Sanford. Now fixed.

Loren_Posendek
Loren_PosendekAccepted solution
Level 4
March 21, 2019

Hi Michelle, as Sanford mentioned, this is known tracking issue in Marketo if you use the entire URL (with http://) within the token and link to it in the CTA.

Rather, the best practice for your CTA to track email clicks would be to hyperlink your CTA text with the following "URL" - http://{{my.reg link}} - essentially the http:// is outside of the token, and the rest of your URL is in the token. In this case, your {{my.reg link}} token value would be - discover.companyname/landingpage.html.

Hope that helps!

Michelle_Wolle2
Level 2
March 22, 2019

Yes, this worked and now the link is now showing as clicked.

Matt_Aromando
Level 1
December 5, 2019

I'm trying out this method of placing the https:// outside of the token and I think it works, the link appears as a tracked link now, but the URL is several times longer than a normal tracked link. Is this OK? Do we know the reason for this?

SanfordWhiteman
Level 10
December 5, 2019

Tracked links and mkt_toks come in many lengths, it's not unexpected.

Dragan_Bodrozic
Level 2
May 4, 2020

How do you set the http/https link like this (outside of the token) if you don't know if the link is http or https?