Skip to content
You are reading the unreleased documentation. No version is released yet, and these pages describe code that is not in a release.

Analytics (admin API)

Admin routes of the analytics module. Every route needs a staff session and the permission named on it; send X-Resolve-Locale: false to receive every locale of a translatable field for editing.

Get customer acquisition and retention metrics

Parameters:

  • from in query (string, optional).
  • to in query (string, optional).

Responses:

  • 200: no description. Body: object.

Get overview dashboard metrics for today, week and month

Responses:

  • 200: no description.

Get conversion funnel counts and drop-off rates

Parameters:

  • from in query (string, optional).
  • to in query (string, optional).

Responses:

  • 200: no description. Body: array of object.

Get tracking pixel configuration

Responses:

  • 200: no description.

Update tracking pixel configuration

Request body: UpdatePixelsAdminDto.

Responses:

  • 200: no description.

Get per-product performance metrics

Parameters:

  • from in query (string, optional).
  • to in query (string, optional).

Responses:

  • 200: no description. Body: array of object.

Get revenue breakdown metrics

Parameters:

  • from in query (string, optional).
  • to in query (string, optional).

Responses:

  • 200: no description. Body: object.

Get search event counts and top query terms

Parameters:

  • from in query (string, optional).
  • to in query (string, optional).

Responses:

  • 200: no description. Body: object.

Get bucketed time series for orders, revenue or sessions

Parameters:

  • from in query (string, optional).
  • to in query (string, optional).

Responses:

  • 200: no description.
  • googleAnalyticsId (string, pattern /^[A-Za-z0-9\-]*$/, max length 50, optional).
  • metaPixelId (string, pattern /^[0-9]*$/, max length 50, optional).
  • tiktokPixelId (string, pattern /^[A-Za-z0-9]*$/, max length 50, optional).
  • snapPixelId (string, pattern /^[A-Za-z0-9\-]*$/, max length 50, optional).