是否有可能将自己的数据导入谷歌分析? [英] Is there a posibillity to import own data into google analytics?

查看:30
本文介绍了是否有可能将自己的数据导入谷歌分析?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将自己的数据与谷歌分析生成的数据进行比较.例如,我想查看我的 Twitter 关注者数量与每天的页面访问者数量相比.

I want to compare own data with data generated by google analytics. For example I want to see the number of my twitter followers compared with my page visitors per day.

有没有办法做这样的事情?

Is there a way to do something like this?

推荐答案

您可以编写一个脚本,该脚本每天在服务器上运行并连接到 Twitter 以测量关注者的数量,然后将关注者的数量上传到 Google Analytics.当您有新的关注者或关注者取消关注您时,您还可以向 Google Analytics(分析)报告事件.

You could write a script which runs daily on a server and connects to Twitter to measure the number of followers and then uploads the number of followers to Google Analytics. You could also report an event to Google Analytics when you get a new follower or when a follower unfollows you.

有多种方法可以将数据上传到 Google Analytics:

There are several options to upload data into Google Analytics:

1.使用实现 ga.js 脚本服务器端的库

当您按照 Google 描述的方式使用 Google Analytics(分析)时,您会在您的网站上包含一个脚本.此脚本将数据从访问者浏览器发送到 Google Analytics 服务器.

When you use Google Analytics in the way described by Google, you include a script on your website. This script sends data from the visitors browser to the Google Analytics server.

此脚本已被逆向工程并在服务器端库中实现.现在您可以将相同的数据从服务器发送到 Google Analytics 服务器.您可以将 PHP-GA 用于 PHP 或 pyga 适用于 Python.

This script has been reverse engineered and implemented in server-side libraries. Now you can send the same data from the server to the Google Analytics server. You can use PHP-GA for PHP or pyga for Python.

2.使用 Google Analytics(分析)衡量协议

Google Analytics 衡量协议是一个新的 API数据到谷歌分析.您可以通过向 API 发送 POST 请求来发送数据.

The Google Analytics measurement protocol is a new API to send data to Google Analytics. You can send data by sending POST requests to the API.

这篇关于是否有可能将自己的数据导入谷歌分析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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