Using filters in Google Analytics Connector

You can create a specific metric in KPI Watchdog filtered by any Google Analytics dimension. Just edit the Filter field using the standard GA codes and expressions. Here are few examples how to use it.


For instance, you want to see the number of visitors for the page http://kpiwatchdog.com/index/contact from United States and mobile devices only:

you add to the Filter field:

ga:pagePath==/index/contact;ga:isMobile==Yes;ga:country==United States




CREATING FILTER


Syntax:

1) Dimension code:

ga:pagePath==/index/contact;ga:isMobile==Yes;ga:country==United States



Only specific Country- ga:country=

Only specific Page- ga:pagePath=

Only visits from Facebook- ga:socialNetwork==Facebook

Only Mobile devices- ga:isMobile=Yes

(The possible values are Yes or No where the first letter must be capitalized)



2)

ga:pagePath=~contact$;ga:isMobile==Yes;ga:country==United States

== exact match

=~ match based on regular expressions

!=  does not match

!~ does not match regular expression



Examples:

- Number of visits of specific URL, e.g. Contact Page of KPIwatchdog.com

ga:pagePath==/index/contact

- URL starting with index

ga:pagePath=~^/index

- URL ending with contact

ga:pagePath=~contact$



3) For combination of more conditions:

comma (,) means OR

semicolon (;) means AND



Combination OR (,) (starting with index or ending with contact)

ga:pagePath=~^index,ga:pagePath=~contact$



Combination AND (;) ( visited by mobiles only, from US)

ga:pagePath=~contact$;ga:isMobile==Yes;ga:country==United States




You can test your filter settings in the Google Analytics debug console before using it in KPI Watchdog:

Feedback and Knowledge Base