Comments (12)
@mattinglot Roger, thank you for clarifying. I will have a look into it
from php-ga4.
@aawnu tried it including clicking dropdown and nothing. It's weird because it looks like the request is being sent by your code:
204 response is received.
The article does say it may take a day to start working so will try again tomorrow.
from php-ga4.
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.
@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.
@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.
@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.
@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.
@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.
@mattinglot Could you try step 6 here and see if something is misconfigured by your end?
from php-ga4.
@mattinglot I will await further info from you then.
from php-ga4.
@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.
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)
- Rework events and post function to support adding more than 25 events
- Update GA4Exception with improved error reporting
- Problem with Event Refund HOT 3
- Move support up to PHP 8+
- Add import method of array values
- Refactor structure and use of facades/abstraction
- rationale for Analytics::new() HOT 2
- Add document title HOT 3
- Add core events of GA.js/GTAG.js as SST-Events HOT 1
- php-ga4: ^1.1 - Events are not appearing in GA4 realtime . HOT 9
- Convert GTAG Parameters into Server-Side Parameters too HOT 2
- begin_checkout HOT 1
- begin checkout HOT 2
- If you follow the code then you will see there is 3 layers. HOT 1
- README _gid cookie question HOT 1
- question: How to get data to show up in debug? HOT 3
- Dashboard not reflecting the posted report HOT 1
- User Properties - Question HOT 1
- Microtime is 6 decimals and not 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 php-ga4.