Giter VIP home page Giter VIP logo

Comments (3)

aawnu avatar aawnu commented on July 21, 2024

There was a person previously that had issues with live debugger and I think it looks for something that GTAG sends. I did not make it work with the server side tracking, if you find a solution please feel free to share!

from php-ga4.

8ctopus avatar 8ctopus commented on July 21, 2024

I have just looked into this again, and it appears that events sent through the measurement protocol which your implementation uses, do not show up in the debug view.

The only way to validate events being sent as per documentation is to send them to https://www.google-analytics.com/debug/mp/collect which will return a validation response such as

{
  "validationMessages": [
    {
      "fieldPath": "events",
      "description": "Event at index: [0] has invalid name [_badEventName]. Names must start with an alphabetic character.",
      "validationCode": "NAME_INVALID"
    }
  ]
}

Reference: https://developers.google.com/analytics/devguides/collection/protocol/ga4/validating-events?client_type=gtag

I would suggest adding a paragraph to the README about this, if you agree, I can submit a PR for it.

from php-ga4.

aawnu avatar aawnu commented on July 21, 2024

Sure, feel free to add it, perhaps some kind of notice around the top but somewhere after the gdpr notice.

Edit: Please do also add the link, either next to it or in the links at bottom.

from php-ga4.

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.