Closed
Bug 1018511
Opened 10 years ago
Closed 10 years ago
Remove UTM params from URL once logged by GA
Categories
(www.mozilla.org :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: kohei, Unassigned)
Details
(Whiteboard: [kb=1399044] )
We have some UTM params for Google Analytics, like
http://www.getfirefox.com/ -> https://www.mozilla.org/en-US/firefox/new/?utm_source=getfirefox-com&utm_medium=referral
While search engines usually discard those params thanks to the canonical URL or Webmaster Tools, visitors may share or bookmark the URL. So, once those params are logged by Google Analytics, we should automatically remove them to simplify the URL if possible. In the case above, the URL will be
https://www.mozilla.org/en-US/firefox/new/
How: use history.replaceState() in the GA _trackPageview callback function
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history
Does this affect _trackEvent?
Updated•10 years ago
|
Whiteboard: [kb=1399044]
Comment 1•10 years ago
|
||
(In reply to Kohei Yoshino [:kohei] from comment #0)
> We have some UTM params for Google Analytics, like
>
> http://www.getfirefox.com/ ->
> https://www.mozilla.org/en-US/firefox/new/?utm_source=getfirefox-
> com&utm_medium=referral
>
> While search engines usually discard those params thanks to the canonical
> URL or Webmaster Tools, visitors may share or bookmark the URL. So, once
> those params are logged by Google Analytics, we should automatically remove
> them to simplify the URL if possible. In the case above, the URL will be
>
> https://www.mozilla.org/en-US/firefox/new/
>
> How: use history.replaceState() in the GA _trackPageview callback function
>
> https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/
> Manipulating_the_browser_history
>
> Does this affect _trackEvent?
I think this is overkill. Search engines by default ignore UTM parameters and I have doubled checked this with google and bing. These parameters will go away as soon as they visit a single other page. A lot of the web relies on referral URLs for general tracking and this really doesn't solve anything other than making things more complex. Research has shown that users primarily ignore URLs, browsers currently grey out parts of the URL that are not the root domain, and the industry currently doesn't worry about this use case.
Why should we worry about it? What is the user benefit?
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Agree this seems like overkill and adds more complexity than I think it needed - closing as wontfix
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•