DemocracyLab / DemocracyLab/CivicTechExchange
Analytics: Redundant Hostnames
- Dominant language
- JavaScript
- Stars
- 105
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
Google Analytics is showing the alert:
Property democracylab.org is receiving data from redundant hostnames. Some of the redundant hostnames are:
democracylab.org
www.democracylab.org
Redundant hostnames are counted as separate rows in reports, so hits that are going to the same page on your site from different hostnames will be split into multiple rows. With data split across multiple rows, traffic to specific pages will appear lower than it actually is.
To avoid this problem, consider setting up a 301 redirect from one of your redundant hostnames to the other, or create a search-and-replace filter that strips "www." from hostnames.
Google Tag Assistant Recordings can help you verify that your redirect is setup correctly, or that your filter is working as intended.
[Trello Card](https://trello.com/c/WkmmQSR2)
Contributor guide
Assessment
This issue has not been assessed yet.