Segmentation of Dashboard

I’ve searched for hours to figure out how to pass in segmentation params to filter out results in the ‘Dashboard’ for specific custom variables we’re storing in the db - but just haven’t found the right solution.

This is what I’ve got as my src for the iframe:

http://www.domain.com/piwik/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=<?=cstPIWIKSITE?>&period=week&date=yesterday&segment=customVariableName4==<?=$key1?>;customVariableValue4==<?=$value1?>;customVariableName5==<?=$key2?>;customVariableValue5==<?=$value2?>

The scope of the custom variables is set to “visit” and I’ve ensured that the data is indeed being stored in log_visit in the fourth and fifth custom var fields.

This issue is that there is this message on every widget = “There is no data for this report.”

Conversely, when I remove the segment params from the src above, I do indeed get results. However, I need this to be segmented out as different divisions should be able to mine their own analytics.

In case you need this info:
Piwik Version: 1.9
This is a standalone PHP site (not utilizing WP, Joomla, etc.)
‘Anonymous’ has ‘VIEW’ access
From global.ini.php = anonymous_user_enable_use_segments_API = 1

Any help whatsoever would be greatly appreciated!

A bit hard to help you, without having access to your data. Start by putting only one segment customVariableX and if it works, add other ones, until it does not , then you will find out which segment restricts the data “too much”

The below src works fine:

http://www.domain.com/piwik/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=<?=cstPIWIKSITE?>&period=week&date=yesterday

Neither of the below work:

http://www.domain.com/piwik/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=<?=cstPIWIKSITE?>&period=week&date=yesterday&segment=customVariableName4==<?=$key1?>;customVariableValue4==<?=$value1?>

http://www.domain.com/piwik/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=<?=cstPIWIKSITE?>&period=week&date=yesterday&segment=customVariableName5==<?=$key2?>;customVariableValue5==<?=$value2?>

Also, it should be noted that when using either one of the immediate two above, when I click on ‘Widgets & Dashboard’, the ‘PREVIEW’ of the widgets that I could choose DO work…including the ‘Custom Variables’ widget with the correct data, however, when I select it to add to the Dashboard, I get the same empty result set for my data.

I could choose DO work…including the ‘Custom Variables’ widget with the correct data, however, when I select it to add to the Dashboard, I get the same empty result set for my data.

So it works in one feature but not the other? do you see this bug with all segments eg. segment=country==fr ?

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