updeadup Posted November 14, 2018 Share Posted November 14, 2018 Hi! There is many sites that simply take and publish your game without a submission. It's not bad because it gives you wide audioty. I need to know how many traffic I get from such sites. How can I track how many times and on which site game was running? Quote Link to comment Share on other sites More sharing options...
mattstyles Posted November 18, 2018 Share Posted November 18, 2018 fetch('https://myanalytics.com/mygame', { method: 'POST', body: window.location.href }) That should do it. Won't work if its in an iframe though, you'll get the href of the iframe. If you use something like Google Analytics, and you embed that code in to your game code (i.e. if someone steals your game code they also steal your GA implementation) then I think it usually, by default, sends along the url. You'd be able to track urls that way. updeadup 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.