Send pub/sub message from Google Tag Manager server side

729 Views Asked by At

I'm in a project and I ran out of ideas... I have an instance of google tag manager server side running, and I want to send data to my cloud function. I've manage to do it through HTTP request but I would like to use cloud function triggered by pub/sub and how to do it? I need to send a pub/sub message from GTM server. Does anyone did it? Is There any kind of integration that I'm not aware?

Any input on that matter is much appreciated!

1

There are 1 best solutions below

0
On

It isn't currently possible. There's no API yet: https://developers.google.com/tag-platform/tag-manager/server-side/api

As the other links have stated, you can send your request to a cloud function using HTTP which then sends the Pub-sub message, this means you're paying for the cloud function execution as well as using Pub-sub.

Hopefully, we'll get the API soon that allows us to call Pub-sub directly.