nuxt-community / google-gtag-module

Enable google gtagjs for NuxtJs
MIT License
145 stars 29 forks source link

Add location path for tracking UTM parameters correctly #19

Closed mehidi258 closed 4 years ago

mehidi258 commented 4 years ago

Added page_location property with page_path for tracking UTM parameters without reload. Used window.location.origin for getting origin but it's optional, if you feel window can create problem in some time you can remove origin name, only to.fullPath will be enough for doing the job.