Google Tag Manager Server-side tagging tutorial with Google Analytics 4

  Рет қаралды 63,684

Analytics Mania - Google Analytics & Tag Manager

Analytics Mania - Google Analytics & Tag Manager

Күн бұрын

Server-side tagging might be a confusing concept for those who are used just to regular web tracking. But it’s worth giving a shot.
Learn what server-side tagging in Google Tag Manager is and why you might need it.
In this video, I will explain:
* what server-side tagging is
* the benefits of Google Tag Manager server-side tagging
* the drawbacks of server-side tagging
* how to configure your first server-side tagging setup (including Google Analytics 4)
* how to connect custom domain
* how to upgrade your server (so that it would work on your live website)
* additional things to know
=== TIMESTAMPS ===
00:00 - Intro
00:29 - What is server-side tagging in Google Tag Manager?
02:31 - Benefits of server-side tagging
05:18 - Disadvantages of server-side tagging
08:31 - How to configure server-side tagging in Google Tag Manager
31:48 - How to connect custom domain
40:00 - Upgrade your server
46:36 - Frequently asked questions
48:25 - Final words
=== LINKS ===
Subscribe to our KZfaq channel / @analyticsmania
⭐⭐ Intermediate/advanced GTM course (includes server-side tagging)⭐⭐
www.analyticsmania.com/course...
✭ How to install Google Tag Manager on your website www.analyticsmania.com/post/h...
✭ App engine setup (bash code) developers.google.com/tag-pla...
✭ Server-side: Configure a sandboxed JavaScript policy
developers.google.com/tag-pla...
=== CONNECT WITH JULIUS & ANALYTICS MANIA ===
✭ Facebook / analyticsmania
✭ Twitter / fedorovicius
✭ Linkedin / fedorovicius
Subscribe to our KZfaq channel / @analyticsmania
#googletagmanager

