Git Product home page Git Product logo

gridsome-plugin-gtm's People

Contributors

sergeyfilimonov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

u12206050 tw00 lplox

gridsome-plugin-gtm's Issues

Category and Label undefined

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
      });
    },

Problem with .env variables

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)

Doesnt track subpages

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

No events track

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.