Skip to content

Commit

Permalink
Merge pull request #19 from mehidi258/master
Browse files Browse the repository at this point in the history
Add location path for tracking UTM parameters correctly
  • Loading branch information
dohomi authored Oct 13, 2019
2 parents b6c1016 + 09c14d7 commit 5f8547f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function ({ app: { router }}, inject) {

if (!<%= options.disableAutoPageTrack %>) {
router.afterEach((to) => {
gtag('config', '<%= options.id %>', { 'page_path': to.fullPath })
gtag('config', '<%= options.id %>', { 'page_path': to.fullPath, 'location_path': window.location.origin + to.fullPath })
})
}

Expand Down

0 comments on commit 5f8547f

Please sign in to comment.