Google Analytics API:按 URI 过滤? [英] Google Analytics API: filter by URI?

查看:29
本文介绍了Google Analytics API:按 URI 过滤?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站有用户配置文件,可通过如下所示的 URL 访问:www.domain.com/profile/123/....我想向用户显示其个人资料的页面浏览量统计信息,但需要能够使用通配符.

My site has user profiles that are accessible via URLs that look like this: www.domain.com/profile/123/.... I want to show users page view statistics of their profiles, but need to be able to do wildcards.

例如,这有效:

filters=ga:pagePath==/profile/123/

问题在于,/profile/123/ 后面可能还有其他 URI 段.我想做这样的事情(不起作用):

The problem is that there are potentially other URI segments that follow /profile/123/. I want to do something like this (does not work):

filters=ga:pagePath==/profile/123/*

建议?

推荐答案

使用 维度过滤器.

filters=ga:pagePath=~/profile/123/*

这篇关于Google Analytics API:按 URI 过滤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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