单个页面中有多个 Google Analytics 跟踪 ID? [英] Multiple Google Analytics Tracking IDs in Single Page?

查看:26
本文介绍了单个页面中有多个 Google Analytics 跟踪 ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在创建一个与多个用户打交道的网站,每个用户都有自己的白标"门户,可通过唯一的子域 URL 访问.我们希望通过 Google 分析维护我们自己的跟踪指标,但也希望为白标用户提供将他们自己的跟踪 ID 用于其唯一子域的选项.

We are creating a site that deals with multiple users, each with their own 'white label' portal that is accessed by a unique sub-domain URL. We want to maintain our own tracking metrics through Google analytics but also wish to provide the white label users the option of using their own tracking ID for their unique sub-domain.

我的问题是:是否有可能(甚至支持)在一个网站的单个页面上有多个跟踪 ID 代码片段?

My question is this: Is it possible (or even supported) to have multiple Tracking ID code snippets on a single page in a web site?

推荐答案

Google Docs 在 一次推送,多个命令:

Google Docs has information on this at One Push, Multiple Commands:

_gaq.push(
    ['_setAccount', 'UA-XXXXX-1'],
    ['_trackPageview'],
    ['b._setAccount', 'UA-XXXXX-2'],
    ['b._trackPageview']
);

这篇关于单个页面中有多个 Google Analytics 跟踪 ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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