Skip to content

Custom Events

Query custom event data through the overview, chart, and table endpoints.

Custom event endpoints use flat reporting query parameters: GET https://data.goodmetrics.io/{gmID}/events/custom/{resource}?start={start}&end={end}.

Use the event_type_is filter to select events by name or ID. If omitted, custom-event endpoints use all available events for the site.

Terminal window
curl "https://data.goodmetrics.io/{gmID}/events/custom/top-events?start=1771872000&end=1772476799&event_type_is=signup%2Cupgrade_to_paid" \
-H "Authorization: Bearer YOUR_API_KEY"
EndpointDescription
GET /{gmID}/events/custom/overview/chartCustom event chart.
GET /{gmID}/events/custom/overview/citiesCity overview for custom events.
GET /{gmID}/events/custom/overview/completion-locationsCompletion location overview.
GET /{gmID}/events/custom/overview/countriesCountry overview for custom events.
GET /{gmID}/events/custom/overview/devicesDevice overview for custom events.
GET /{gmID}/events/custom/overview/initial-landing-pagesInitial landing page overview for custom events.
GET /{gmID}/events/custom/overview/initial-referrersInitial referrer overview for custom events.
GET /{gmID}/events/custom/overview/landing-pagesLanding page overview for custom events.
GET /{gmID}/events/custom/overview/referrersReferrer overview for custom events.
GET /{gmID}/events/custom/overview/utm-source-mediumsUTM source/medium overview for custom events.
GET /{gmID}/events/custom/overview/top-eventsTop event overview.
EndpointAlignment key
GET /{gmID}/events/custom/citiescity
GET /{gmID}/events/custom/completion-locationspage
GET /{gmID}/events/custom/countriescountry
GET /{gmID}/events/custom/devicesdevice
GET /{gmID}/events/custom/initial-landing-pagespage
GET /{gmID}/events/custom/initial-referrersinitialReferrer
GET /{gmID}/events/custom/landing-pagespage
GET /{gmID}/events/custom/referrersreferrer
GET /{gmID}/events/custom/utm-source-mediumsutmSourceMedium
GET /{gmID}/events/custom/top-eventsname

Custom event responses often include meta.events, eventCompletions, eventValue, and eventConversionRate. Conversion responses also expose conversionNumerator and conversionDenominator, making the inputs to each rounded conversion rate explicit. Overall totals use the selected site-wide cohort, while dimension rows use the sessions or visitors attributed to that row.

See Common Recipes for more request examples.