Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google analytics API, how to extract pageviews for a specific page?

Google Analytics API: how to extract pageviews for a specific page?

I tried using something like

ga:pagePath=~page.php%3fid%3d44 (page.php?id=44)

but it doesn't seem to work... I get "no results found" where I have 20 pageviews for sure

UPDATE

I think I found the solution

ga:pagePath==/website/page.php?id=44

for some reason I had to include the complete path and ==

like image 689
Francesco Avatar asked Feb 26 '11 17:02

Francesco


People also ask

How do I get Google Analytics for a specific page?

The first thing you need to do is open up Google Analytics, and then go to the behavior tab. In the behavior tab, click on the site content, then content drilldown tab. Then, you simply need to click the search icon in the bar, and you will be greeted with analytics specific to that individual page/post.

Can Google Analytics track page views?

Google Analytics tracking lets you see pageviews on your form using your Google Analytics account. It's super useful when you want in-depth knowledge about how many people are viewing your form and who they are. You need a Google Analytics account to use this feature. TIP!

What is the difference between page views and clicks?

A link click means that a person clicked a link in your ad. A 'landing page view' is when a person lands on your ad's destination URL (landing page) after clicking a link in your ad. From Facebook: "Landing page views let you know how many times people loaded your website, after clicking your ad.


1 Answers

To use a partial path to match for a page in filters you should use

ga:[email protected]?id=44

=@ tells ga to match a substring.

What you were originally using was incorrect for this.

like image 149
hu_me Avatar answered Sep 30 '22 17:09

hu_me