Google Service Account power-up
Updated Apr 20, 2026
The Google Service Account power-up connects your sGTM container to Google Cloud services such as BigQuery and Firestore. A single JSON credentials file is all you need to start reading, writing, and enriching event data directly from your sGTM container.
Google Service Account is available on the Free subscription plan and higher. To check your current plan or upgrade, go to your sGTM container settings.
How to set up Google Service Account
Step 1 | Activate the power-up
1. Log in to your Stape account and select your sGTM container from the dashboard.

2. Go to Power-ups and click Use next to the Google Service Account panel.

3. Toggle the Google Service Account switch to enable it.

Step 2 | Obtain the service account credentials file
1. Open the Google Cloud Console and go to IAM & Admin → Service Accounts. Click Create service account.

2. Enter a name, and click Create and continue.

3. Assign the appropriate role:
- BigQuery Data Editor for BigQuery access
- Cloud Datastore User for Firestore access
- Both roles if you need access to both services
4. Click Continue and Done.

5. Click the newly created account, open the Keys tab, then click Add key → Create new key.

6. In the pop-up, select JSON and click Create. A JSON file will download to your computer.

7. Back in Stape, click Select file and upload the JSON file you downloaded.
8. Click Save changes.

Step 3 | Set up Google Cloud Services
Testing
Verify the connection is working by triggering a test event through your sGTM container and checking that data lands in the expected destination:
- BigQuery: Navigate to your dataset in the BigQuery console and confirm a new row appears after the test event fires. See Explore BigQuery in the Google Cloud console for instructions on browsing table data.
- Firestore: Open your Firestore database in the Cloud Console and check that the relevant document was created or updated. See Use Firestore Studio for instructions on viewing and filtering documents.
Use case
A sample scenario is an eCommerce store that wants to understand which products drive the most revenue, but their GA4 reports are sampled and can't be sliced the way the team needs. The marketing team is making decisions based on aggregated totals that hide what's actually selling.
You can fix this by pushing raw event data into BigQuery for direct querying:
- Set up the Google Service Account power-up with a JSON key for a service account with the BigQuery Data Editor role. Then add a Write to BigQuery tag in your sGTM container and map your purchase event fields to a BigQuery table.
- Once events start flowing in, run SQL queries directly against your table to break down revenue by product, date range, or traffic source without any sampling.
- Compare the numbers against your GA4 reports. If GA4 was previously sampling your data, you'll see more granular and accurate totals in BigQuery, and your team will be able to answer questions about products that weren't possible before.






Comments