Google Analytics
const url = 'https://digize.com/api/v1/google-analytics';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/google-analytics \ --header 'x-api-key: <x-api-key>'The Google Analytics property and web stream the sites report to, whether paid orders, bookings and leads go to it from the server and how, its key events, its Google Ads link, and how many events went over the last 30 days.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
Whether Google Analytics is connected in Settings › Integrations.
The Google account it’s connected as.
object
The property’s clock, which its days are on.
Whether Digize made the property and stream.
Whether paid orders, bookings and site form leads go to GA4 from the server, which the Google tag then leaves to it.
How they go: Data Manager, or the Measurement Protocol for a property Data Manager doesn’t take events for.
object
Over the last 30 days.
object
The workspace’s sites’ hostnames, which a new stream can measure.
Example
{ "transport": "data_manager"}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}