Rivier/ Reference/ analytics

Change the analytics settings of a site

put/analytics/site/settings

Change the analytics settings of a site. Anything that collects more is a person's decision and an agent is refused.

Before you call

Credential
Authorization: Bearer $KEY
Scope
analytics:write
Mcp
rivier_analytics_set_settings
Graphql
Mutation.analyticsSiteSettingsUpdate
Sdk
analytics.siteSettings.update
Cli
analytics site settings update

Parameters

  • projectstring
    In the query

Request bodyapplication/json, required

  • enabledboolean
    Default: true.
  • ownerModestring
    One of: M0, M1, M2. Default: M1.
  • childAudienceboolean
    Default: false.
  • unverifiedRowsstring
    One of: cautious, ceiling. Default: cautious.
  • signalBehaviourstring
    One of: totals_only, nothing. Default: totals_only.
  • modelNonConsentedboolean
    Default: false.
  • suppressBelowinteger
    Default: 5. At least 1. At most 50.
  • funnelslist of object
    Default: [].
    • idstringrequired
      Pattern: ^[a-z0-9][a-z0-9-]{1,30}$.
    • namestringrequired
      At most 60 characters.
    • stepslist of objectrequired
      • labelstringrequired
        At most 60 characters.
      • pagestring
        At most 200 characters.
      • eventstring
        At most 64 characters.
    • windowDaysinteger
      Default: 1. At least 1. At most 30.
  • goalslist of object
    Default: [].
    • idstringrequired
      Pattern: ^[a-z0-9][a-z0-9-]{1,30}$.
    • namestringrequired
      At most 60 characters.
    • kindstringrequired
      One of: page, event, outcome.
    • matchstringrequired
      At most 200 characters.
    • valueMinorinteger
      At least 0. At most 1000000000.
    • currencystring
      At most 3 characters.
  • emailReportobject
    Default: {}.
    • enabledboolean
      Default: false.
    • weekdayinteger
      Default: 1. At least 0. At most 6.
    • recipientslist of string (email)
      Default: [].
  • dataRegionstring or null
    Default: null.
  • counterRetentionDaysinteger or null
    Default: null.

Responses

  • 200application/json
    Success

    object

  • 400application/json
    The request was malformed
    • errorstringrequired
    • messagestring
  • 401application/json
    No valid credential
    • errorstringrequired
    • messagestring
  • 403application/json
    The credential lacks the scope, origin or address
    • errorstringrequired
    • messagestring
  • 429application/json
    Over the key's rate limit; see Retry-After
    • errorstringrequired
    • messagestring

This page as Markdown