From 09c14d74f3c6968d43c5ea12f31188724f9b1c24 Mon Sep 17 00:00:00 2001 From: Mehidi Hassan Date: Fri, 11 Oct 2019 12:43:50 +0600 Subject: [PATCH] Add location path for tracking UTM parameters correctly --- lib/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugin.js b/lib/plugin.js index 83a816b..c576017 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -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 }) }) }