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

Sdílet
Vložit
  • čas přidán 28. 05. 2024
  • 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 CZcams 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 CZcams channel / @analyticsmania
    #googletagmanager
  • Věda a technologie

Komentáře • 97

  • @user-ll4be3xo1e
    @user-ll4be3xo1e Před 6 měsíci +1

    l'unico video che spiega in modo chiaro ed esaustivo il server side tagging

  • @michaelcharters
    @michaelcharters Před 2 měsíci

    This is so helpful! Your technical and teaching abilities are excellent. Thank you for putting this training together for us.

  • @RuiAlbertoMaia
    @RuiAlbertoMaia Před rokem

    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 Před měsícem

    Thanks for the session. It's very helpful and you've explained most concepts. I got this SST thing now, will explore more 👍

  • @Afzalhanif7
    @Afzalhanif7 Před rokem

    Thank you so much. Really helpful video.

  • @BaljitSingh-bu9xp
    @BaljitSingh-bu9xp Před rokem

    Great Video!! Thanks for providing the information....:)

  •  Před 10 měsíci

    thank you very much Julius for this video. Always great quality videos tutorials and courses. You are my Obi-wan Kenobi of Tracking 💪

  • @user-gg1si4wd4w
    @user-gg1si4wd4w Před 2 měsíci

    Your videos are helpful for so many of us. Thank you.

  • @vytautasdrebulis4862
    @vytautasdrebulis4862 Před rokem +2

    Jsut amazing video. Managed to set up everything with your tutorial without any issues. Keep up the good work

  • @Trip_Moments_Captured
    @Trip_Moments_Captured Před 7 měsíci

    Wonderful explanation.

  • @user-zf7vn3pi8d
    @user-zf7vn3pi8d Před rokem +3

    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

  • @anahitkhachatryan1648
    @anahitkhachatryan1648 Před 7 měsíci

    This was a lot!)) Thank you!

  • @learnwithtoriqul
    @learnwithtoriqul Před 9 měsíci

    Thanks for sharing this video

  • @marciosantos7480
    @marciosantos7480 Před rokem

    very helpful thank you

  • @Bartopia_app
    @Bartopia_app Před 2 měsíci

    Your amazing this has been so helpful!

  • @lemonizegmbh8308
    @lemonizegmbh8308 Před 9 měsíci

    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  Před 9 měsíci +1

      I plan to include this in my intermediate/advanced GTM course

  • @ate787
    @ate787 Před rokem +6

    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.

  • @mazhermahmood6672
    @mazhermahmood6672 Před 21 dnem

    Beautiful explanation!!

  • @MonaWang-dp1uu
    @MonaWang-dp1uu Před rokem +1

    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?

  • @anondontwant
    @anondontwant Před 3 měsíci

    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?

  • @thiagoushikoshi697
    @thiagoushikoshi697 Před 6 měsíci

    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  Před 6 měsíci +1

      I talk about clients in my GTM course www.analyticsmania.com/courses/intermediate-google-tag-manager-course/

  • @davideghz
    @davideghz Před 6 měsíci

    il video definitivo!

  • @levipadre
    @levipadre Před 2 měsíci

    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?

  • @antonith5586
    @antonith5586 Před rokem

    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?

  • @user-kv4ub2oc9i
    @user-kv4ub2oc9i Před 7 měsíci

    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?

  • @agung_laksana
    @agung_laksana Před rokem

    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

    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  Před rokem

      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)

  • @DoomCatcher
    @DoomCatcher Před 9 měsíci

    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?

  • @vanessabonifaz4442
    @vanessabonifaz4442 Před rokem

    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!

  • @equiposInn
    @equiposInn Před rokem

    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?

  • @victorkimura1
    @victorkimura1 Před 5 měsíci

    Thank you for that video. Do you have a tutorial on the Google Tag Manager Web Container client type?

  • @AliSolanki
    @AliSolanki Před 7 měsíci +2

    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 Před 7 měsíci +7

      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

  • @DaleStrickland
    @DaleStrickland Před rokem

    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  Před rokem

      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 Před rokem

      @@AnalyticsMania Thank you. Did a bit of digging and it looks like many of my items can be moved to the server

  • @michelluarasi
    @michelluarasi Před 10 měsíci

    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!

  • @dawidp749
    @dawidp749 Před 6 měsíci

    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

  • @Lennardwil
    @Lennardwil Před rokem +1

    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  Před rokem

      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

  • @MartinBatema
    @MartinBatema Před rokem

    Do I need a web container for this to work? And how do I connect these with eachother?

  • @GorgonPalace
    @GorgonPalace Před 6 měsíci

    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

  • @pinklabprodutosdigitais
    @pinklabprodutosdigitais Před 6 měsíci

    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!

  • @adsoptimering1484
    @adsoptimering1484 Před 4 měsíci

    Will server side tracking help me get the data, thats otherwise lost, when users reject cookies. Such as events data attributed to marketing channels?

  • @anshidbabu7241
    @anshidbabu7241 Před rokem

    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  Před rokem +1

      1. No
      2. In the GA4 tag in the SGTM container

    • @anshidbabu7241
      @anshidbabu7241 Před rokem

      @@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

  • @Murtaza010
    @Murtaza010 Před 2 dny

    "Send to server container" option is not available in my GA4 tag settings. The GA4 tag now uses Google Tag.

  • @Yas9in
    @Yas9in Před rokem +3

    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 Před rokem

      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 Před rokem

      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.

  • @aragepios1080
    @aragepios1080 Před 16 dny

    Hey Julius, how can somebody setup gtm ss with 2 different ga4 properties?

  • @user-ov2ev3zr4n
    @user-ov2ev3zr4n Před 4 měsíci

    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)?

  • @user-cw3kj7oi7b
    @user-cw3kj7oi7b Před 8 měsíci

    How can I set this up without the Google Analytics configuration tag (now Google tag)?

  • @user-by1vg2pc6j
    @user-by1vg2pc6j Před 5 měsíci

    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  Před 5 měsíci

      Yes, but it's more complicated to explain in a comment. I explain that in my intermediate/advanced GTM course

  • @jackkeith1783
    @jackkeith1783 Před rokem +2

    Do I need to setup a SGTM for each domain I have in my account?

  • @litoid
    @litoid Před 2 měsíci

    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?

  • @JillianDcrews
    @JillianDcrews Před 7 měsíci

    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  Před 7 měsíci

      Nothing changed except the server_container_url parameter that you must now use in your GA4 tags

    • @JillianDcrews
      @JillianDcrews Před 7 měsíci

      Ok I will try thank for your quick reply !@@AnalyticsMania

    • @JillianDcrews
      @JillianDcrews Před 7 měsíci

      In GA4 tags" You mean in GA4 event tag ? @@AnalyticsMania

  • @Godesokker
    @Godesokker Před 6 měsíci

    I cant find there I need to copy the url in ga4?

  • @summusmarketing6510
    @summusmarketing6510 Před 2 měsíci

    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  Před 2 měsíci

      My intermediate/advanced GTM course is updated with new instructions

  • @utopiankreations
    @utopiankreations Před 11 měsíci

    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  Před 11 měsíci +1

      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 Před 11 měsíci

      @@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!

  • @leonhartje731
    @leonhartje731 Před rokem +1

    Do you Know, how to mapping Item Arrays die GA4. Some Shops does Not have a GA4 recommendet DataLayer.

    • @AnalyticsMania
      @AnalyticsMania  Před rokem

      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 Před rokem

      @@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  Před rokem

      Yes, items will have to be a custom JS variable that outputs the correct data structure

    • @leonhartje731
      @leonhartje731 Před rokem

      @@AnalyticsMania okay I have to put it on the Position, where normaly the Item variable is?

    • @AnalyticsMania
      @AnalyticsMania  Před rokem +1

      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.

  • @NAYANPATIL-ri5ul
    @NAYANPATIL-ri5ul Před 3 měsíci

    can anyone help me with gtm is that releated to field of data engineer

  • @phillmaddickotter
    @phillmaddickotter Před 29 dny

    So with new SST - will we all now incur additional cost from Google Cloud services?

    • @AnalyticsMania
      @AnalyticsMania  Před 29 dny +1

      yes. From Google Cloud or another provider where you host your SGTM server

    • @OtterLabs
      @OtterLabs Před 29 dny

      @@AnalyticsMania - Interesting. So something to factor in with clients then.

  • @scaryviking8657
    @scaryviking8657 Před 7 měsíci

    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  Před 7 měsíci

      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 Před měsícem

    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  Před měsícem

      Unless you proxy things like GTM or GA4 through your own domain/subdomain

    • @user-xr4oo2xp7q
      @user-xr4oo2xp7q Před měsícem

      @@AnalyticsMania Do you have any tutorial on that?

  • @KS-fz7hh
    @KS-fz7hh Před 10 měsíci

    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 Před 27 dny

    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 ???