Supported Formats

json

GET /api/google_analytics/credentials
Get credentials of connected google analytics account

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Params

Param name Description
account_id
required

Account Id

Validations:

  • Must be a String


POST /api/google_analytics/connect
Add a new Google Analytics account

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Params

Param name Description
page_url
required

Redirection url after permissions processing

Validations:

  • Must be a String

account_id
required

Business Account Id

Validations:

  • Must be a String


POST /api/google_analytics/disconnect
Disconnect google analytics account

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Params

Param name Description
account_id
required

Business Account Id

Validations:

  • Must be a String


GET /api/google_analytics/accounts
Get all google analytics account

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Params

Param name Description
account_id
required

Business Account Id

Validations:

  • Must be a String


GET /api/google_analytics/properties
Get properties of connected google analytics account

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Params

Param name Description
account_id
required

Business Account Id

Validations:

  • Must be a String

google_analytics_account_id
required

Google Analytics Account Id

Validations:

  • Must be a String


PATCH /api/google_analytics/update_google_analytics_ids
Google analytics account, view and web property id

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Params

Param name Description
account_id
required

Business Account Id

Validations:

  • Must be a String

domain_id
required

Domain Id

Validations:

  • Must be a String


GET /api/google_analytics/connected_domains
Get connected domains

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Params

Param name Description
account_id
required

Business Account Id

Validations:

  • Must be a String


GET /api/google_analytics/metric
Google Analytics Metrics

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Params

Param name Description
account_id
required

Business Account Id

Validations:

  • Must be a String

domain_id
required

Domain Id

Validations:

  • Must be a String

metric
required

Google Analytics metric

Validations:

  • Must be a String

end_date
required

End Date

Validations:

  • Must be a String

start_date
required

Start Date

Validations:

  • Must be a String


GET /api/google_analytics/goals
Google Analytics Goals

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Params

Param name Description
account_id
required

Business Account Id

Validations:

  • Must be a String

domain_id
required

Domain Id

Validations:

  • Must be a String

end_date
required

End Date

Validations:

  • Must be a String

start_date
required

Start Date

Validations:

  • Must be a String