Git Product home page Git Product logo

Comments (10)

alfreema avatar alfreema commented on May 27, 2024 6

Also having this issue.

@juliantn ...

Changing the package.json from:

"@gtm-support/vue2-gtm": "^2.0.0",

to

"@gtm-support/vue2-gtm": "^1.3.0",

got me to a running state.

from vue-gtm.

ljuborados avatar ljuborados commented on May 27, 2024 2

@makerovski add "@gtm-support/*" to transpileDepenencies in vue.config.js

from vue-gtm.

makerovski avatar makerovski commented on May 27, 2024 1

The solution from @alfreema does not work for me, any ideas ?

from vue-gtm.

Shinigami92 avatar Shinigami92 commented on May 27, 2024

Which version of WebPack are you using?

I think the best option for you right now is to stay on v1.3.0 and wait until you can support modern environment code.

from vue-gtm.

xuyanmei avatar xuyanmei commented on May 27, 2024

WebPack

Thank you for your answer ,maybe "webpack": "^4.46.0",I thought that the high version might have solved many bugs

from vue-gtm.

Shinigami92 avatar Shinigami92 commented on May 27, 2024

Ah yeah, v2.0.0+ is not compatible anymore with WebPack v4
Maybe it is with WebPack v5, but I highly recommend to try out Vite instead

from vue-gtm.

fdsprop avatar fdsprop commented on May 27, 2024

I am having the same problem, how did you solved it?

from vue-gtm.

juliantn avatar juliantn commented on May 27, 2024

Same here using these versions...

"@gtm-support/vue-gtm": "^2.0.0"
"webpack": "^4.46.0"

from vue-gtm.

makerovski avatar makerovski commented on May 27, 2024

I got a solution for this, I use the tracking in a Method like :

 methods: {
    sendTracking() {
      this.$gtm.trackEvent({
        event: "form-submit",
        Modell: this.configuration.model.name,
        Preis: this.totalPrice,
        noninteraction: false
      });
    },
  },

And in main.js:

import VueGtm from "vue-gtm";

Vue.use(VueGtm, {
  id: "GTM-XXXXXX",
  defer: false,
  enabled: true,
  debug: false,
  loadScript: true,
  trackOnNextTick: false
});

And it worked, maybe helps someone. Thank you!

from vue-gtm.

TrejoCode avatar TrejoCode commented on May 27, 2024

Same error,

from vue-gtm.

Related Issues (20)

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.