I am not able to record users and the events in the google analytics dashboard. Am I missing something?
Here is the link to my project where i am trying to use gtag.js as suggested in the following thread.
https://playcanvas.com/editor/scene/1695411
My friend, you’re a god! After that I was able to add the following to enhance data collection:
ga('send', {
hitType: 'event',
eventCategory: 'WebAR', //Type of application
eventAction: 'THC08', //Floorplan
eventLabel: '1.8.4.2' //Version
});
ga(function(tracker) {
var clientId = tracker.get('clientId'); //Very important!!!
});
THANK YOU SO MUCH!
Following link is attached as an external script in play canvas editor.
https://www.googletagmanager.com/gtag/js?id=G-F5YZ0L2K48
Below are my demo web stream details.
The project/scene no longer exists or accessible to look at
Looks like you are using both GA and GTAG when you should only be using one.
Try just using GTAG تثبيت علامة Google (gtag.js) | Google tag (gtag.js) | Google Developers
@yaustar this GTAG needs to be a HTML5 file like this?
No, you can add it via JS code by creating the script dom element and adding it to the page
How about I add this link as an external script and use the existing gtag file?https://www.googletagmanager.com/gtag/js?id=G-F5YZ0L2K48
@yaustar When I launch the build from play canvas editor, I am able to get the user entry. But when I am hosting it on an itch.io server, the entries does not get register.
You have to check with itch.io . Maybe they block analytics scripts that?