dwyl / dwyl/learn-google-analytics

How to set up a subdomain on Google Analytics

Open
#14 1 comment 0 reactions 1 assignee Claimed by @Cleop View on GitHub
enhancement
Dominant language
HTML
Stars
74
Forks
12
PR merge metrics
No merged PRs in 30d

Description

How to set up a subdomain on Google Analytics. Learning from: http://www.verticalrail.com/kb/filter-in-google-analytics-to-track-subdomains/

See https://github.com/dwyl/tachyons-bootstrap/issues/51#issue-236527191

1. Add the UA code from your main site to the page/s on your subdomain that you want to track
2. Create a new view in GA for your subdomain (you will need edit permissions to be able to do this if you're using a company account)
3. Apply a custom filter to your newly created view to specify that it should only count traffic coming to the subdomain, not the entire domain
4. That's it! Test it in real-time view by opening your subdomain site in a separate tab to see whether GA is registering your visit.
5. Amend/ check your existing domain's filter so that you can either include/exclude traffic from your subdomain, depending on your needs.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.