Overview
Build your own Looker Studio dashboards on Brij data that refreshes every morning. The Brij Sync Google Sheet pulls your data from the Brij API into your own Google Drive each day. Connect that Sheet to Looker Studio and you can filter by any date range, build your own charts and blend Brij data with your ad, ecommerce and retail data.
- Updated daily: yesterday's data lands in your Sheet every morning, automatically.
- Your full history: load the last year, or everything back to your first event, in one click.
- No extra tools: no ETL provider, data warehouse or per-connector fees. It runs inside Google Sheets.
- Your data, your Drive: the Sheet lives in your Google account, and you control who can see it.
This integration requires access to Brij's API feature. To get started, reach out to your Brij Account Manager to implement it.
What gets synced
The Sheet has one tab per Brij API endpoint:
| Tab | One row per | Date field for Looker Studio |
|---|---|---|
| Experience Analytics | Experience, per day: scans, registrations, rebates, engagements, revenue and more. See General Analytics Reporting. | Date |
| Receipt Uploads | Receipt submission, with each line item in its own set of columns. See Receipt Details. | Submission Date |
| Event Data | Individual event: scans, module clicks, registrations, form submissions, rebates, orders. See Raw Event Data. | Event Day |
All dates are in UTC.
Before you start
- Access to Brij's API feature. If you're not sure whether your plan includes it, ask your Brij Account Manager.
- The Brij Sync template link. Your Brij Account Manager provides it. Reach out to Brij to implement this integration.
- Your Brij base URL. Your Account Manager provides this too.
- A Brij API key with read-only permissions. In Brij, go to Settings > Integrations and create an API key. Turn on Read for every permission except Serialization. Leave every Write permission off: this integration only reads data from Brij.
- A Google account with Google Sheets and Looker Studio.
Step 1: Copy the template into your Google Drive
- Open the Brij Sync template link from your Account Manager.
- Click File > Make a copy.
- Give it a name and choose a folder in your own Google Drive, then click Make a copy.
Your copy includes everything it needs to run. There is nothing to install. Work only in your copy, never in the template.
Step 2: Add your API key and base URL
- Open your copy. After a few seconds, a Brij Sync menu appears next to Help. If it doesn't, reload the page.
- Click Brij Sync > Setup > 1. Set credentials.
- Google asks you to authorize the script the first time you use it. Click Continue, choose your account and click Allow. If Google shows "Google hasn't verified this app", click Advanced, then the link to go to the project. This screen appears because the script is your own copy, not a published app.
- Click Brij Sync > Setup > 1. Set credentials again if it didn't continue on its own. Paste the base URL you received from your Account Manager (no slash at the end), then your API key.
Your key is stored in the Sheet's script settings, not in a cell.
Step 3: Test the connection
Click Brij Sync > Setup > 2. Test connections. You'll see a result for each of the three tabs.
- Experience Analytics fails: check the base URL and API key.
- A tab fails with a permission message: edit your API key and check that Read is on for every permission except Serialization, as described earlier in this article.
Step 4: Load your history
Each tab has its own menu under Brij Sync (Experience Analytics, Receipt Uploads, Event Data) with the same three options:
- Run 1 year backfill: loads the last 365 days.
- Run full backfill (all time): goes further back, until your data runs out. Run it after the 1 year backfill to fill in older history.
- Pull yesterday now: loads yesterday only.
Start with Run 1 year backfill on each tab. A backfill runs in the background in short batches and continues on its own, so you can close the Sheet. A year of Event Data can take a while. Check progress at any time with Brij Sync > Status.
Step 5: Turn on daily updates
Click Brij Sync > Setup > 3. Install daily triggers (9am). From then on, every morning:
- Experience Analytics and Event Data add yesterday's data.
- Receipt Uploads adds new receipts and updates the last 7 days, so receipts reviewed after upload show their latest status.
The updates run around 9am in the script's time zone, under the Google account of the person who installs them. Choose someone who will stay on the account long term: if their account is removed, daily updates stop until someone else installs them again.
Step 6: Build your dashboard in Looker Studio
Option 1 - start from within the google sheet
- Click Extensions > Data Studio > Create a report
- Choose the tab from the sheet you want to use as a data source (you can add the other 2 after) and be sure you've checked Use first row as headers.
- Click Create and set up your dashboard.
- Add the other tabs as data sources following the steps below
Option 2 - start from within Looker
- Go to Looker Studio (aka Data Studio) and click Create > Data source.
- Choose the Google Sheets connector, then select your copy of the Brij API Sheet and a tab, such as Experience Analytics.
- Leave Use first row as headers checked and click Connect.
- Check that the tab's date field (see the table above) has a Date type. If Looker Studio reads
Submission Dateon Receipt Uploads as text, add a calculated field with the formulaPARSE_DATE("%Y-%m-%d", SUBSTR(Submission Date, 1, 10))and use that as the date. - Click Create report, then add a date range control with Add a control > Date range control.
- Repeat for each tab you want to report on. Add each tab as its own data source.
Looker Studio reads the Sheet directly, so your dashboard picks up each morning's new data on its own.
Keep your data secure
- Share the Sheet as Viewer. Anyone with Edit access can open the script, which means they can see your API key and change what the script does. Give Edit access only to the people who manage the sync. Looker Studio only needs view access.
- Keep the API key read-only. With no Write permissions, the key can't change anything in your Brij account.
- The Event Data tab includes customer personal data, such as names, email addresses and phone numbers from registrations and forms. Share it accordingly.
- If someone with Edit access leaves your team, create a new Brij API key and add it with Setup > 1. Set credentials.
FAQ
Will a backfill create duplicate rows?
No. Each tab checks what's already in the Sheet before writing, by date for Experience Analytics and by ID for receipts and events. You can run any backfill more than once. If you have duplicates from an older version of the template, use Brij Sync > Setup > Remove duplicate rows (all tabs).
How do I stop a backfill?
Click Brij Sync > Setup > Stop any running backfill. A running backfill stops within a few seconds and saves its place. Daily updates keep running. To continue, start the backfill again from its menu.
How do I know if something went wrong?
Brij Sync > Status shows what's running, each backfill's progress and the Sheet's size. If a daily update fails, the person who installed the daily updates gets an email with the error.
Is there a size limit?
Yes. Google Sheets holds up to 10 million cells per spreadsheet. Event Data grows fastest. Status shows how full the Sheet is, and the sync stops loading old events before it reaches the limit.
Can I use this with BigQuery, Snowflake or another warehouse instead?
Yes, with an ETL provider. See Setting Up Brij API Syncing Using an ETL Provider.