Scheduled Reports: error while sending report using segment with custom dimension when 'All Websites dashboard' statistic is included #16143
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
c: Custom Dimensions
For issues related to the Custom Dimensions plugin.
Milestone
Steps to reproduce:
Following error will appear:
From what I understand, this is because MultiSites wants to get all segments for all sites, while CustomDimensions is able to return segments for one idsite at once: https://github.com/piwik/plugin-CustomDimensions/blob/master/CustomDimensions.php#L163. So when Segment instance is created, no segments from CustomDimensions are available and the Exception with 'Segment 'dimension2' is not a supported segment' message is thrown: https://github.com/piwik/piwik/blob/master/core/Segment.php#L139.
Current solution for this is to either not to select in report a segment that uses custom dimension or not to check 'All Websites dashboard' in 'Statistics included'.
The text was updated successfully, but these errors were encountered: