Hey everyone. I've been using google analytics for some time already to track how many people play my game, which choices they make, what path they take etc.
Recently, Google Universal Analytics (UA) properties stopped processing data, and they asked to update to " Google Analytics 4 (GA4) ".
The problem is that my previous code stopped working. And I haven't been able to find any info on renpy forum, here or other sites related to this subject.
The question is how to make the new analytics work with the game? I replaced the tracking code with a new one from GA4 and changed from `queue.append(urllib.urlencode(kwargs))` to `queue.append(urllib.parse.urlencode(kwargs))` on analytics.rpy. (After upgrading to a newer version of renpy it has to be changed, or it crashed the game) But it didn't help. Still no data.
Does anybody else use analytics for their games? Have you moved to a new analytics property? If so, which changes to the code did you make?
Thanks.
Recently, Google Universal Analytics (UA) properties stopped processing data, and they asked to update to " Google Analytics 4 (GA4) ".
The problem is that my previous code stopped working. And I haven't been able to find any info on renpy forum, here or other sites related to this subject.
The question is how to make the new analytics work with the game? I replaced the tracking code with a new one from GA4 and changed from `queue.append(urllib.urlencode(kwargs))` to `queue.append(urllib.parse.urlencode(kwargs))` on analytics.rpy. (After upgrading to a newer version of renpy it has to be changed, or it crashed the game) But it didn't help. Still no data.
Does anybody else use analytics for their games? Have you moved to a new analytics property? If so, which changes to the code did you make?
Thanks.