Simo Ahava Profile picture
Mar 24 6 tweets 3 min read
Two very, very important releases to server-side #GoogleTagManager. One of them is arguably *the most important* update to the platform in a long, long, time, and the other opens up a myriad of use cases for data enrichment at scale.

Read on!
First, we have ASYNCHRONOUS VARIABLES and PROMISES.

In short, you can use *variables* to run asynchronous operations (such as send HTTP requests or communicate with BigQuery), and anything the variable is attached to *will wait for it to complete*.

simoahava.com/analytics/asyn…
This is so useful, as it lets you do complex enrichment / API chaining without having to create custom clients or tags!

The new Promise API can be used to add this functionality to your template code, BUT: the send*, BigQuery, and Firestore APIs are automatically "promisified"!
Check the article for a practical walkthrough (simoahava.com/analytics/asyn…).

Oh, "Firestore API, what's that?" I hear you ask.

Well it's a friggin' API for Google's Cloud Firestore database. That's NoSQL, scalable, low latency, atomic, transactional, read/write sync GALORE!
There are *so* many use cases for Firestore. Check out my article below to learn how the new API works, how the new Firestore Lookup variable can be used, and how a simple (but powerful) ecom lookup system can be built trivially with these new features.

simoahava.com/analytics/enri…
It's a great day for server-side GTM users. The enrichment pipe dreams which have been just wishful thinking for over 2 years have finally been realized. There are features I'd still like to see (e.g. event-scoped enrichment), but this is quite enough for now!

#measure #gtmtips

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Simo Ahava

Simo Ahava Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @SimoAhava

Aug 12, 2020
It’s here, it’s here!

SERVER-SIDE TAGGING

#GoogleTagManager

The new Server container is now in public beta. You can create a new container in the Admin section of any Google Tag Manager account you have access to.

My guide:
simoahava.com/analytics/serv…

#measure

THREAD 1/11
Server-side tagging is (for now) a @GCPcloud managed environment, which serves as a server-side proxy for all your analytics, marketing, and advertising needs.

See this video for a walkthrough of how to set it up:



#measure

THREAD 2/11
With Server-side tagging you're looking at lots of benefits for your data pipeline; two in particular:

1. You *own* the proxy. Anything that passes through can be thoroughly assessed, validated, and dispatched OR purged by you.

simoahava.com/gtm-tips/build…

#measure

THREAD 3/11
Read 11 tweets
Jan 29, 2020
So, #GoogleTagManager introduced “server-side tagging”, at SuperWeek, which finally gives me a chance to unload some thoughts about it :)

Server-side tagging translates to a new “Server” container running on a cloud VM in your own domain namespace. 1/6
You send HTTP requests to it from the browser, and it parses these requests (using a new “Client” format), typically dispatching them to their respective endpoints server-to-server (e.g. Measurement Protocol). 2/6
Some amazing things you can do with it:

- Hit validation and fixing before the hit is sent to the endpoint
- PII and privacy controls for the requests before dispatch
- Send same request to multiple endpoints
- Customize the HTTP response back to the client (e.g. Set-Cookie) 3/6
Read 6 tweets
Sep 21, 2019
Thank you for visiting my session at #MeasureCamp @MeasureCampLDN!

As promised, here are some ideas for getting your feet wet with @GCPcloud.

1. Web applications with App Engine

Quickstart: cloud.google.com/appengine/docs…

gtmtemplates.com source: github.com/sahava/GoogleT…
2. Build your own web crawler with GCE + Node.js + headless-chrome-crawler + BigQuery

Source code: bit.ly/web-scraper-gcp

bit.ly/headless-chrom…

Article with guide: simoahava.com/google-cloud/s…
3. Automate Lighthouse reports for multiple sites at a time (might want to use GCE instead of Cloud Functions, though)

Source code: bit.ly/multisite-ligh…

Article with instructions: simoahava.com/google-cloud/l…
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(