Google Analytics
Google Analytics
Creating a Hostname Filter
- Go to
Admin > View > Filters
and create a new filter - Choose
Custom
, with "Include", field "Hostname", filter pattern your-website-url. - If there's Analytics data available, you can verify that the filter works as intended
- Don't forget to save!
Google Tag Manager Best practices
Save the Universal Analytics ID in a constant
variable.