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

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

问题描述

我想比较自己的数据与谷歌分析产生的数据。例如,我希望看到我的Twitter追随者数量与我的网页访问者每天的数量相比。



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

解决方案

您可以编写一个脚本,每天在服务器上运行并连接到Twitter,以衡量关注者数量,然后将关注者数量上传到Google Analytics(分析)。您可以在收到新追踪者或追随者取消关注您时向Google Analytics(分析)报告活动。

有多种方法可将数据上传到Google Analytics中: p>

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



当您使用Google描述的方式使用Google Analytics时,网站。此脚本将访问者浏览器的数据发送到Google Analytics服务器。



此脚本已被反向设计并在服务器端库中实现。现在您可以将相同的数据从服务器发送到Google Analytics服务器。您可以使用PHP的 PHP-GA pyga for Python。



2。使用Google Analytics测量协议



Google Analytics测量协议是向Google Analytics发送数据的新API。您可以通过向API发送POST请求来发送数据。


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?

解决方案

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.

There are several options to upload data into Google Analytics:

1. Use a library which implements the ga.js script server-side

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.

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. Use the Google Analytics measurement protocol

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天全站免登陆