Analytics setting Resources

Get Analytics settings

GET /settings/analytics

Response

{
    "google_analytics_tracking_id": "UA-12345678-9",
    "piwik_url": "https://analytics.xyz.com/",
    "piwik_page_id": 1
}


Update Analytics settings

PUT /settings/analytics

Note: If a parameter is omitted in the request, the setting is ignored and its value remains unchanged. If a parameter is set to null, the default behaviour for this setting applies.

Parameter Type Default Description
google_analytics_tracking_id string - Google Analaytics Tracking-ID
piwik_url string - Url of the Piwik installation
piwik_page_id int - The Piwik PageId for which analytics data is gathered

Response

{
    "google_analytics_tracking_id": "UA-12345678-9",
    "piwik_url": "https://analytics.xyz.com/",
    "piwik_page_id": 1
}