Skip to content

Instantly share code, notes, and snippets.

View dase-analytics's full-sized avatar

Dase Analytics dase-analytics

View GitHub Profile
@dase-analytics
dase-analytics / consent.js
Created December 10, 2025 07:54
Improved consent timing for the web page.
@dase-analytics
dase-analytics / exportBigQueryToSheet.js
Created October 14, 2025 06:48
AppScript function to export BigQuery table to Google Sheets.
function exportBigQueryToSheet() {
const PROJECT_ID = 'project_id';
const SHEET_ID = 'sheet_id';
const SHEET_NAME = 'import_to_sheet';
const QUERY = `
SELECT *
FROM \`project_id.dataset_id.table_id\`
`;
@dase-analytics
dase-analytics / exportSheetToBigQuery.js
Created October 14, 2025 06:45
AppScript function for exporting Google Sheets table to BigQuery
function exportSheetToBigQuery() {
/** =========================
* configuration
* ========================= */
const CONFIG = {
PROJECT_ID: 'project_id',
DATASET_ID: 'dataset_id',
TABLE_ID: 'table_id',
SHEET_NAME: 'export_to_bq',
HEADER_ROW: 1,