sergeyfilimonov / gridsome-plugin-gtm Goto Github PK
View Code? Open in Web Editor NEWGoogle Tag Manager for Gridsome
Home Page: https://gridsome.org/plugins
Google Tag Manager for Gridsome
Home Page: https://gridsome.org/plugins
Not sure if this is a bug with the plugin, vue-gtm, or my own poor understanding of GTM, but I was attempting to use the function below and kept getting "undefined" for category and label. Action was working fine.
I had set up Data Layer Variables specifically for each of the keys below with no luck. Any help would be greatly appreciated!
gtmTrackEvent(data) {
this.$gtm.trackEvent({
event: "mapPointClick",
category: "Home",
action: "Map Point Click",
label: data.company,
value: 1
});
},
Hi !
i have two variables inside .env.development & .env.production that i want to use for this plugin depending on the environment.
For some reason it always use default values whenever i put the .env variables.
{
use: 'gridsome-plugin-gtm',
options: {
id: 'GTM-W6TNPD8',
enabled: process.env.ENABLED_GOOGLE_TAG_MANAGER ,
debug: process.env.DEBUG_GOOGLE_TAG_MANAGER,
}
any ideas why is failing? i already tried
process.env.ENABLED_GOOGLE_TAG_MANAGER
(process.env.ENABLED_GOOGLE_TAG_MANAGER)
(process.env.ENABLED_GOOGLE_TAG_MANAGER === true)
Hey, This doesnt seem to fire on subpages, it fires on every page expect for our thank you pages that sit inside a folder called "thanks" then the vue page so for example website.com/thanks/get-in-touch.vue
Hello i have installed your awesome plugin on my Gridsome site, but seems it not track user events?
Maybe a bug or misconfiguration by me?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.