? Success

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
7 Nov 2015

Hello,

with Joomla! 3.5 there is a new plugin for collecting stats. The problem here is, that after an update every user is forced to send the stats once before he/she/it can deactivate the plugin.

That could be a problem for some companies which don't allow such a behavior.

This patch extends the plugin, so that the plugin does not collect the data directly after the update but not until the user goes to "cpanel" (= the frontpage of the administration).
So Joomla! still gets its data (at the latest after the next login), but the (experienced) user can deactivate the plugin without sending data once.

avatar bembelimen bembelimen - open - 7 Nov 2015
avatar bembelimen bembelimen - change - 7 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Nov 2015
Labels Added: ?
avatar bembelimen
bembelimen - comment - 7 Nov 2015

I'm not sure, if this is the best solution.

@nueckman suggested a better solution:

  • Add a parameter to the global configuration (default: yes): Do you want to support Joomla! by sending anonymous datas?
  • Make it possible to deactivate this parameter within the installation process
  • Move the plugin to a new group "tracking"

The advantage is: then we have an opt-in + we can add additional tracking plugins in the future, if we need one

avatar brianteeman
brianteeman - comment - 7 Nov 2015

A very large % of installs are done through hosting control panels (either custom script or softaculaous) that do NOT use the joomla installer or are Quickstarts provided by template shops that do NOT use the joomla installer or are pre-installed images such as Bitnami which also do NOT use the joomla installer.

avatar Bakual
Bakual - comment - 7 Nov 2015

The advantage is: then we have an opt-in

We explicitely wanted it to be opt-out.

A parameter within installation is also not something we want. If you really want to install it with the plugin deactivated, just edit the SQL and set the state value to 0 for that plugin.

But honestly, the data being sent isn't anything which should concern you at all and it helps us a lot judging if we should drop, keep or even expand support for a given PHP or database version.

The data to my knowledge also isn't kept forever. If you turn off the plugin, your data will be removed by the next day or so.

avatar wilsonge
wilsonge - comment - 7 Nov 2015

The data is kept forever. Sorry to burst the bubble

avatar Bakual
Bakual - comment - 7 Nov 2015

Ah, misinterpreted that from https://github.com/joomla-extensions/jstats-server/blob/master/README.md then where it says most data is dumped every 12 hours. After reading again I got the meaning :smile:

It may however be something to look into, as I don't have any interest basing our decisions on data which has been collected a year ago.

avatar wilsonge
wilsonge - comment - 8 Nov 2015

We basically keep the last submitted data set. As the plugin runs every 12 hours that means we overwrite the data from 12 hours ago meaning it's technically lost. However if there has been no update in a year we still have that last data piece that was sent from the server

avatar Bakual
Bakual - comment - 8 Nov 2015

However if there has been no update in a year we still have that last data piece that was sent from the server

Yep, but does that make sense to keep the data that long? The data is useless at that time as the server may have been updated (and the plugin disabled) or the site no longer exists.
OT I know, but something to consider :)

avatar SniperSister
SniperSister - comment - 8 Nov 2015

@Bakual what are the arguments against an installation parameter for this? I don't see the issue with that?

avatar mbabker
mbabker - comment - 8 Nov 2015

Third party installation platforms (Bitnami, Softaculous, etc.) must also implement the installation parameter for it to be a viable option. If you make any code changes that assume the option is always set during installation then your are setting yourselves up for failure.

@Bakual Data is retained with a last updated timestamp (see joomla-extensions/jstats-server#15).

avatar Bakual
Bakual - comment - 8 Nov 2015

When discussing this, please keep in mind that we do not retrieve any data which is considered secret.

When you want to know that data from a given website, the PHP version (and even OS and webserver) is usually visible in the HTTP response header, the Joomla version can easily be found out as well by looking for specific files. Which leaves the database type/version which I'm not sure if it can be retrieved from outside.

avatar coder4life
coder4life - comment - 9 Nov 2015

So was thinking about this today, and I think I have a great compromise. During install/update generate some sort of time/date info of when the plugin was installed. In the plugin code we can allow a 24 hour delay before data is allowed to be collected based on that time/date. This gives Joomla the ability to enable the plugin by default, but give enough time for people to make an executive decision based on postinstall messages.

avatar Bakual
Bakual - comment - 9 Nov 2015

Already proposed with #8346 which would give a 6hrs delay to first sending data.

avatar wilsonge
wilsonge - comment - 9 Nov 2015

I'm going to close this PR in have of #8346 - because the majority of users aren't going to see the postinstall message until they go into the cPanel of J (which kinda makes this PR null and void).

avatar wilsonge wilsonge - change - 9 Nov 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-11-09 11:41:33
Closed_By wilsonge
avatar wilsonge wilsonge - close - 9 Nov 2015

Add a Comment

Login with GitHub to post a comment