Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
243 views
in Technique[技术] by (71.8m points)

Google Analytics Filter--Need to Return Null Values Only

I am trying to query Google Analytics and include only the results from users who are not logged in.

I am storing the User-ID in a custom dimension and I can filter by that custom dimension just fine (ga:dimension3==SOMEID)

I presume that the User-ID is null for users who are not logged in (let me know if this is a bad assumption).

Google's documentation doesn't explain how to filter by null values only:

https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters

Is it possible to filter out all non-null values?

question from:https://stackoverflow.com/questions/66054307/google-analytics-filter-need-to-return-null-values-only

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can filter in Analytics only something that has a value (at least (not set)), you can for example send a custom dimension like loggedIn or loggedOut if the user is logged in or not and filter with those two strings, but if you only send loggedIn you can't get the loggedOut results because it is something that is not there.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...