Write data to Firestore from server Google Tag Manager

Written by

Ira Holubovska

Updated Jul 3, 2025 comments

What is Firestore

firestore server Google Tag Manager

Firestore and server Google Tag Manager

Firestore Writer tag

firestore writer tag for server Google Tag Manager
  1. 1.
  2. 2.
  3. 3.
  4. 4.

To set up the Firestore Writer tag you will need

write data from sGTM to google sheets

1. Google Service Account connected to stape

Create Google service account.
select Google service account roles
generate Google service account private key
upload Google service account private key to stape

2. Firebase account

create firebase project
create firebase database
Select Cloud Firestore location
Click Start firestore collection

How to set up the Firestore Writer tag

enrich server-side data using Firestore
import Firestore Writer tag
Create a new Firestore Writer tag
Test Firestore writer tag
create the Firestore Lookup variable in sGTM
Test Firestore Lookup variable in sGTM preview

Conclusion

Need help with setting up server-side tagging?

All it takes is a few simple questions. Click Get A Quote, fill-up the form, and we will send you a quote.

Try for free

Written by

Ira Holubovska

Content writer

Ira has 10+ years of digital marketing experience, with the last 5 focused on server-side tracking. She understands how and when it works across various digital marketing scenarios.

Was this article helpful?

Comments

Recommended for you

Turn better tracking into better marketing performance

Try for free