Opened 6 years ago

Closed 4 years ago

#59 closed New feature (fixed)

Plugin for feedburner integration using the feedburner API

Reported by: matt Owned by: masterkeedu
Priority: major Milestone: Piwik 0.5.5
Component: Plugins Wishlist Keywords:
Cc: Sensitive: no

Description (last modified by matt)

The feedburner feeds statistics could be included in the piwik interface, using the convenient feedburner API.

Data to be included:

  • clickthroughs,
  • nb of items views,
  • nb of subscribers

Attachments (2)

Feedburner.tar.gz (3.4 KB) - added by masterkeedu 5 years ago.
feedwidget1.png (6.0 KB) - added by masterkeedu 5 years ago.

Download all attachments as: .zip

Change History (22)

comment:1 Changed 6 years ago by matt (mattab)

  • Description modified (diff)

comment:2 Changed 6 years ago by matt (mattab)

  • Milestone set to Future features

comment:3 Changed 6 years ago by Eli-D

  • Owner set to Eli-D
  • Status changed from new to assigned

comment:4 Changed 6 years ago by matt (mattab)

  • Owner Eli-D deleted
  • Status changed from assigned to new

comment:5 Changed 5 years ago by vipsoft (robocoder)

See also ticket #307.

comment:6 follow-up: Changed 5 years ago by masterkeedu

So there are two ways to go with this, and I furnish the plugin as is, or tailor it to meet those needs.

# The plugin provides summary data for entire feed (Circulation, Hits and Reach) and can be compared over a date range.
# The plugin provides a detailed report on each item within the feed (itemviews, clickthroughs) for the last day, or over date range.

Which do you think is more valuable, or should I just provide both?

comment:7 in reply to: ↑ 6 Changed 5 years ago by masterkeedu

So scratch that last comment, it seems the api that provides item details is returning a 500 error for the time being.

SO i have wrangled all the data, but I can't find any decent documentation on using graphs. I would like to populate a line graph with circulation, hits, and reach for the last 30 days or so.

Any advice? Has anyone suggested dOxygen or another API generation tool?

comment:8 Changed 5 years ago by masterkeedu

There's what I got so Far. Feedburner Plugin 1.0 .

comment:9 Changed 5 years ago by matt (mattab)

hello, thanks for your code submit. However to be considered by the Piwik and accepted in trunk, please first review your code to apply to the Piwik coding standards: separate your html code in a template, clean comments, clarify variable names, etc.

Thanks

comment:10 Changed 5 years ago by konus

After Update to 0.2.35 I have the following issue. The error is displayed instead of the dashboard

Missing argument 4 for Piwik_AddWidget(), called in /var/www/web5/html/piwik/plugins/Feedburner/Feedburner.php on line 36 and defined 
in '/var/www/web5/html/piwik/core/PluginsFunctions/WidgetsList.php' at the line 7

#0  Piwik_ErrorHandler(2, Missing argument 4 for Piwik_AddWidget(), called in /var/www/web5/html/piwik/plugins/Feedburner/Feedburner.php on line 36 and defined, /var/www/web5/html/piwik/core/PluginsFunctions/WidgetsList.php, 7, Array ([widgetCategory] => Feedburner,[widgetName] => feedburner,[controllerName] => Feedburner statistics)) called at [/var/www/web5/html/piwik/core/PluginsFunctions/WidgetsList.php:7]
#1  Piwik_AddWidget(Feedburner, feedburner, Feedburner statistics) called at [/var/www/web5/html/piwik/plugins/Feedburner/Feedburner.php:36]
#2  require_once(/var/www/web5/html/piwik/plugins/Feedburner/Feedburner.php) called at [/var/www/web5/html/piwik/core/PluginsManager.php:282]
#3  Piwik_PluginsManager->loadPlugin(Feedburner) called at [/var/www/web5/html/piwik/core/PluginsManager.php:242]
#4  Piwik_PluginsManager->loadPlugins() called at [/var/www/web5/html/piwik/core/PluginsManager.php:161]
#5  Piwik_PluginsManager->setPluginsToLoad(Array ([0] => CorePluginsAdmin,[1] => CoreHome,[2] => Widgetize,[3] => Actions,[4] => Dashboard,[5] => Referers,[6] => UserSettings,[7] => UserCountry,[8] => VisitsSummary,[9] => VisitFrequency,[10] => VisitTime,[11] => VisitorInterest,[12] => ExamplePlugin,[13] => Provider,[14] => Login,[15] => UsersManager,[16] => SitesManager,[17] => Installation,[18] => Feedback,[19] => LanguagesManager,[20] => CoreAdminHome,[21] => API,[22] => ExampleRssWidget,[23] => DBStats,[24] => ExampleAPI,[25] => CoreUpdater,[26] => Goals,[27] => Live,[28] => Feedburner,[29] => CoreHome,[30] => CoreUpdater,[31] => CoreAdminHome,[32] => CorePluginsAdmin,[33] => GeoIP)) called at [/var/www/web5/html/piwik/core/FrontController.php:224]
#6  Piwik_FrontController->init() called at [/var/www/web5/html/piwik/index.php:52]

As temporary solution I disabled the plugin in config.ini.php

comment:11 Changed 5 years ago by konus

This error should be because of Changelog:

  • API CHANGE: the API for the function Piwik_AddWidget has changed. The new API is Piwik_AddWidget( $widgetCategory, $widgetName, $controllerName, $controllerAction, $customParameters = array()). See examples of calls in all the core Piwik plugins. This change was necessary to make widgets more modular (they now accept custom parameters).

It is probably pretty easy to add the missing argument, but I don't know what to add. Could somebody help, please?

Changed 5 years ago by masterkeedu

Changed 5 years ago by masterkeedu

comment:12 Changed 5 years ago by masterkeedu

I have updated the plugin to work with the recent API updates and versioned it major 1.0.

Anyone who downloaded prior to July, please update

I have diligently refractored the code (html in template,etc) as and commented thoroughly as per your feedback.

comment:13 Changed 5 years ago by masterkeedu

Oh yea, maybe I should be the owner of this ticket since I am the only one actively working it..

comment:14 Changed 5 years ago by matt (mattab)

  • Owner set to masterkeedu

masterkeedu, do you think we should include this plugin in core?
Does it work with both users from the old feedburner URLs as well as users who already migrated?

I put you owner too.

comment:15 Changed 5 years ago by masterkeedu

@Matt

To be honest, I am not sure as I only have one feedburner account ;)

I can tell you that Piwik works. If anyone is still on the old Feedburner accounts please share your URI and I will test it.

comment:16 Changed 5 years ago by masterkeedu

The plugin does *not* handle the old urls. What's more it is not at all graceful with the error. I'll be updating the code to handle the error, and maybe the old urls.

comment:17 Changed 5 years ago by alivenk

comment:18 Changed 5 years ago by domtop

comment:19 Changed 4 years ago by matt (mattab)

  • Milestone changed from Features requests - after Piwik 1.0 to 1 - Piwik 0.5.5
  • Sensitive unset

comment:20 Changed 4 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1905]) Fixes #59
Thanks Eddie for the patch!

I also made a few changes:

  • using common Piwik function Piwik::sendHttpRequest to fecth remote data
  • added error use cases (empty data back, feed is not authorized)
  • cleaned up CSS
  • when the feed name is updated, the widget will automatically reload (added helper functions in dashboard JS object to reload a widget)
Note: See TracTickets for help on using tickets.