通过 API 获取跟踪代码和会话设置
Getting tracking code and session settings by API
如何使用 Google 分析管理 API 获取跟踪代码和会话设置?
我正在阅读这份 API 文档:https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/webproperties/list
我能够获得我在 Google Analytics 上拥有的所有属性的列表,但是此 API 调用未返回会话设置和跟踪代码。
通过会话设置,我的意思是:
https://support.google.com/analytics/answer/2795871?hl=en
是否有任何 API 端点可用于获取这些设置?
的确,webproperty
resource 中没有会话和广告系列超时设置(我不确定 tracking code
是什么意思)。你得到的只是:
accountId
childLink
childLink.href
childLink.type
created
defaultProfileId
id
industryVertical
internalWebPropertyId
kind
level
name
parentLink
parentLink.href
parentLink.type
permissions
permissions.effective[]
profileCount
selfLink
starred
updated
websiteUrl
很遗憾,在此阶段您无法使用任何 API 检索该信息。
也就是说,他们发布了具有更多功能的 v4
for the reporting API,因此他们可能还会发布具有更多功能的管理 API v4
。
如何使用 Google 分析管理 API 获取跟踪代码和会话设置?
我正在阅读这份 API 文档:https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/webproperties/list
我能够获得我在 Google Analytics 上拥有的所有属性的列表,但是此 API 调用未返回会话设置和跟踪代码。 通过会话设置,我的意思是: https://support.google.com/analytics/answer/2795871?hl=en
是否有任何 API 端点可用于获取这些设置?
的确,webproperty
resource 中没有会话和广告系列超时设置(我不确定 tracking code
是什么意思)。你得到的只是:
accountId
childLink
childLink.href
childLink.type
created
defaultProfileId
id
industryVertical
internalWebPropertyId
kind
level
name
parentLink
parentLink.href
parentLink.type
permissions
permissions.effective[]
profileCount
selfLink
starred
updated
websiteUrl
很遗憾,在此阶段您无法使用任何 API 检索该信息。
也就是说,他们发布了具有更多功能的 v4
for the reporting API,因此他们可能还会发布具有更多功能的管理 API v4
。