Adslytics.
Check Your Tracking
Google Ads Conversion Tracking Services Server Side Tracking Google Analytics 4 (GA4) Setup & Audit Google Tag Manager (GTM) Setup & Audit Enhanced Ecommerce Tracking Setup Facebook Conversion API (CAPI) Setup GTM Data Layer Implementation Conversion Tracking Fix & Debugging Consent Mode v2 Implementation Marketing Pixel Setup BigQuery Setup & Analytics Looker Studio Dashboard Development Product Analytics Implementation Customer Data Platform (CDP) Implementation Behavior Analytics & CRO Marketing Analytics Consulting Google Ads Management Google Merchant Center PPC Management Search Engine Marketing View all services →
Case studies Guides Free tools Learning White label About
Check Your Tracking WhatsApp

BigQuery How-To Guide

BigQuery Scheduled Queries for Automated Analytics Reporting

By Muhammad Farooq · April 30, 2026 · 4 min read
BigQuery Scheduled Queries for Automated Analytics Reporting

What Scheduled Queries Enable

BigQuery Scheduled Queries run your SQL on a defined schedule (daily, hourly, weekly) and write the results to a BigQuery table. This pattern enables automated analytics pipelines: data lands in BigQuery each morning via GA4 export, a scheduled query processes yesterday's data into summary tables at 8am, and Looker Studio dashboards show fresh data without anyone running queries manually.

Setting Up a Scheduled Query

  1. BigQuery Console → write your query in the query editor
  2. Click "Schedule" → "Create new scheduled query"
  3. Configure:
    • Schedule name: "Daily channel summary"
    • Repeat frequency: Daily at 08:00 UTC
    • Destination table: select dataset and table name
    • Write preference: WRITE_APPEND (add new rows) or WRITE_TRUNCATE (replace table)
  4. Save

Example: Daily Traffic Summary

-- This query runs daily, appending yesterday's data:
SELECT
  FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)) as date_partition,
  traffic_source.source,
  traffic_source.medium,
  device.category,
  COUNT(DISTINCT user_pseudo_id) as users,
  COUNT(DISTINCT CONCAT(user_pseudo_id, CAST(
    (SELECT value.int_value FROM UNNEST(event_params) WHERE key='session_id') AS STRING)
  )) as sessions,
  COUNT(DISTINCT IF(event_name='purchase',
    (SELECT value.string_value FROM UNNEST(event_params) WHERE key='transaction_id'), NULL)
  ) as purchases,
  SUM(IF(event_name='purchase',
    (SELECT value.double_value FROM UNNEST(event_params) WHERE key='value'), 0)
  ) as revenue
FROM `project.analytics_PROPERTY.events_*`
WHERE _TABLE_SUFFIX = FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY))
GROUP BY date_partition, traffic_source.source, traffic_source.medium, device.category

Managing Scheduled Queries

  • View all scheduled queries: BigQuery → Scheduled Queries (left sidebar)
  • Check run history: click a query → Run History tab → see success/failure of each run
  • Set up failure alerts: configure notifications to email if a scheduled query fails

Summary

BigQuery Scheduled Queries automate analytics pipelines: they run SQL on a schedule and write results to destination tables, eliminating manual query execution. Use WRITE_APPEND for daily incremental data (appends yesterday's rows each morning). The pattern: raw events in GA4 export → scheduled query → summary table → Looker Studio dashboard shows fresh data automatically. Monitor run history for failures and set up email notifications to catch pipeline issues promptly.

See our BigQuery Setup service for automated pipeline development.

Need automated BigQuery analytics pipelines? Contact Adslytics.

Need expert tracking setup?

Our Google Tag Manager experts have delivered 500+ tracking setups with a 98% success rate.

Get a Free Consultation →

Related Articles

← Back to Blog
Muhammad Farooq

Author

Muhammad Farooq GTM & Analytics Expert · Adslytics Founder

Tracking specialist with 10+ years of experience in Google Tag Manager, GA4, Server-Side Tracking, and Google Ads. Founder of Adslytics — a dedicated analytics agency with a 98% success rate across 237+ projects on Upwork.

Top Rated Plus LinkedIn Visit the author's profile →