Analytics settings
GET
/api/v1/analytics/settings
const url = 'https://digize.com/api/v1/analytics/settings';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/analytics/settings \ --header 'x-api-key: <x-api-key>'How visits are counted (tracking, the GA4 tag, excluded addresses and paths, bot filtering), the goals with their conversions over the last 30 days, each hostname’s last visit, and how many requests the filters left out.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
settings
required
object
tracking
required
string
ga4
required
A GA4 Measurement ID such as G-XXXXXXXXXX, or empty.
string
excludedIps
required
Array<string>
excludedPaths
required
Array<string>
bots
required
object
knownBots
required
boolean
automation
required
boolean
blocked
required
boolean
goals
required
Array<object>
object
id
required
string
name
required
string
kind
required
string
match
required
string
value
required
number | null
createdAt
required
string format: date-time
conversions
required
Over the last 30 days.
number
sites
required
filtered
required
number
snippet
required
string
address
required
string | null
Example
{ "settings": { "tracking": "full" }, "goals": [ { "kind": "page" } ], "unavailable": { "reason": "token" }}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}