analytics Annotation Create
Requires Requires access scope.
Creates an analytics annotation on the shop. Annotations are notable events that can be overlaid on analytics charts to provide context for changes in metrics. The annotation is attributed to the app that calls the mutation.
Shopify limits how many annotations an app can have for a shop. If the app reaches this limit, then the
mutation returns a LIMIT_REACHED error. Delete existing annotations or contact Shopify Support to request
a higher limit.
Use
to modify existing annotations or
to remove them.
The type field must specify a supported type for app-created annotations. Refer to the list of
supported types.
Arguments
- input (AnalyticsAnnotationCreateInput!)
- Anchor to inputinput•Analytics
Annotation Create Input! required The input fields for creating an analytics annotation.
- analyticsAnnotation (AnalyticsAnnotation)
- userErrors ([AnalyticsAnnotationCreateUserError!]!)
- Anchor to analyticsAnnotationanalytics•Analytics
Annotation Annotation The newly created analytics annotation.
- Anchor to userErrorsuser•[Analytics
Errors Annotation Create User Error!]! non-null The list of errors that occurred from executing the mutation.