Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DebugResponse return null and no data send to GA #98

Open
jripmeester opened this issue Apr 16, 2021 · 4 comments
Open

DebugResponse return null and no data send to GA #98

jripmeester opened this issue Apr 16, 2021 · 4 comments

Comments

@jripmeester
Copy link

Hi,

I've have a weird problem that some orders of our webshop aren't send to GA.
I've managed to find out when the data isn't send but then when i try to get the debug response it's null.
When an order is sent to GA the response is nicely though. So the sending is failing somewhere butt i can't debug where.

This is my sending line of code
$analytics->setProductActionToPurchase();
$response = $analytics->setDebug(true)->setEventCategory('Checkout')
->setEventAction('Purchase')->sendEvent();

Can you point me in the direction to debug this?
I can't add var_dumps in the code as the method are not physically in the code.

@piotrknapik
Copy link

@jripmeester I have the same issue - it looks like the library doesn't work with GA4 (vide: #94).

@jripmeester
Copy link
Author

@piotrknapik Except we are not using GA4

@sblawrie
Copy link

@jripmeester I'm also having this issue (with Universal Analytics, not GA4). Did you ever figure out what was wrong?

@jripmeester
Copy link
Author

@sblawrie No i didn't. Ended doing the implementation on JS side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants