Last active
August 26, 2022 09:39
-
-
Save lacerogers20/3744d88031b539317a1815da3c7cfc10 to your computer and use it in GitHub Desktop.
This file contains 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