Comments (10)
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.
@makerovski add "@gtm-support/*" to transpileDepenencies in vue.config.js
from vue-gtm.
The solution from @alfreema does not work for me, any ideas ?
from vue-gtm.
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.
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.
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.
I am having the same problem, how did you solved it?
from vue-gtm.
Same here using these versions...
"@gtm-support/vue-gtm": "^2.0.0"
"webpack": "^4.46.0"
from vue-gtm.
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.
Same error,
from vue-gtm.
Related Issues (20)
- Bug: Vue2 npm ERR! ERESOLVE could not resolve HOT 3
- How to add content_group
- Bug: Plugin is not working with stream ID HOT 1
- Error : You may need an appropriate loader to handle this file type HOT 5
- Bug: last custom property is persisted HOT 2
- Using in Nuxt 3 project. `page_view` works, but `trackEvent` doesn't HOT 5
- Bug: My GTM tag starts with G instead of GTM HOT 1
- How to properly access `cid` value ? HOT 1
- Bug: cannot install with vue@^3.2.0 HOT 4
- Bug: nonce config does not output nonce to script tag HOT 10
- Bug: Can you please update to allow Google IDs to begin with G- HOT 1
- SSR support?
- Google Tag Manager tag is not firing when viewing the page; we have to reload the pageBug: HOT 3
- Add ability to load local gtm.js HOT 1
- Bug: Module pushes events to the datalayer that are empty with the name "interaction"
- Bug: The GTM Tag ID shows as "G-XXXXXXX", "UA-XXXXXX" or "AW-XXXXXXX" not GTM-XXXXXX HOT 2
- PartyTown support HOT 1
- Bug: router can not be passed to the plugin because the corresponding property doesn
- Bug: router can not be passed to the plugin because the corresponding property doesn't exist HOT 2
- Nonce not added as attribute HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-gtm.