本文介绍了从ga.js获取源代码和媒介的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上有一个新闻通讯页面,我也想用它来捕获有关使用Google Analytics(分析)的用户的其他信息.

I have a newsletter page on my website which I'd like to also use to capture some additional information about the user using Google Analytics.

使用 getAll()方法ga.js我可以获取引荐来源网址(如果有),但是看不到媒体或源数据.是否可以使用其ga.js库进行检索?

Using the getAll() method from ga.js I can get the referrer URL (if any), however I cannot see the medium or source data. Is this possible to retrieve using their ga.js library?

推荐答案

从获得的跟踪器列表中检索特定的跟踪器.使用以下内容访问字段源和媒体.tracker.get('campaignSource')和tracker.get('campaignMedium')

Retrieve specific tracker from the list of trackers you obtained.Use the following to access the fields source and medium. tracker.get('campaignSource') and tracker.get('campaignMedium')

来自以下链接的其他帮助.从ga对象访问数据: https://developers.google.com/analytics/devguides/collection/analytics.js/accessing-trackers

Additional help from below links.Access data from ga object:https://developers.google.com/analytics/devguides/collection/analyticsjs/accessing-trackers

字段参考: https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference

这篇关于从ga.js获取源代码和媒介的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 17:07