Browse sources$ls -a sources
Logo of google-analytics
Google Analytics
Drive decisions with your customers’ Google Analytics insights
Sync your customers' dataFiber pulls data from your customers' Google Analytics accounts into your database or cloud storage. Skip months of integration work and begin syncing in minutes.
Logo of google-analytics
Logo of google-analytics
Logo of google-analytics
Logo of google-analytics
Logo of google-analytics
Logo of google-analytics
Logo of google-analytics
Logo of google-analytics
Logo of google-analytics
Logo of google-analytics
Fiber
postgres-prod
google_analytics_reports
Your customers' Google Analytics accounts
Your production database
Meet your new integration toolkit: SQLReplace calls to the Google Analytics API with an interface you already use. Access the data you need straight from your database.
-- Fetch all the Reports belonging to the Google
-- Analytics account of a particular user.

SELECT *
FROM fiber.google_analytics_report
WHERE account_id = '{user.google_analytics_id}'
-- Fetch all the Reports belonging to the Google
-- Analytics account of a particular user.

SELECT *
FROM fiber.google_analytics_report
WHERE account_id = '{user.google_analytics_id}'
Code
CREATE TABLE fiber.google_analytics_report (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
view_id TEXT,
date_ranges JSONB,
sampling_level TEXT,
dimensions JSONB,
dimension_filter_clauses JSONB,
metrics JSONB,
metric_filter_clauses JSONB,
filters_expression TEXT,
order_bys JSONB,
segments JSONB,
pivots JSONB,
cohort_group JSONB,
page_token TEXT
)
CREATE TABLE fiber.google_analytics_report (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
view_id TEXT,
date_ranges JSONB,
sampling_level TEXT,
dimensions JSONB,
dimension_filter_clauses JSONB,
metrics JSONB,
metric_filter_clauses JSONB,
filters_expression TEXT,
order_bys JSONB,
segments JSONB,
pivots JSONB,
cohort_group JSONB,
page_token TEXT
)
Model definition
About this source
Logo of google-analytics
Google AnalyticsWeb analytics service for tracking and reporting website traffic.analytics.google.com  ↗
Available resources
    Reports
Missing a resource? We will build it for you.
Similar integrations
OAuth
Need help with OAuth for Google Analytics?Handshake ↗ is a Next.js app boilerplate that handles your OAuth with Google Analytics and over 200 other APIs. Setup and deploy within minutes.
Logo of google-analyticsIntegrate Google Analytics using Fiber Fiber makes it easy to access third-party data from Google Analytics accounts. Get started in just a few minutes.