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
/* Disclaimer: This is the modified code originally taken from this page: | |
https://tanelytics.com/ga4-bigquery-session-traffic_source/ | |
So, all credits to Taneli Salonen | |
I just modified this code for my needs. | |
Sessions calculated as HyperLogLog: https://developers.google.com/analytics/blog/2022/hll#about_hll | |
So, approximate calculation that takes less recources |