Mobile app version of vmapp.org
Login or Join
Dunderdale272

: Can I remove visible referer from link? I use referer info to track which of my campaigns works the best. So instead of <a href="someweb.com">someweb</a> I have a link like <a

@Dunderdale272

Posted in: #GoogleAnalytics #Htaccess #Referrer

I use referer info to track which of my campaigns works the best. So instead of

<a href="someweb.com">someweb</a>


I have a link like

<a href="http://someweb.com?utm_source=john&utm_medium=email&utm_content=NAME&utm_campaign=campaing">someweb</a>


Now when a user cliks "someweb" the whole URL string is shown in the adressbar. Is this possible to mask/hide somehow? Maybe via .htaccss?

Thanks in advance

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Dunderdale272

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

For search engines, putting the correct URL in a canonical link tag is the best idea. Then if search engines follow the link, they know the correct URL to show in search results.

Your concern may be with users copying the full URL and pasting elsewhere. A good solution here is to do a 301 redirect back to the canonical page. So when you load the home page, first check the URL parameters and take whatever actions you do already. Then serve a redirect to the root page without the query string.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme