[SOLVED] How/Where to add Google Analytics to a PlayCanvas game?

Sorry to necro an old thread, I’m trying to implement google analytics and I wanted to know if this sample project is still the recommended approach? If so, should I replace the UA-XXXXXXX-1 ID with my G-XXXXXXXX ID? Is there anything else I need to do besides create the script and put it in my project? I tried that and it didn’t seem to work. I’m very new to using these analytics tools so sorry if this is an ignorant question.

Thanks!

1 Like

Sounds like you are using a different analytics version if your code starts with G What happened to my Tracking ID? - Analytics Help

2 Likes

That worked, thank you!

I have the same problem ho did you resolved?
Please let me know.
Thanks!