Analytics Target Connection
An auto-generated type for paginating through multiple AnalyticsTargets.
Anchor to Queries with this connectionQueries with this connection
- analyticsTargets (AnalyticsTargetConnection!)
- •query
Returns a paginated list of analytics targets for the shop. Each target represents a merchant-defined goal for a specific metric over a date range.
Results can be filtered by metric, name, date range, or filter expression, and sorted by fields such as
,, ormetric.- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Analytics
Key Target Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to end_date•date
Filter by the end date of the target period.
end_date:2026-03-31end_date:<=2026-03-31- Anchor to filters•string
Filter by the target's filter expression.
filters:"shipping_country = 'US'"- Anchor to start_date•date
Filter by the start date of the target period.
start_date:2026-01-01start_date:>=2026-01-01
Example:
Example:
Example:
Example:
Arguments
Anchor to Possible returnsPossible returns
- edges ([AnalyticsTargetEdge!]!)
- nodes ([AnalyticsTarget!]!)
- pageInfo (PageInfo!)
- Anchor to edgesedges•[Analytics
Target Edge!]! non-null The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.
- Anchor to nodesnodes•[Analytics
Target!]! non-null A list of nodes that are contained in AnalyticsTargetEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.
- Anchor to pageInfopage•Page
Info Info! non-null An object that’s used to retrieve cursor information about the current page.