如何以编程方式生成GA跟踪代码? [英] How can I generate a GA tracking code programmatically?

查看:137
本文介绍了如何以编程方式生成GA跟踪代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何生成Google Analytics(分析)跟踪代码的程式化盟友?

我是Google Analytics API的新手,有人可以请帮忙

解决方案

使用现有的API以编程方式创建新的Google Analytics帐户或个人资料是不可能的。



有两种可用的API:数据导出API 管理API 。但是,它们是只读的。


使用Google Analytics 数据导出API ,您可以开发客户端应用程序以从授权用户的现有Analytics配置文件请求数据,并优化请求使用查询参数。目前,Data Export API支持Google Analytics数据的只读权限 / p>


目前, Management API 支持Google Analytics管理系统的五个组成部分只读访问:帐户数据,配置文件数据,网络媒体资源数据,目标数据,高级细分



How to generate Google Analytics tracking code programmatic-ally?

I am new to Google Analytics API, can someone please help

解决方案

It is NOT possible to create new Google Analytics accounts or profiles programmatically using the existing APIs.

There are two APIs available, the Data Export API and the Management API. However, they are bot read-only.

With the Google Analytics Data Export API, you can develop client applications to request data from an existing Analytics profile for an authorized user, and refine the results of the request using query parameters. Currently, the Data Export API supports read-only access to your Google Analytics data.

 

Currently, the Management API supports read-only access to five components of the Google Analytics Management system: Account data,Profile data, Web property data, Goal data, Advanced segments

这篇关于如何以编程方式生成GA跟踪代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