AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
1.8K members online now
1.8K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

Want to filter all pages that will give 404 server response status .

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

 

I am using google client api ( PHP ) and developing an wordpress plugin for my own use .

 

I want to achieve some thing like

$filter = 'gaSmiley TongueageViews<=10;ga:serverResponseStatus!=404';

 

and then want to retrieve result as below.

return $analytics->data_ga->get(
'ga:' . $profileId,
$start_date,
$end_date,
'gaSmiley Tongueageviews,ga:uniquePageviews,ga:avgTimeOnPage,ga:bounceRate,ga:exitRate',

array('dimensions' => 'gaSmiley TongueagePath', 'sort' => $order, 'filters' => $filter,'start-index' => 1 + ($page-1)*$max_results, 'max-results' => $max_results ) );

 

I have also asked in satckoverflow but could not get any answer that I can use .

 

http://stackoverflow.com/questions/34546908/how-to-get-server-response-status-for-posts-in-google-an...

 

Regards,

Prafulla

Re: Want to filter all pages that will give 404 server response status

Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆
There is no such dimension as "serverResponseStatus".
I guess your 404 error page has a specific title so you can use page title (gaSmiley TongueageTitle) dimension to filter out the results.
You can use Query Explorer to make some tests:
https://ga-dev-tools.appspot.com/query-explorer/

Re: Want to filter all pages that will give 404 server response status

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
I know there is no such default dimension , Is it possible to make such custom dimension , using page title is not efficient idea, as there are some links that has page title which are now in draft or deleted .