I am using GoogleAnalytics API library on my Codeigniter site, but i didn’t find there and on Google API guide –
how to get results for a one exact page.
Say i’ve got page http://www.example.com/company/82808, and i make request to GA API and get pageviews and visitors metrics for this URL – example.com/company/8280.
Is this possible?
Yes, it’s possible. Apply a filter for
ga:pagePathInclude in the request:
Dimension:
ga:pagePathMetrics:
ga:pageviews,ga:visitorsFilter:
filter=ga:pagePath==/company/82808use this exact match if that is how the page is recorded in GA. If it’s recorded like/company/82808/index.phpthen you can usefilter=ga:pagePath==/company/82808/index.phporga:pagePath=~/company/82808for a contains match.Test out queries in Google’s Data Feed Query Explorer