Пікірлер: 98
@michaelcharters
@michaelcharters 2 ай бұрын
This is so helpful! Your technical and teaching abilities are excellent. Thank you for putting this training together for us.
@user-ll4be3xo1e
@user-ll4be3xo1e 6 ай бұрын
l'unico video che spiega in modo chiaro ed esaustivo il server side tagging
@RuiAlbertoMaia
@RuiAlbertoMaia Жыл бұрын
Thank you verry much. ! You are an expert on Google tag manager... Explanation Excellent, Accurancy Excellent... I've been seting my google tag manager as you speak ! it 100% accurate !
@muthukrishnanmani46
@muthukrishnanmani46 2 ай бұрын
Thanks for the session. It's very helpful and you've explained most concepts. I got this SST thing now, will explore more 👍
10 ай бұрын
thank you very much Julius for this video. Always great quality videos tutorials and courses. You are my Obi-wan Kenobi of Tracking 💪
@vytautasdrebulis4862
@vytautasdrebulis4862 Жыл бұрын
Jsut amazing video. Managed to set up everything with your tutorial without any issues. Keep up the good work
@awakenthegreatnesswithin
@awakenthegreatnesswithin 2 ай бұрын
Still using it? How’s it going?
@phillmaddickotter
@phillmaddickotter Ай бұрын
Are you being charged for Google Cloud use?
@BaljitSingh-bu9xp
@BaljitSingh-bu9xp Жыл бұрын
Great Video!! Thanks for providing the information....:)
@user-gg1si4wd4w
@user-gg1si4wd4w 2 ай бұрын
Your videos are helpful for so many of us. Thank you.
@Afzalhanif7
@Afzalhanif7 Жыл бұрын
Thank you so much. Really helpful video.
@anahitkhachatryan1648
@anahitkhachatryan1648 7 ай бұрын
This was a lot!)) Thank you!
@Trip_Moments_Captured
@Trip_Moments_Captured 7 ай бұрын
Wonderful explanation.
@user-zf7vn3pi8d
@user-zf7vn3pi8d Жыл бұрын
Thanks so much for this, I was trying to set up SS tracking for months before I came across this, you're legend! Im having some issues with the conversion source data, previously I could split my conversions out via source (Google cpc, FB ads etc), but since I added SS tracking all my conversion events come through with a source of not set, have you seen this before or have any ideas what I did wrong? Thanks so much
@Bartopia_app
@Bartopia_app 2 ай бұрын
Your amazing this has been so helpful!
@mazhermahmood6672
@mazhermahmood6672 23 күн бұрын
Beautiful explanation!!
@learnwithtoriqul
@learnwithtoriqul 9 ай бұрын
Thanks for sharing this video
@marciosantos7480
@marciosantos7480 Жыл бұрын
very helpful thank you
@ate787
@ate787 Жыл бұрын
Voor de Nederlanders die dit kijken. In Nederland heb je ook een partij die hosting en implementatie aanbied voor SST, namelijk TAGGRS. Dit is in tegenstelling tot Google Cloud wel een stuk goedkoper (25 tot 65 per maand). Je kunt zelfs een gratis account aanmaken.
@DoomCatcher
@DoomCatcher 9 ай бұрын
Very useful video, however at @34:25 I am using google search console and I only have the option to select the root domain even though I've also added the subdomain to google search console, what do I do?
@anondontwant
@anondontwant 3 ай бұрын
Thanks very much for this Julius. Do you recommend sending server-side and browser events to the same GA4 property? If so is there a deduplication available, like with Facebook CAPI? Or should you just use one or the other?
@equiposInn
@equiposInn Жыл бұрын
Hi, thanks for your video. I have a question, I have already connected Google Analytics with my website, if I do the configuration you are talking sending events through Google Tag Manager (server), should I disconnect Google Analytics and my website? , If I keep that connection may be that Google Analytics receives events duplicated, right?
@michelluarasi
@michelluarasi 10 ай бұрын
Hi there, what is the best way to send data from the proxyGTM to sGTM without the GA4 config? We want to avoid loading that script and just forward a few custom events. Thanks!
@antonith5586
@antonith5586 Жыл бұрын
Thank you for the video, I have some doubts before implementing server sider gtm in my website. 1. Does GTM SS provide load balancer? 2. If my GTM SS stopped but my website still send events will the event be lost or it will be received back when GTM SS is back?
@davideghz
@davideghz 6 ай бұрын
il video definitivo!
@lemonizegmbh8308
@lemonizegmbh8308 9 ай бұрын
Very interesting topic! Could you please also do a video on the new transformations tab in the sGTM container? Would be very helpful to get some expert insights and recommendations on what parameters should be removed or what parameters definitely have to stay in order to ensure proper tracking in GA4.
@AnalyticsMania
@AnalyticsMania 9 ай бұрын
I plan to include this in my intermediate/advanced GTM course
@MonaWang-dp1uu
@MonaWang-dp1uu Жыл бұрын
Thank you for this good vedio. As you know, sGTM doesn't support google signals in GA4 now. But we hope GA4 implementation could be delployed in server side to improve website performance and also need to use google signal function in the marketing strategy. Do you know how to enable google signals with the implementation of GA4 in sGTM?
@adsoptimering1484
@adsoptimering1484 4 ай бұрын
Will server side tracking help me get the data, thats otherwise lost, when users reject cookies. Such as events data attributed to marketing channels?
@vanessabonifaz4442
@vanessabonifaz4442 Жыл бұрын
Hello! Thank you for your video! I've been getting the same error after I've implemented this configuration on two websites now, idk if you could help me out. It's an anomaly detection alert in GA4 (under "Reports snapshot"). It detects a "drop in users" on the date I've implemented GTM Server Side and it drops the users down to 1 or 0 users, which I find extremely odd since the average number of users for these websites has been about 60K a day, before implementing GTM Server Side. Please let me know if you've seen this before and if you know how I could fix it. Thanks!
@Murtaza010
@Murtaza010 5 күн бұрын
"Send to server container" option is not available in my GA4 tag settings. The GA4 tag now uses Google Tag.
@agung_laksana
@agung_laksana Жыл бұрын
Hi Julius, on minute 17:52 it seems that you tick 2 boxes in the GA4 Configuration. will it make double/duplicate events recorded on GA4 dashboard eventually? when GA4 event header_click is triggered, I assume it will send to 2 events (duplicate) 1. Directly from Web Container -> GA4 Server (because of the first tick box) 2. From Web Container -> Server Container -> GA4 Server (because of the second tick box) I assume if we want to use server side, then I we only need the second tick box (Send to server container) only. Thank you very much for another helpful video. You are a legend. Thank you
@JosianneLThessereault
@JosianneLThessereault Жыл бұрын
Thank you for this video, it's very helpful. I have a few questions regarding GCP: - Is the testing environment sufficient for a website that receives little traffic, or eventually it will imperatively need to be upgraded to flexible environment? - Can we host multiple projects on a server, or is it 1 website : 1 (or 2-3) server? - And finally, I do know it is recommended to have around 3 servers per project, is this really necessary? Thank you again for this content, it was clear and straight to the point.
@AnalyticsMania
@AnalyticsMania Жыл бұрын
1. No 2. You can use the same server for multiple websites because you can connect multiple custom domains to the same App engine project 3. Have at least two. If one fails, the other will help (to some extent). 3 servers are better, but on my blog, I use two (I get ~100k visitors a month, no major spikes in traffic)
@user-kv4ub2oc9i
@user-kv4ub2oc9i 7 ай бұрын
Hmm, that's interesting. Thanks for explaining. So I can use server-side instead of web GA4 pixel but I still need web GTM to cover all other pixels that do not support server-side tech, right?
@levipadre
@levipadre 2 ай бұрын
Hi, thank you for the great video. Just one question about it. Should I just replace the old GTM ID with the new server-side version GTM ID?
@aragepios1080
@aragepios1080 18 күн бұрын
Hey Julius, how can somebody setup gtm ss with 2 different ga4 properties?
@MartinBatema
@MartinBatema Жыл бұрын
Do I need a web container for this to work? And how do I connect these with eachother?
@GorgonPalace
@GorgonPalace 7 ай бұрын
Hi, thanks for sharing your knowledge. I was actually using your tutorial to connect my sGTM with Google server, but at last stage I got stuck. When I want to send GA4 page_view to server, my request gets blocked by CORS. I have also created subdomain, so I am sending from it to Google server. I found no tutorial, blog post, anything about it. I also couldn't find such setup in Google Cloud. Can you help? Thanks
@litoid
@litoid 2 ай бұрын
Minute 38, i did paste the new custom domain server container URL. BUT... at 38:46... in web container GA4 config... things have changed. I no longer see this "Send to server container" option anymore. So what has to be done here to send events from web container to server container? inside server container there's no tag for google analytics 4 events... and i dont want to use custom code for each event... any ideas?
@user-cw3kj7oi7b
@user-cw3kj7oi7b 8 ай бұрын
How can I set this up without the Google Analytics configuration tag (now Google tag)?
@user-ov2ev3zr4n
@user-ov2ev3zr4n 4 ай бұрын
technically, I am wondering why the proxiing is an issue - wouldnt it even be good from a privacy point of view, as all requests will come from one single IP address (cloudflares)?
@thiagoushikoshi697
@thiagoushikoshi697 6 ай бұрын
Really awesome content, Julius! Can you recommend me any videos/articles addressing GTM client and the benefits of using it? You mentioned it briefly in 14:50 . Thanks!
@AnalyticsMania
@AnalyticsMania 6 ай бұрын
I talk about clients in my GTM course www.analyticsmania.com/courses/intermediate-google-tag-manager-course/
@AliSolanki
@AliSolanki 8 ай бұрын
Hey! Really loved the video. Howevervat 17:52 the Google Analytics Configuration Tag has now changed to Google Tag and there is no option for "send to server container". How do I fix this and send data to server container?
@AliSolanki
@AliSolanki 8 ай бұрын
Ahh solved it: you've to go over to the tag configuration for Google Tag (previously Google Analytics Configuration Tag) and add configuration settings -> configuration parameter -> server_container_url and add your server url there
@NAYANPATIL-ri5ul
@NAYANPATIL-ri5ul 3 ай бұрын
can anyone help me with gtm is that releated to field of data engineer
@dawidp749
@dawidp749 6 ай бұрын
About 16:30 or something like that. Don’t ignore this error, this error just says that no client grabbed this data which is good as they should grab only Post requests with some specified json payload
@Godesokker
@Godesokker 6 ай бұрын
I cant find there I need to copy the url in ga4?
@DaleStrickland
@DaleStrickland Жыл бұрын
Fantastic video, thank you. My question-I already have a client-side GTM setup (via standard GTM setup) that I'm trying to migrate as much as possible to SGTM to improve website performance. Do you have content on what elements need to stay on the website and what elements can be moved to the server container? e.g. - Tags/Triggers - Pixels/Tracking Codes - GA4 Custom Events - Click Tracking + Conversion Tracking based on page views/events
@AnalyticsMania
@AnalyticsMania Жыл бұрын
This is up to you and your skills. I teach a lot more about SGTM in my course www.analyticsmania.com/courses/intermediate-google-tag-manager-course/
@DaleStrickland
@DaleStrickland Жыл бұрын
@@AnalyticsMania Thank you. Did a bit of digging and it looks like many of my items can be moved to the server
@anshidbabu7241
@anshidbabu7241 Жыл бұрын
Hi Julius, just one question, Do we need to set up a separate property in GA4 for server data? Also, How do I customize the event data received from client slide GA4 in the server-side GA4?
@AnalyticsMania
@AnalyticsMania Жыл бұрын
1. No 2. In the GA4 tag in the SGTM container
@anshidbabu7241
@anshidbabu7241 Жыл бұрын
@@AnalyticsMania Thank you Julius ❤️ Finally, Do we need to create seperate tags in SGTM container to send futher to GA 4 from the tags/events recieved from the GA4 client What i meant is, i havent seen any tags fired in sgtm container while sending events from client side, only tag fired is GA 4 configuration tags along with variables So if i am not wrong, we need to create tags using this data and need to send again to GA4
@summusmarketing6510
@summusmarketing6510 2 ай бұрын
Hi! In 2024, the GA4 event tag does not have the "send to server-side container" option anymore. Could you tell me what has changed in the process?
@AnalyticsMania
@AnalyticsMania 2 ай бұрын
My intermediate/advanced GTM course is updated with new instructions
@Lennardwil
@Lennardwil Жыл бұрын
Thanks for the good Video it helps a lot. I have one question. Forwarding information from google Products will not be the problem since we have tag templates available. But lets assume we have some third party tool which is build in with an custom html tag in the client side GTM. I mean I could send the Data I need for example with the GTM Tag. For example price and product id. But how do I proceed on the server side GTM with these information, since there is no tag option to send the information via a custom html. Do we have to wait for other companies to create server side tag options? How do we proceeed with other advertisers where there is a template in GTM client but not server side?
@AnalyticsMania
@AnalyticsMania Жыл бұрын
You would need to write a Client (this requires JavaScript knowledge and Sandbox JS) to parse that data If you have a provider that does not support SGTM yet, you need to wait until they offer such option. You can also investigate "Data tag" and "Data client" by Stape
@user-by1vg2pc6j
@user-by1vg2pc6j 5 ай бұрын
Is there a way to use the same server-side for diferente websites and than configure a client and tag of GA4 for each website on the same server container?
@AnalyticsMania
@AnalyticsMania 5 ай бұрын
Yes, but it's more complicated to explain in a comment. I explain that in my intermediate/advanced GTM course
@jackkeith1783
@jackkeith1783 Жыл бұрын
Do I need to setup a SGTM for each domain I have in my account?
@Mukirawat310
@Mukirawat310 Жыл бұрын
yes
@leonhartje731
@leonhartje731 Жыл бұрын
Do you Know, how to mapping Item Arrays die GA4. Some Shops does Not have a GA4 recommendet DataLayer.
@AnalyticsMania
@AnalyticsMania Жыл бұрын
If they have GA3 data layer, GA4 supports that. If those shops have a different data layer - then either ask a developer to implement the correct DL, or you will need to learn how to write JavaScript and then build the correct structure yourself (which is the most time-consuming option if you don't have coding experience)
@leonhartje731
@leonhartje731 Жыл бұрын
@@AnalyticsMania okay akd where I have to Insert the Script in the Tag Manager? Is the Code the value of the items Part in The Event Tag? So items = The Javascript Code ass a variable value = value varianle Currency = cur variable
@AnalyticsMania
@AnalyticsMania Жыл бұрын
Yes, items will have to be a custom JS variable that outputs the correct data structure
@leonhartje731
@leonhartje731 Жыл бұрын
@@AnalyticsMania okay I have to put it on the Position, where normaly the Item variable is?
@AnalyticsMania
@AnalyticsMania Жыл бұрын
I don't understand the question. You need to create a variable that returns the list of products. Explaining the details of this is complicated. This is out of scope of comments under a video.
@victorkimura1
@victorkimura1 5 ай бұрын
Thank you for that video. Do you have a tutorial on the Google Tag Manager Web Container client type?
@AnalyticsMania
@AnalyticsMania 5 ай бұрын
Yes, check my channel
@Yas9in
@Yas9in Жыл бұрын
Thank you so much for your video. But I'm honestly a little confused. Does this setup actually increase tagging efficiency and allow for better ad optimisation and analytics insight? E.g; can we set up Facebook CAPI and other similar tools? Or is there a different setup (e.g a developer harcoding events on browser side) that is better than this solution?
@Yas9in
@Yas9in Жыл бұрын
Seems to me tagging won't actually be any better if everything going to the server is just a forwarded version of stuff coming from client side container
@dmitrypodoleev6992
@dmitrypodoleev6992 Жыл бұрын
Hi, I am thinking about this too. If anything is blocked from the client side because of ad blockers for example, how sGTM will get that info? What's the sense of sGTM then.
@pinklabprodutosdigitais
@pinklabprodutosdigitais 6 ай бұрын
hi Julius, amazing content as always, thank you. I have a challenge here with a client who has over 200 domains from which a GTM (both web and server) will receive events. They are all very similar, but come from different domains. In this case, can we use the original Google Cloud URL instead of creating more than 200 hundred custom subdomains and pointing each one to the server URL? I really apreciate if you can answer. Thanks!
@AnalyticsMania
@AnalyticsMania 6 ай бұрын
No
@phillmaddickotter
@phillmaddickotter Ай бұрын
So with new SST - will we all now incur additional cost from Google Cloud services?
@AnalyticsMania
@AnalyticsMania Ай бұрын
yes. From Google Cloud or another provider where you host your SGTM server
@OtterLabs
@OtterLabs Ай бұрын
@@AnalyticsMania - Interesting. So something to factor in with clients then.
@user-ov5jh7ow1x
@user-ov5jh7ow1x Күн бұрын
How to learn it deeply?
@utopiankreations
@utopiankreations 11 ай бұрын
Can we place all SGTM in one Cloud Server to offset costs? Each cloud server will be roughly 40 - 120 per month correct? My domains are niche specific with mid level traffic. Could I place all on one cloud server? My confusion lies in the cost benefit here cause server side is very helpful when you do the custom domain so it registers as 1st party, not 3rd. But that would mean minimum of $40 x 3 instances = $120 per domain. Which could be very costly indeed. Just trying to figure out if its worth the $$$ Thank you kindly for your very informative videos. I got everything set up, now just pending shell activation. haha but then realized toward the end of your video that it may be very costly indeed haha
@AnalyticsMania
@AnalyticsMania 11 ай бұрын
You can map several subdomains/domains to same app engine, thus you can use the same setup for multiple websites. All in 1st party context.
@utopiankreations
@utopiankreations 11 ай бұрын
@@AnalyticsMania do you have any tutorials for that? If I can get that locked down I think I can make the budget feasible. Thank you kindly for your detailed tutorials. I am learning a ton!
@JillianDcrews
@JillianDcrews 8 ай бұрын
Hello ! Thank you for your precious help but Google tag replace GA4 in Google Tag manager since few days, is it possible to have an update of this server side by side tuto specially for facebook ads... You will save my life ^^
@AnalyticsMania
@AnalyticsMania 8 ай бұрын
Nothing changed except the server_container_url parameter that you must now use in your GA4 tags
@JillianDcrews
@JillianDcrews 8 ай бұрын
Ok I will try thank for your quick reply !@@AnalyticsMania
@JillianDcrews
@JillianDcrews 8 ай бұрын
In GA4 tags" You mean in GA4 event tag ? @@AnalyticsMania
@scaryviking8657
@scaryviking8657 7 ай бұрын
You might want to update your video: Once you have automatically provisioned your tagging server, Google Cloud no longer creates an App project for you, like you show in your video. So you can no longer access "Custom Domains" under "App Engine" --> "Settings", like you do @ 33:34 Please let me know if you have a solution for this. I have tried configuring an App project myself, but it doesn't seem to work.
@AnalyticsMania
@AnalyticsMania 7 ай бұрын
Currently, I am putting 100% of my time to update videos in my paid courses. The updated server-side tagging content is coming soon to my intermediate/advanced GTM course www.analyticsmania.com/courses/intermediate-google-tag-manager-course/
@user-xr4oo2xp7q
@user-xr4oo2xp7q Ай бұрын
This is not entirely useful as the brave browser and other ad-blockers will block the scripts all together making the whole point of server side useless.
@AnalyticsMania
@AnalyticsMania Ай бұрын
Unless you proxy things like GTM or GA4 through your own domain/subdomain
@user-xr4oo2xp7q
@user-xr4oo2xp7q Ай бұрын
@@AnalyticsMania Do you have any tutorial on that?
@KS-fz7hh
@KS-fz7hh 10 ай бұрын
For me only page view is forwarded for all other events it just says it was not triggered even though they show up on the summary tag of the debug mode.
@user-zn5tn9br3b
@user-zn5tn9br3b Ай бұрын
THX for teaching, good explaining, I want to ask , how cant I do both web and server tracking ?? I found that after setting server container url, all events go to the server container url, and dont go to the original ga url, but I want to use both, do you know how to do that ???
Google Tag Manager Tutorial 2021 for Beginners (with Google Analytics 4 examples)
1:39:14
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 239 М.
КАХА и Джин 2
00:36
К-Media
Рет қаралды 4 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 4,1 МЛН
No GA4 Configuration Tag?! New Google Tag in GTM
10:19
MeasureSchool
Рет қаралды 33 М.
[2023] How To Set Up Facebook Conversion API w/ Google Tag Manager (Server-Side)
43:22
Google Ads Server Side Tracking (With Consent Mode v2)
26:51
Myles Root - Google Ads for eCommerce Brands
Рет қаралды 174
Set up Consent Mode V2 with any cookiebanner in GTM
23:21
Leon Korteweg
Рет қаралды 28 М.
What is Server-Side Tracking in Google Tag Manager?
9:13
MeasureSchool
Рет қаралды 44 М.
Google Tag Manager Tutorial for Beginners (2024) with New Google Tag
1:01:26
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 159 М.
Data Layer in Google Tag Manager || GTM Data Layer Tutorial with examples
22:33
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 144 М.
This Chrome Extension solves ALL your GA4 problems #gamechanger
8:28
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 34 М.
Трагичная История Девушки 😱🔥
0:58
Смотри Под Чаёк
Рет қаралды 375 М.
Индуктивность и дроссель.
1:00
Hi Dev! – Электроника
Рет қаралды 1,5 МЛН
👎Главный МИНУС планшета Apple🍏
0:29
Demin's Lounge
Рет қаралды 487 М.
3.5.A Solar Mobile 📱 Charger
0:39
Gaming zone
Рет қаралды 315 М.