Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Social networks tab and widget #2791
We have done some work with the 'Referrers' plugin and added a new tab "Referrers"->"Social Networks", where you can see entry counts and referrer link from many social networks.
And it works this way:
It requests to the website list (like it does for the "Referrers"->"Websites" tab) and after that it uses the 'pattern' filter.
The list of social networks is here: /piwik/plugins/Referers/data/socials.csv (55 snw)
Each social network gets related icon (like it does for the "Referrers"->"Search Engines & Keywords" tab) from the piwik/plugins/Referers/images/socials folder.
Also we created a new widget: 'Referrers/list of social networks' and we find it very useful. You can add this on you dashboard now.
So that's it.
We would like to make it able to view this social networks info also in the "Referrers"->"Overview" tab. But unfortunately it can't be done using a filtering. So we just put it aside for a while.
If you have some ideas about all this social networks features -- that could help to make it more useful -- we would love to hear from you and try to make it real.
See the attachments for the core patch.
Thanks codax for the patch!! Excellent idea :-)
Are you interested to include this in core? It would be great to have this in Piwik core.
Here is the code review as per our development process
And we are sorry for not responding on this ticket. Now it seems like we are stable again and getting back to contribution in Piwik developing.
So now we have fixed things with Social networks feature due to all Matt's recommendations. We re-upload the patch for the Piwik core in this ticket.
And it works this way:
1. When a referrer URL writes down in Piwik (log_visits mysql table) Referrers plugin defines it as a social network referrer (if there is a match with the list of the most popular 50 social networks Socials.php).
2. Now the social networks list is in php format and also changed its folder to /core/DataFiles/ so as Piwik standards want. Socials.php will be created while applying the patch.
3. Social networks icons have all been changed to png.
4. The social network output is now part of the Metadata API and can be imported.
5. Now all graphs related to the social networks are shown well.
Thank you for the new patch!
The data therefore is more a filter on the getWebsites and not a new data blog. There will be no performance impact of this new feature.
IT's a great feature :-)
We make the recommended changes and now the Social Networks report is:
- not excluded from Website referrers
Get the re-attached .patch file for core.
I see a problem here with Twitter - you usually don't get "twitter.com" as referrer as all URLs are automatically shorted by Twitters own http://t.co/ service.
Instead of checking for twitter.com you should check for "t.co".
I think the same applies for links from Facebook that are shortened to "fb.me".
Have a look at this Tweet: https://twitter.com/piwik/status/258798351611469824. The URL shown is fb.me, but if you hover it you see that it is actually shortened to t.co.
If you look at the Piwik Demo (http://demo.piwik.org/index.php?module=CoreHome&action=index&idSite=7&period=month&date=2012-10-13#module=Dashboard&action=embeddedIndex&idSite=7&period=month&date=2012-10-13&idDashboard=1) you can even see t.co show up in the list of Referrer Websites.
(In ) Fixes #2791, committed codax's patch after modification. Two new reports added, getSocials & getUrlsForSocial. New utility function for DataTable called mergeSubtables added. Modified ColumnCallbackDeleteColumn filter so the function callback used can take extra parameters.