Ticket #2206 (closed Bug: answered)

Opened 14 months ago

Last modified 14 months ago

setCustomData(): How to fire custom data to custom plugin?

Reported by: hass Owned by:
Priority: critical Milestone: Piwik 1.3
Component: Core Keywords:
Cc: Sensitive: no

Description

I'm using SiteSearch plugin  https://github.com/BeezyT/piwik-sitesearch/wiki and it's documented to fire the number of search results via piwikTracker.setCustomData({SiteSearch_Results: XX}); to the plugin. As setCustomData() has been deprecated and I have no idea - why - it's now in question - how a custom plugin can get custom data it needs to build a statistic. setCustomVariable() is no option here as it only allows up to 5 slots and the names and values are shown in custom variables statistics and does not go into the custom plugin (SiteSearch) statistic.

Normally you see in SiteSearch a table with keywords and than a column with the number of search results for this keyword.

Change History

Changed 14 months ago by vipsoft

  • status changed from new to closed
  • resolution set to answered

Answered in #1984. Consider it un-deprecated for the time being.

Changed 14 months ago by EZdesign

If you remove setCustomData(), please let me know in advance, so I can update the SiteSearch plugin. Of course, there should be an alternative way to pass the custom data...

Note: See TracTickets for help on using tickets.