I have implemented GTAG for logging my game events. It works fine when I launch the project in Playcanvas engine. But when I host the same project on itch.io server, the data does not get registered in the real time analytics on firebase console. I could not see any bug in the logs for the same. I have added the following script in my project.
Sharing the logs for your reference. The game log is clearly visible in the console which means that the GTAG event is been called but the data is not getting registered in the firebase console.
The data gets registered when I launch the project in the Playcanvas engine but does not work the same way when I host it on some server. Please help me out here.
I’m don’t think PlayCanvas can break this any way. Can you check if network requests are being sent correctly towards the Google servers? I gather they will be http requests and may be visible in the Network tab.
Is there any chance the itch.io server requires special setup and/or authentication with Google Analytics?