如果在没有 cookie 存储的情况下使用 google 分析,所有页面浏览量都是 "new" 用户吗?

If google analytics is used without cookie storage, are all pageviews a "new" user?

我的应用程序中有一个小型 Web 浏览器,它使用 Google 分析访问网页。那个小小的网络浏览器禁用了 cookie 和本地磁盘存储。

我的用户分析会因此而发生偏差吗?是否每个用户都报告为新用户,而实际上他们是现有用户?

是的。 Google Analytics 使用客户端 ID 来确定用户是新用户还是回访用户。

请注意,如果您的用户已登录(可能没有,但没有 cookie),那么您可以使用 user ID 功能来确定新用户和回访用户。

是的,您的 Analytics(分析)数据将受到影响。例如,您将无法区分会话和回访者之间的点击。如您所说,每个访客都将被报告为新访客。

Analytics 使用 Client ID 参数来唯一标识访问者。正如 official Field Reference 所述:

Client ID

Required for all hit types.

Anonymously identifies a browser instance. By default, this value is stored as part of the first-party analytics tracking cookie with a two-year expiration.

如果您的应用程序可以为每个用户生成一个唯一的密钥并将其保存在 cookie 或 localStorate 中的其他地方,您仍然可以 create your own Client ID:

Disabling Cookies

By default, analytics.js uses a single cookie to persist a unique client identifier across pages. In some cases you might want to use your own storage mechanism and send data directly to Google Analytics without the use of cookies.

You can disable analytics.js from setting cookies using the following:

ga('create', 'UA-XXXX-Y', {
  'storage': 'none',
  'clientId': '35009a79-1a05-49d7-b876-2b884d0f825b'
});

When you disable cookie storage, you will have to supply your own clientId parameter except for the special case where you are using cross-domain linking parameters.