SOLVED

URe: How can I remove tracking from a CTA Button

Go to solution
ezipse
Level 2

How can I remove tracking from a CTA Button

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!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: URe: How can I remove tracking from a CTA Button

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.

View solution in original post

11 REPLIES 11
SanfordWhiteman
Level 10 - Community Moderator

Re: How can I remove tracking from a CTA Button

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

ezipse
Level 2

Re: How can I remove tracking from a CTA Button

Ok. The URL would be: https://www.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:

https://www.example.org/Meeting/#sponsors?

 

Any idea how to get rid of the ?

SanfordWhiteman
Level 10 - Community Moderator

Re: How can I remove tracking from a CTA Button

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.

ezipse
Level 2

URe: How can I remove tracking from a CTA Button

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. 

SanfordWhiteman
Level 10 - Community Moderator

Re: URe: How can I remove tracking from a CTA Button

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.

msutton
Level 2

Re: How can I remove tracking from a CTA Button

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 Sutton
Marketing Operations | DNSFilter.com
ezipse
Level 2

Re: How can I remove tracking from a CTA Button

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

Re: How can I remove tracking from a CTA Button

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 Sutton
Marketing Operations | DNSFilter.com
SanfordWhiteman
Level 10 - Community Moderator

Re: How can I remove tracking from a CTA Button

Can't reproduce this. Wrapping images in a tracked link, where the link URL is (partially) drawn from a token, is an incredibly common task in Marketo — it would be disastrous if it had stopped working.