How to use google analytics in the web based games?

Get help using Construct 2

Post » Wed Apr 13, 2016 11:28 am

I know only about the cranberry's google analytics plugin that is cordova based but I'd like to use this solution for web based games.
B
74
S
14
G
4
Posts: 1,046
Reputation: 8,195

Post » Sun May 15, 2016 2:45 pm

If you want basic tracking, just add your Google Tracking code to the index.html file exported by Construct2.
Play Ball Walker App Store | Google Play | Amazon
Image
B
39
S
6
Posts: 142
Reputation: 2,524

Post » Mon May 16, 2016 7:55 am

Thats what I do. But it will only give info about number of visitors and location/referrer.
Does the Analytics Plugin not work on normal web version of a game? I wanted to try it for my next project.
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
58
S
18
G
6
Posts: 761
Reputation: 9,601

Post » Tue May 17, 2016 12:28 am

hey @Bl4ckSh33p, I have't been able to get any of the GA plugins to work successfully, but if they operate like the mobile ad plugins, they probably won't. If you want to track more than just views, visitors, referrers, etc... and want to track events, you could try using the Browser > Execute JavaScript function to call a manual GA Event Tracking.
Play Ball Walker App Store | Google Play | Amazon
Image
B
39
S
6
Posts: 142
Reputation: 2,524


Return to How do I....?

Who is online

Users browsing this forum: flemmig and 52 guests