简体   繁体   中英

Pageviews for Specific URIs within Google Analytics Spreadsheet Add-on

I've started using the Google Analytics Spreadsheet Add-on to simplify some of my weekly reporting. Recently someone on my team has asked about pulling data for specific URIs. I've been through the documentation, I'm not seeing how to accomplish this.

Using a metric of ga:pageviews & dimension of ga:pagePath , I can get a list of pageviews for all URIs within a profile. The sites I'm working with have thousands of pages so that isn't particularly helpful.

It sounds like what you want to do is filter out results that don't match a particular pattern. You can use the filters option for this: https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters

For example, say you have a blog on your site and you only wanted to see results whose URLs started with the text /articles/ . Here's what that filter would look like (note, this uses a regular expression to match the pattern):

ga:pagePath=~^/articles/

And the full query would look like this:

metrics:     ga:pageviews
dimensions:  ga:Pathpath
filters:     ga:pagePath=~^/articles/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM