Google Analytics API: filter by URI?

前端 未结 4 2011
梦如初夏
梦如初夏 2021-01-31 09:19

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 profi

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 09:30

    This will work:

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

    To do /*/view/* (as per @VinnyG’s comment), this should work:

    filters=ga:pagePath=~/[^/]+/view/
    

    I'm assuming you want to match one (and only one) directory before /view/.

提交回复
热议问题