The marketing team have started to ask for a full breakdown of the link clicks and one issue that keeps coming up is redirecto / mailto links.
I've looked up some of the solutions to this and got something that works. Our openers seem to mainly be desktop openers.
The suggested solution that I found was to use a cloudpage to re-direct the link to the actual url.
It feels wrong but in all my tests everything seems to work fine, and the tracking is there.
CP:
%%[
VAR @url
SET @url = QueryParameter("url")
]%%
<script>
window.location.replace("%%=v(@url)=%%");
</script>
Email: %%[
VAR @targetURL, @redirectPage
SET @targetURL = AttributeValue("YourFieldNameHere")
SET @redirectPage = Concat("https://CLOUDPAGELINKHERE?url=", UrlEncode(@targetURL))
]%%
Link:
%%=v(@redirectPage)=%%
I'm thinking about something similar with mailto links. Does anyone have any thought - or advice on this approach?
Lukas Lunow (NoA Ignite) Forum Ambassador
Why do you see a need for using redirect in CloudPages to track regular email clicks? Any link in the email, will normally get tracked automatically - unless the entire html code including the full <a href=“”> is placed in one ampscript variable. I would start by verifying your email code, before jumping into cloud page based workarounds.
Your other question of mailto: tracking is a different story. This will not be possible to achieve, since this is handled locally in the email client, and will not be sorted neither via standard tracking or with a workaround.