如何从跟踪代码中获取Google个人资料ID? [英] How to get google profile Id from tracking code?

查看:173
本文介绍了如何从跟踪代码中获取Google个人资料ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google API获取Google分析数据。为了获得分析,我需要提供简档ID,它看起来像ga:12345678。

I'm getting Google analytics using Google API. In order to get analytics I need to provide profile Id which looks like "ga:12345678".

问题是用户可能有许多配置文件。是否有可能从Google跟踪代码中找出配置文件ID(例如,如果我知道跟踪ID看起来像UA-1234567-1)?
他们是否相互关联?

The problem is that user can have many profiles. Is it possible to figure out profile Id from say Google tracking code (e.g. if I know tracking ID which looks like "UA-1234567-1")? Are they related to each other at all?

谢谢

Thanks

推荐答案

我遇到了同样的问题,并且找到了获取Google Analytics(分析)配置文件ID的最简单方法。

I had the same issue and I found out the simplest way to get google analytics profile id.

登录Google Analytics

Log into Google Analytics

1.访问您网站的个人资料(访问信息中心)

1.Access your site’s profile (get to the dashboard)

2.您的网址应如下所示:

2.Your URL should look like:

https://www.google.com/analytics/web/#report/visitors-overview/a1234b23478970p987654/

/ a1234b23478970p 987654 /

/a1234b23478970p987654/

,在p是您的Google Analytics个人资料ID 之后,在这种情况下(这是假帐户),它是987654

That last part, after the "p" is your Google Analytics Profile ID, in this case (this is a fake account) it is "987654"

这篇关于如何从跟踪代码中获取Google个人资料ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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