@simivar opened this Issue on March 26th 2018 Contributor

I need to get from Matomo through API all data corresponding to sent e-mail marketing to check which messages has been opened. I wanted to use campaignName segment which is listed here under "Campaign" but I get response with an error:
{"result":"error","message":"Segment 'campaignName' is not a supported segment."}

URL to which I send my request: http://domain.com/analysis/index.php?module=API&method=Live.getLastVisitsDetails&idSite=3&period=day&date=2018-03-26&format=JSON&token_auth=token_auth&segment=visitorId==cdf756b32c95a41f;campaignName==email-nov2011

Any suggestions? Why I get that the segment is not supported when API says it is?

@mattab commented on March 26th 2018 Owner

Hi @simivar
the feature is available via this plugin: https://plugins.matomo.org/MarketingCampaignsReporting
in core otherwise you have to combine two other segments (referrer type is campaign and referrer name is X)

Edit; maybe we should mark segments that are provided by an optional plugin more clearly on the Segmentation Reference page? https://developer.matomo.org/api-reference/reporting-api-segmentation

@simivar commented on March 26th 2018 Contributor

@mattab Thank you for such fast reply.

Edit; maybe we should mark segments that are provided by an optional plugin more clearly on the Segmentation Reference page?

It would be highly appreciated. In the future there would be no such questions as this one and it can save time of other developers using Matomo.

Powered by GitHub Issue Mirror