Campaign-level click rollup
Campaign-level rollup (EAS-73): total clicks in the window across every link belonging to each of the caller's campaigns, aggregated strictly through the persisted links.campaign_id relationship — never by parsing destinationUrl or UTM query parameters — so "how did Q3 Email Campaign perform" is one row instead of manually summing every link. Archived campaigns are included: they stay reportable for the links/clicks already associated with them. A link with no campaign never contributes to any row.
View as MarkdownAuthorization
bearer In: header
Query Parameters
Analytics window in days; 0 means all-time (no cutoff); other values fall back to 14. 365 is the dashboard's own window — wide enough for its Month/Week tabs and to always have at least one full prior year for the Year tab, since bucketing a shorter window by month/year can collapse to a single bucket with nothing to draw a line between.
14Value in
- 0
- 7
- 14
- 30
- 90
- 365
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/analytics/campaigns"{ "campaigns": [ { "campaignId": "string", "name": "string", "archived": true, "linkCount": 0, "clicks": 0 } ], "days": 0, "asOf": "2019-08-24T14:15:22Z"}Account-wide link analytics
Account-wide totals, the top five links by clicks, a daily click series, and country/device/browser/referrer breakdowns across all links for the requested window. Bot traffic is excluded from series and breakdowns.
Campaign detail with click series and breakdowns
One campaign's total clicks and link count in the window, plus the same daily series and breakdowns shape as getLink/analyticsSummary. Readable — and reportable — even when the campaign is archived.