I’ve now developed two WordPress plugins and would like to see some sites that use it. I’m looking for a way to find sites that use a WordPress plugin I built.
However, the official guidelines, don’t allow me to log the hostnames of blogs that install my plugin, for example. Point 7:
No “phoning home” without user’s informed consent.
So, are there ways to find sites using my plugins? The plugins I’m talking about are NaNo Stats and Snake.
I have thought about adding some HTML comments or a specific meta-tag to the HTML body of the site and then searching with Google. Would that work and be allowed by WordPress?
No, there is no safe way to know the sites using your plugin.
Let’s take a look at the options:
Add a marker to the rendered HTML, a comment or a meta tag.
This would still require a search engine to index these markers and tell you when they are found. But what’s more important: your users would serve these extra bytes on each request to each user. What a waste of resources!
Phone home via email
I have seen plugins sending an email in an activation hook with the site address (and the admin email address). This is obviously unethical. Never collect any data without consent.
It is illegal too in countries with strong privacy laws like Germany. You could get sued in those countries, and due to formal cooperation between authorities a sentencing in Germany would reach you in other countries of the EU too.
Embed a tracker in your options page
De facto the same as above. Plus, you’d have to fiddle with SSL setups to avoid security warnings on the user interface.
In some setups (intranets for example) it isn’t even possible to load external content; your plugin would fill the error log with very unpleasant messages.
So what could you do?
Read your HTTP referers. In the user’s plugin list is a link to your site; you can even add additional links. Use an interesting link text to make people click on it.
Sample:
I have seen plugins adding a parameter to such a link like
'?ref=' . home_url()
. This borders the privacy issues mentioned above.Use an analytics software like Piwik to track incoming traffic. Your visitors privacy is more important than your curiosity. 🙂