Filter Widget by custom variables

Hi all,

I’m probably missing the point but I can’t get any widget to filter on custom variables.

Is this the right approach?

http://www.mysite.nl/index.php?module=Widgetize&action=iframe&moduleToWidgetize=VisitsSummary&
actionToWidgetize=index&idSite=2&period=day&date=yesterday&disableLink=1&widget=1&
segment=customVariableName1==Advertiser;customVariableValue1==3633

As you can see I’ve added the segment part to filter. But it simply says there’s no data to display.

It does work when I filter by country like this:

http://www.mysite.nl/index.php?module=Widgetize&action=iframe&moduleToWidgetize=VisitsSummary&
actionToWidgetize=index&idSite=2&period=day&date=yesterday&disableLink=1&widget=1&
segment=country==nl

Any ideas?

Cheers,
G

This is the right approach, for custom variables of scope “visit”. It should work?

however for custom var of scope “page” there is a known bug: Add support for segmentation on “page” scope Custom Variables · Issue #2633 · matomo-org/matomo · GitHub

Right, we’re using page scoping.

So how do we apply the patch that’s available here: Add support for segmentation on “page” scope Custom Variables · Issue #2633 · matomo-org/matomo · GitHub

Happy New Year! If you are still using Piwik and interested in the awesome new feature of “Creating a Custom Segment in Piwik and apply to reports in Real time!” we need YOUR help, with a little or big donation at: http://crowdfunding.piwik.org/custom-segments-editor/

This will allow to dynamically add or edit, a new set of rules for example “Show all visitors from USA and using Firefox and using Google”. This will be done via a simple to use interface. See screenshots and more info here: http://crowdfunding.piwik.org/custom-segments-editor/

We are crowd funding the future of Piwik and this feature in particular. With your help we can do it.

Thanks

Matthieu