Created
August 1, 2022 02:31
-
-
Save ddikman/92ba111c101e6a53677bb5dca8fd3f40 to your computer and use it in GitHub Desktop.
Efficient filtering of tables in google analytics
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 | |
count(*) | |
FROM | |
`<your_project>.analytics_196169157.events_*` | |
WHERE | |
event_name = 'event_name' | |
AND _TABLE_SUFFIX >= format_date('%Y%m%d', CURRENT_DATE() - 30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment