Jump to content

Open discussion: adding telemetry to Babylon.js engine


GameMonetize
 Share

Recommended Posts

shouldn't that be an extension?

Cause how much extra is that gonna add to the mimifed lib in file size, we are already at like 3mb's I think.  If its only few KB's more then sure, but I think it should be disabled by default on the constructor.

Link to comment
Share on other sites

It will be 0 as it will only send call a xhr to a remote server.

 

If I turned it off by default then that will be no use as I need to measure the usage

Link to comment
Share on other sites

The code that I would to add looks like:

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
Link to comment
Share on other sites

49 minutes ago, DylanD said:

would there be a way to turn this off, that way it doesn't impact production? As in, I don't want this on all of my client side stuff. 

@Pryme8 how would this save time?

Cause you would just include your api key I think from what delta is saying, you would not have to place any of the code... which I mean its just copy an pasting and you still need to get your access key sooo maybe not really... It was early and I had not had coffee yet...

Link to comment
Share on other sites

There is a way to turned it off obviously: https://github.com/BabylonJS/Babylon.js/commit/ca9d6a65b62761763cf9a11d3040766c63a440ac#diff-5cfd2dbd4cc0413d481b9de3eae1cd44R80

The goal for us is to get as much data (everything is anonymous obviously) as we can:

- This will help when users ask: "Is babylon.js popular?". So far we have no way to say: Yes it's being used by 10000000 websites already

- This will help to get a list of references (Most of the time users do not think about letting us know here about how they use Babylon.js and where). Look Sony or Microsoft use it, it is cool :)

So far we only measure success through NPM downloads but it is only a portion of our user base

So @DylanD: The best way to help Babylon.js would be to let the tracker on so we can get pretty big numbers :)

Link to comment
Share on other sites

16 minutes ago, Deltakosh said:

There is a way to turned it off obviously: https://github.com/BabylonJS/Babylon.js/commit/ca9d6a65b62761763cf9a11d3040766c63a440ac#diff-5cfd2dbd4cc0413d481b9de3eae1cd44R80

The goal for us is to get as much data (everything is anonymous obviously) as we can:

- This will help when users ask: "Is babylon.js popular?". So far we have no way to say: Yes it's being used by 10000000 websites already

- This will help to get a list of references (Most of the time users do not think about letting us know here about how they use Babylon.js and where). Look Sony or Microsoft use it, it is cool :)

So far we only measure success through NPM downloads but it is only a portion of our user base

So @DylanD: The best way to help Babylon.js would be to let the tracker on so we can get pretty big numbers :)

I don't know, it seems like a gateway drug to too much information... ? 

What other kind of data would you be collecting?  

Im very curious, but as long as I can disable it, then do it. :) 

Otherwise I would be against it.  :( 

 

 

Also just because Sony and Microsoft does it, does not mean I would be more ok with it. :) 

Ps. I cannot wait to show everyone what I have been working on all summer.

Link to comment
Share on other sites

It is Google analytics so we are not directly  collecting anything. It is more a delegation to Google:)

And anyway if the community is against the idea I'll remove it

Link to comment
Share on other sites

1 hour ago, Deltakosh said:

The goal for us is to get as much data (everything is anonymous obviously) as we can:

- This will help when users ask: "Is babylon.js popular?". So far we have no way to say: Yes it's being used by 10000000 websites already

- This will help to get a list of references (Most of the time users do not think about letting us know here about how they use Babylon.js and where). Look Sony or Microsoft use it, it is cool :)

Ohh ok a global tracker, not an API for BABYLON's developper ? 

+1 would be great to say look Sony, Microsoft, etc. use it !

Link to comment
Share on other sites

I'm not an expert but you clearly found a good point here. GDPR is definitely a no go :)

 

At least the problem was quickly solved ! I'm gonna close the issue on the repo

This will leave me with my question unanswered: How can I know how many apps/websites use babylonjs?

Link to comment
Share on other sites

Maybe a basic anonymous web request could be enough and GDPR-approved? Something like an update-checker which say in the console if BJS is up to date, and with that you can track websites folders which use BJS? Don't know .

Or outside Babylon itself, use the website, with why not a permanent survey?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...