Git Product home page Git Product logo

Comments (5)

YosefMets avatar YosefMets commented on June 6, 2024 1

@Shinigami92,
console.log:

$gtm.enabled(): true
$gtm.isInBrowserContext(): true
[GTM-Support]: Dispatching event {event: 'add_to_cart', category: 'ecommerce', action: 'click', label: 'Adding item to cart', value: 5000}

Looks like everything is ok but still not working

from vue-gtm.

Shinigami92 avatar Shinigami92 commented on June 6, 2024

Please make sure that you are in browser context and you have correctly enabled it

https://github.com/gtm-support/core/blob/9391b2d691dcff0dd75446c4ddbce3b916e60652/src/gtm-support.ts#L222-L238

You can test/debug/log $gtm.enabled() and $gtm.isInBrowserContext() and see if both returns true

The debugging is performed (by design) even if the trigger gets not executed

from vue-gtm.

Shinigami92 avatar Shinigami92 commented on June 6, 2024

Okay, sadly in that case I don't know what's going on
Feel free to also log what's happening with window.dataLayer, but I'm done with my knowledge

from vue-gtm.

YosefMets avatar YosefMets commented on June 6, 2024

The datalayer gets new records every time the event is called, as expected

from vue-gtm.

Shinigami92 avatar Shinigami92 commented on June 6, 2024

Then the issue is not anymore on the plugin's side, but on something with GTM itself
Check your GTM-ID or anything like that, look into the account
Search or ask on Stack Overflow
...

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.