-
-
Save zhangw/4b107f1a6f5136c5fa7d618071aea6d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
date, | |
COUNT(DISTINCT(visitid)) as unique_visits | |
FROM `bigquery-public-data.google_analytics_sample.ga_sessions_*` | |
WHERE _table_suffix = '20170801' # use date_sub to programmatically select your table | |
GROUP BY date | |
ORDER BY date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment