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!