How can we help?

Firestore Writer tag

Ivanna
Ivanna
  • Updated

Build integration of Firestore and server Google Tag Manager with the Firestore Writer tag.

Functions of Firestore sGTM API: 

 

Firestore.read - reads data from Firestore document and returns a promise that resolves to an object containing two keys: id and data. 

 

Firestore.write - writes data to a Firestore document or collection. If you specify only the path to the collection, the document will be automatically created with a random name. 

 

Firestore.query - returns an array of Firestore documents that match specified query conditions.

 

Firestore.runTransaction - allows reading and writing from Firestore automatically.

 

You can find our step-by-step guide on how to set up the Firestore Writer tag here - https://stape.io/blog/write-data-to-firestore-from-server-google-tag-manager.

Was this article helpful?

1 out of 1 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.