vuejs gtm datalayer code example
Example: vuejs gtm datalayer
if (this.$gtm.enabled()) {
window.dataLayer?.push({
event: "myEvent",
// further parameters
});
}
if (this.$gtm.enabled()) {
window.dataLayer?.push({
event: "myEvent",
// further parameters
});
}