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!
Solved! Go to Solution.
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.
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).
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 ?
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.
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 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.
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.
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.
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.