Get pv count for specific URL with google analytics api, etc.

Asked 1 years ago, Updated 1 years ago, 96 views

I have a list of specific URLs in Google api, and I would like to get the pv count for each URL.
Is there a good way?

filters='ga:pagepath==list'

The image does not work.

python google-analytics-api

2022-09-30 20:21

1 Answers

I don't know exactly what's going on with the == list part, but I can use regular expressions for filters, so how about getting them?

For example, suppose you have a list of paths at the following URL:

/hoge/index.html
/hoge/fuga/index.html
/hoge/fuga2/index.html

If you want to retrieve data for all of these paths, you can write it as follows: /hoge It means to retrieve data for all URLs below.

filters='ga:pagepath=~/hoge/*'

Please refer to the link below for details.


2022-09-30 20:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.