Skip to main content

Pages

The Pages API lets you read your store's landing pages and their traffic analytics.

Overview​

The Pages API provides endpoints to:

A page is a landing page you have built in your store. The API is read-only - pages are authored in your store's admin interface, not through the API. Each page in the list includes its custom domains, so you can match a domain to a page from the response itself, then ask for that page's analytics.

Page identifiers​

Each page has two identifiers, and they are not interchangeable:

  • id is the page's stable identifier - a short, URL-safe string (for example DeIS7b). It is not a UUID like other resources' ids. id never changes, and it is the key you pass to Get Page Analytics.
  • slug is the page's URL slug (for example my-landing-page). It is mutable - editing the slug changes it - so use it for display only, never as a stable reference.

Page status​

A page is either draft or published. Filter the list by either value, or omit the filter to return pages in any state.

Analytics breakdowns​

Get Page Analytics returns one breakdown per call, selected with the type parameter:

TypeReturns
summaryPeriod totals - visitors, pageviews, bounce rate, and revenue.
dailyPer-day visitor and revenue trend.
sourcesTraffic sources (Google, Direct, ...) with a referrer-URL drill-down.
countriesVisitors and revenue by country.
devicesDevice-type split, keyed by pageviews and their share.
pathsPaths/sections within the page (/, /pricing).
partnersAffiliate (?ref=) partner performance.
realtimeVisitors on the page in the last 5 minutes (live snapshot).

Revenue is reported per currency, with amounts in major currency units (for example 450.0, not minor units). Rate fields whose name ends in _percent are already expressed as a percentage - 0.13 means 0.13%, not a 0-1 ratio. See Get Page Analytics for the full shape of each breakdown.