No Google Analytics API? No Problem!
Финт ушами, и вуаля
Basic Method
Obtain the tracking data in a usable format – We can schedule Google Analytics to email this as an XML file on a regular basis.
Make the XML file accessible online – By emailing an attachment to Google Groups, the file is automatically given a public URL.
Work out the URL of the most recent report – Since Google Groups provides RSS/Atom feeds for all messages, we can easily find the URL of the most recent message and therefore work out the URL of the XML report.
Prepare the data for use – We need to manipulate the XML and massage it into a handy JSON format that we can use on our blog, which can all be done using Yahoo Pipes.
Display the links on your site – With just a bit of client-side JavaScript, you can finally add a self-updating “Most Popular Posts” section to your blog.
Комментариев нет:
Отправить комментарий