adswerve / GA4-Measurement-Protocol-Python

Google Analytics 4 Python Library for Measurement Protocol
BSD 3-Clause "New" or "Revised" License
58 stars 19 forks source link

Switch to debug view #32

Open master0v opened 2 years ago

master0v commented 2 years ago

need a working example of how to switch to debug view. With step-by-step instructions. I've spend hours trying to configure it and ga.send(events, validation_hit=True) just doesn't work.

genaroNF commented 1 year ago

validation_hit seems to be using the /debug view which only returns a response with the errors your event could have, this isn't obvious and I had to go look it up in the code. Still, I have the same problem I tried using the debug view and I couldn't make it work, if there is some kind of flow we need to follow it would be great to add it to the documentation

genaroNF commented 1 year ago

Hey @master0v I made this PR that changes the validation_hit implementation to return the response from the debug endpoint, I think that when it gets merged the validation_hit mode should be better