Stats for combinations of two UTM parameters: utm_source, utm_medium
utm_campaign,utm_source,utm_medium:
Stats for combinations of three UTM parameters: utm_campaign, utm_source, utm_medium
Query Parameters
Parameter
Type
Description
context
(string)
display:
(default) Formats the output as HTML for display. Shortcodes are parsed, paragraph tags are added, etc..
edit:
Formats the output for editing. Shortcodes are left unparsed, significant whitespace is kept, etc..
http_envelope
(bool)
false:
(default)
true:
Some environments (like in-browser JavaScript or Flash) block or divert responses with a non-200 HTTP status code. Setting this parameter will force the HTTP status code to always be 200. The JSON response is wrapped in an "envelope" containing the "real" HTTP status code and headers.
pretty
(bool)
false:
(default)
true:
Output pretty JSON
meta
(string)
Optional. Loads data from the endpoints found in the 'meta' part of the response. Comma-separated list. Example: meta=site,likes
Required. UTM parameter values for which to fetch breakdown by posts. When $utm_param_name contains comma this should be the string containing a json-encoded array.
max
(int)
The maximum number of results to return Default: 10.
date
(string)
the most recent day to include in results
start_date
(string)
the start date to calculate days included in results
days
(int)
number of days to include in the query Default: 1.
Response Parameters
Parameter
Type
Description
top_posts
(array)
Array of objects containing `id` (post id), `href` (link to post), `title` and `views` (how many times a post was opened with given UTM values).