text: #GTMtips: Track URL Fragments As Pageviews
  (Updated.
  In Google Analytics, fragment changes are not tracked by default, and the URL paths that are passed to GA with your Pageview hits are stripped of these fragments. With Google Tag Manager, this can be remedied with a History Change Trigger and some Variable magic.X
  The Simmer Newsletter
  Subscribe to the Simmer newsletter to get the latest news and content from Simo Ahava into your email inbox!:
  function() { return {{Event}} === 'gtm.historyChange' && {{New History Fragment}} ? {{Page Path}} + '#' + {{New History Fragment}} : undefined; }:
  function() { return ({{Event}} === 'gtm.js' || {{Event}} === 'gtm.historyChange') && {{New History Fragment}} ? {{Page Path}} + '#' + {{New History Fragment}} : undefined; }:
  function() { return window.location.pathname + window.location.search + window.location.hash; } :-)