共享Google Analytics(分析)跟踪ID安全吗? [英] Is sharing Google Analytics tracking id safe?

查看:124
本文介绍了共享Google Analytics(分析)跟踪ID安全吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Electron创建一个跨平台的桌面应用程序。我希望添加分析以查看用户指标。当我尝试查找提供度量标准信息的现有软件包时,发现 electron-ga

I currently creating a cross platform desktop application using Electron. I wish to add analytics to view user metrics. When I try to find for existing packages that provides metrics info, I found electron-ga.

该软件包使用GA跟踪用户指标并进行设置,我需要在我的应用中添加GA跟踪ID。我的问题是,如果我将跟踪ID包含在电子应用程序中并分发我的应用程序,那么每个人都可以查看跟踪ID并窃取它吗?

The package uses GA to track user metrics and to set it up I need to include GA tracking id in my app. My question is, if I include the tracking id in an electron app and distribute my app, everyone can look at the tracking id and steal it right?

我想知道使用此方法是否正确?

I would like to know if using this method is right?

谢谢。

推荐答案

无论如何它都是公开可用的(例如,您可以通过使用Google Analytics(分析)的任何网站的源代码找到ga ID)。

It will be anyway publicly available (e.g. you can find the ga ID through the source code of any site that uses Google Analytics).

如果有人想要伤害您,因为除非您已做好准备并受到保护,否则他只能将您的ga ID插入他的任何站点中。

It can get very bad if someone wants to harm you, as he can just plug your ga ID in any of his sites unless you are prepared and protected.

有人在使用您的ga ID,但他却无法使用它。
转到您的Google Analytics(分析)个人资料并创建一个自定义过滤器。在过滤器字段中选择主机名,然后用您的网站(例如mysite.com)填充过滤器模式。不要忘记在任何。之前使用 \。

What you can do to be sure that even if someone has your ga ID, he can't make use of it, is the folowing. Go to your Google Analytics profile and create a custom filter. Choose "Hostname" for the filter field and fill the filter pattern with your site (e.g. mysite.com). Don't forget to use the "\" before of any ".".

这样,只有该特定地址才能使用您的ga ID

This way, only this specific address will be able to make use of your ga ID.

这篇关于共享Google Analytics(分析)跟踪ID安全吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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