手动向Google Analytics发送数据 [英] Manually sending data to Google Analytics

查看:99
本文介绍了手动向Google Analytics发送数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以通过发送自定义网址请求将Google Analytics(分析)跟踪数据发送给Google。我认为我可以建立自己的网址并发起请求来跟踪事件,如下所示: http://google.com/analytics-endpoint?id=UA-34900236-1&event=some_event ,我还没有找到关于这个的任何文档,并想知道这是否甚至可能?如果是这样,有人可以指出我的正确文件吗?



任何有兴趣的人的背景:我目前正在尝试将Google分析支持添加到Mono for Android应用程序。我无法获得任何c#google analytics库的编译,因为所需的.net库从Mono for Android中丢失。

>作为对@ PT的回答的补充,我想指出,Google现在发布了一个官方API来向Google Analytics发送数据。这是 Google Analytics测量协议。这可能是最安全的解决方案,因为它是一个官方且记录在案的API。

I was wondering if I can send google analytics tracking data to google by sending custom URL requests. I assumed I could build my own URLs and fire a request to get events tracked something like this: http://google.com/analytics-endpoint?id=UA-34900236-1&event=some_event, I haven't found any documentation about this though and was wondering if this is even possible? If so, could some one point me to the right documents?

The background for anyone who is interested: I'm currently trying to add google analytics support to a Mono for Android application. I could not get any of the c# google analytics libraries to compile, because required .net libraries are missing from Mono for Android.

解决方案

As an addition to @P.T.'s answer I want to note that Google released an official API to send data to Google Analytics now. This is the Google Analytics Measurement Protocol. This is probably the safest solution because it is an "official" and documented API.

这篇关于手动向Google Analytics发送数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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