I have a VueJS SPA in which I have defined a build version that I can easily access as a javascript variable.
I have used VueGtag (https://github.com/MatteoGabriele/vue-gtag) to integrate Google Analytics with my SPA. I would like to view reports in Google Analytics for build version, so I can keep track with version adoption.
I've read about Custom Variables, but I can't see to get this to work and passed over to Google Analytics. Here is what I have at the moment:
Vue.use(VueGtag, {
config: {
id: "UA-XXXXXXX-X"
},
}, router);
And in my main App.vue, I have this in mounted():
this.$gtag.customMap({ 'dimension1': 'version' });
this.$gtag.event('version_event', { version: buildTs });
I have already confirmed that buildTs exists and is accessible in App.vue. However, I don't see any reporting of 'version' in GA.
