{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/7400","labels_url":"https://api.github.com/repos/piwik/piwik/issues/7400/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/7400/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/7400/events","html_url":"https://github.com/piwik/piwik/issues/7400","id":60426938,"number":7400,"title":"Segmentation with contains \"=@\" not returning anything","user":{"login":"joseariel","id":3110415,"avatar_url":"https://avatars.githubusercontent.com/u/3110415?v=3","gravatar_id":"","url":"https://api.github.com/users/joseariel","html_url":"https://github.com/joseariel","followers_url":"https://api.github.com/users/joseariel/followers","following_url":"https://api.github.com/users/joseariel/following{/other_user}","gists_url":"https://api.github.com/users/joseariel/gists{/gist_id}","starred_url":"https://api.github.com/users/joseariel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joseariel/subscriptions","organizations_url":"https://api.github.com/users/joseariel/orgs","repos_url":"https://api.github.com/users/joseariel/repos","events_url":"https://api.github.com/users/joseariel/events{/privacy}","received_events_url":"https://api.github.com/users/joseariel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-09T23:22:12Z","updated_at":"2015-03-16T22:00:41Z","closed_at":null,"body":"Hello, \r\n\r\nWe've been trying to figure out how to pull analytics filtered by campaign.\r\n\r\nWe're essentially trying to do:\r\n\r\n/?module=API&method=Actions.getPageUrls&segment=referrerName=@calcubot&idSite=98&period=day&date=2014-11-05&format=JSON&token_auth=...&expanded=1\r\n\r\nbut it returns: \r\n\r\n[]\r\n\r\nand when we remove the segment, it works, although we can't use the data because we need it filtered.\r\n\r\nWe also tried a fallback approach, to basically pull all of the campaigns first and then get all the pages for those campaigns (segments), but it doesn't return anything either:\r\n\r\n?module=API&method=Actions.getPageUrls&segment=referrerName=@cb-calcubot-id%3D292%3Acb-uid%3Dnull,referrerName=@cb-calcubot-id%3D292%3Acb-uid%3D567&idSite=98&period=day&date=2014-11-05&format=JSON&token_auth=...&expanded=1\r\n\r\nreturns: \r\n\r\n[]\r\n\r\nCan anyone give us any clue as to why this approach isn't working? We've been following the documentation, specifically the part on http://developer.piwik.org/api-reference/reporting-api-segmentation and we believe we're following all of the suggestions there.\r\n\r\nThank you for your help\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/81960410","html_url":"https://github.com/piwik/piwik/issues/7400#issuecomment-81960410","issue_url":"https://api.github.com/repos/piwik/piwik/issues/7400","id":81960410,"user":{"login":"RMastop","id":7987117,"avatar_url":"https://avatars.githubusercontent.com/u/7987117?v=3","gravatar_id":"","url":"https://api.github.com/users/RMastop","html_url":"https://github.com/RMastop","followers_url":"https://api.github.com/users/RMastop/followers","following_url":"https://api.github.com/users/RMastop/following{/other_user}","gists_url":"https://api.github.com/users/RMastop/gists{/gist_id}","starred_url":"https://api.github.com/users/RMastop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RMastop/subscriptions","organizations_url":"https://api.github.com/users/RMastop/orgs","repos_url":"https://api.github.com/users/RMastop/repos","events_url":"https://api.github.com/users/RMastop/events{/privacy}","received_events_url":"https://api.github.com/users/RMastop/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T22:00:41Z","updated_at":"2015-03-16T22:00:41Z","body":"There are a few things that should make it work, I write down a few options to choose from:\r\n\r\n- You need to be a super user on the instance (selectable item is shown in the top right corner where you can select pre-process or live) (could be kind of hard to request a super user on a shared instance)\r\n- The admin can set the following setting in config.ini.php:\r\nenable_create_realtime_segments = 0\r\nThis setting will make sure all segments that will be created from the moment the setting is implemented are based on pre-processed segments.\r\n- The admin can set the following setting in config.ini.php:\r\nSegments[]=\"referrerName=@cb-calcubot-id\"\r\nThis setting makes sure the segment is pre-processed on every archiving run. \r\n\r\nLet me know if any of these are working for you"}}