How can I remove tracking from a CTA Button | Community
Skip to main content
Level 2
December 2, 2020
Solved

How can I remove tracking from a CTA Button

  • December 2, 2020
  • 2 replies
  • 5645 views

Hi there,

I learned this in a group consulting session, but now can't find where I made the edits.  My issue is this. We use the Sitecore platform, and I need to use a button with a #at the end (for example - test.com/#sponsor).  The #sponsor acts like an anchor tag to link to an area of our website.  When I use that link in Marketo, it apends a ? and additional characters, so the anchor doesn't work.

 

Does anyone know how to fix this? 

 

Thanks!

Best answer by SanfordWhiteman

Unfortunately, it doesn't. The addition of the ? and following code doesn't work with our website, and removes the anchor. It just takes the user to the top of the page, instead of scrolling them down to the appropriate area. 


This has to be a problem with your website, sorry.

 

I've tested an all-inline link, a link w/tokenized href https://{{my.token}}, and a tokenized link wrapping an <img>. All were rewritten correctly.

2 replies

SanfordWhiteman
Level 10
December 2, 2020

This should not be happening — the rewriter is aware of the difference b/t querystring and hash.

 

Please show the entire URL you're adding as the href. You can substitute example.com in place of your domain if you don't want to reveal it. (Please don't use test.com, as that is someone else's private domain).

ezipseAuthor
Level 2
December 2, 2020

Ok. The URL would be: example.org/Meeting/#sponsors

When using this, it opens to the appropriate page on the web.  But for some reason in buttons, it is adding a ? at the end of the link (even when I believe I disabled tracking).  And then just going to the top of the page.

 

So the resulting URL is this:

example.org/Meeting/#sponsors?

 

Any idea how to get rid of the ?

SanfordWhiteman
Level 10
December 2, 2020

I don't see any problem w/Marketo rewriting that link, with the hash intact. The final URL being

https://www.example.org/Meeting/?mkt_tok=eyJpIjoiTlRsbFptTmp...SSEo4In0%3D#sponsors

as expected.

msutton
Level 2
December 2, 2020

This happens if I use a token with a # or ? in it as the CTA. Is that the case here?

 

I've found that if I replace the token in the email template with the actual URL this doesn't happen.

 

Mike SuttonMarketing Operations | DNSFilter.com
ezipseAuthor
Level 2
December 3, 2020

Thanks for the response. It's interesting that it isn't an issue with links in the text, it only happens when linking images or CTA buttons. 

 

I was able to go in and just replace the token with the URL for that particular CTA and remove tracking, which worked.  I can't get it to work on a linked image though. 

msutton
Level 2
December 3, 2020

On images it looks like I don't get tracking at all if I use a token value, but if I actually enter the URL with URL parameters using the text editor tools it seems to work fine.

Mike SuttonMarketing Operations | DNSFilter.com