How To Fix Redundant Hostnames In Google Analytics
Fix for Redundant Hostnames With a Filter in Google Analytics
- Go to the admin section.
- Click on Filters on the 3rd column VIEW, then click the red button +Add Filter.
- Enter "Consolidate hostnames" as name and select Custom for filter type
- From the radio button list select Search and replace (you might need to scroll a little).
- Configure the filter depending on how you want your hostname to appear.
- Converting WWW to non-www
- Filter Field: Hostname
- Search String: ^www\.
- Replace String: leave it empty
- Converting non-www to WWW
- Filter Field: Hostname
- Search String: ^yourdomain\.com$
- Replace String: www.yourdomain.com
- Save your filter and continue to the next part (You can click verify this filter before saving to have a quick glance of how it will work)
0 Comments