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

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

问题描述

我们正在创建一个处理多个用户的网站,每个用户都有自己的白色标签门户网站,该网站可以通过唯一的子网域网址访问。我们希望通过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文档在一键式多命令

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