Giter VIP home page Giter VIP logo

Comments (12)

aawnu avatar aawnu commented on July 21, 2024 1

@mattinglot Roger, thank you for clarifying. I will have a look into it 🥳

from php-ga4.

mattinglot avatar mattinglot commented on July 21, 2024 1

@aawnu tried it including clicking dropdown and nothing. It's weird because it looks like the request is being sent by your code:

image

204 response is received.

The article does say it may take a day to start working so will try again tomorrow.

from php-ga4.

aawnu avatar aawnu commented on July 21, 2024

Hello @mattinglot

Thank you for the kind words!

I might be missing a section of the developer documentation; I do not see anything about debug mode in the events api. Perhaps this is meant for the Javascript/GTM integration?

If you have any source or documentation then I can look further into this.

from php-ga4.

mattinglot avatar mattinglot commented on July 21, 2024

@aawnu supposedly it does support it, here's a link:
https://stackoverflow.com/questions/65094010/setting-debug-mode-with-measurement-protocol-ga4

The advantage would be that you can then see events instantly in the debug view and know they work vs waiting a day.

from php-ga4.

aawnu avatar aawnu commented on July 21, 2024

@mattinglot thank you for the link.

From the link you have sent I already have debug mode, for the entirety of requests with the debug variable when instanciating the Analytucs model. ref: https://github.com/aawnu/php-ga4/blob/master/src/Analytics.php#L32

Is it the individual "per event" debug you are looking for, that can work within the live/active code?

from php-ga4.

mattinglot avatar mattinglot commented on July 21, 2024

@aawnu yes I tried that but as far as I can tell it doesn't do the same thing. That's a separate debug feature of the measurement protocol that sends requests to a different endpoint and does not log them at all. The per-event debug_mode is an entirely different feature from the looks of it, which allows an event to be sent to the live endpoint, and appear within the GA 4 debug tool.

from php-ga4.

aawnu avatar aawnu commented on July 21, 2024

@mattinglot I have pushed to master, would you be so kind and check if it works before I make a release?

Version dev-master should have the code included.

from php-ga4.

mattinglot avatar mattinglot commented on July 21, 2024

@aawnu Hmm so I was able to call ->debug(true) on an event, but I'm not seeing any debug events pop up in GA 4. Did they pop up in yours?

Not sure if the problem is the library or I'm doing something wrong.

from php-ga4.

aawnu avatar aawnu commented on July 21, 2024

@mattinglot Could you try step 6 here and see if something is misconfigured by your end?

from php-ga4.

aawnu avatar aawnu commented on July 21, 2024

@mattinglot I will await further info from you then.

from php-ga4.

mattinglot avatar mattinglot commented on July 21, 2024

@aawnu hey Alex does it work for you? Unfortunately no change today. Did catch a bug where on localhost our code wasn't getting the client id from the cookie correctly and was using "session_id" instead, but fixing that seems to have made no difference.

from php-ga4.

aawnu avatar aawnu commented on July 21, 2024

Hello @mattinglot

I have not been at a computer during christmas, sorry for the delay! I do not get the data in and also no indication of what could be configured wrong. I am not sure if it is a bug with GA4 self.

I will not put much effort into this matter unless there is a clear need for it or documentation that explains it properly on the source documentation (referred last in readme).

If any news pop up please feel free to open another issue regarding this. I will keep the last addition in case its just a flaw inside GA4 self.

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.