Google Analytics

Google Analytics

Creating a Hostname Filter

  1. Go to Admin > View > Filters and create a new filter
  2. Choose Custom, with "Include", field "Hostname", filter pattern your-website-url.
  3. If there's Analytics data available, you can verify that the filter works as intended
  4. Don't forget to save!

Google Tag Manager Best practices

Save the Universal Analytics ID in a constant variable.