Skip to content

Commit

Permalink
Add location path for tracking UTM parameters correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mehidi258 committed Oct 11, 2019
1 parent b6c1016 commit 09c14d7
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 09c14d7

Please sign in to comment.