Rivier/ Reference/ analytics

Analytics site import run

post/analytics/site/import

Bring in daily page-view totals from another tool for days before today that have nothing counted here.

Before you call

Credential
Authorization: Bearer $KEY
Scope
analytics:write
Graphql
Mutation.analyticsSiteImportRun
Sdk
analytics.siteImport.run
Cli
analytics site import run

Request bodyapplication/json, required

  • projectstring
    At most 80 characters.
  • rowslist of objectrequired
    • daystringrequired
      Pattern: ^\d{4}-\d{2}-\d{2}$.
    • viewsintegerrequired
      At least 0.
    • visitorsinteger
      At least 0.

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