Тёмный

How To Setup Google Analytics 4 Server Side (with GTM) 

Vertex Marketing Agency
Подписаться 18 тыс.
Просмотров 22 тыс.
50% 1

An in-depth video showing you how to set up server-side Google Analytics 4 (GA4) on your website using Google Tag Manager (GTM).
🆘 Need our help to set this up? tracking.vertexmarketingagenc...
🚀 Apply To Work With Our Agency: bit.ly/3b4soz6
▬ Content of this video ▬▬▬▬▬▬▬▬▬▬
00:00 Intro
01:05 Agenda
04:33 How we can help with set up
05:33 Create a GA4 property
06:31 Get the template & copy my setup
07:39 Configure your GA4 events
15:42 Create a server container
18:08 Create a subdomain
23:42 Create a GA4 client & tag
28:34 Proxy GTM
35:08 Testing your setup
38:14 Deploy your server
40:50 Outro
🔗 Links & Resources:
Get my GA4 template: content.vertexmarketingagency...
How to install GTM: • How To Install Google ...
How to Setup Facebook Pixel Standard Events (With GTM): • How to Setup Facebook ...
Goggle Analytics 4 Events: developers.google.com/analyti...
How To Setup Facebook Pixel Advanced Matching (Complete Guide): • How To Setup Facebook ...
Template to proxy GTM: raw.githubusercontent.com/gtm...
Script to deploy your server: bash -c "$(curl -fsSL googletagmanager.com/static/s...)"
🌎 Let's stay connected!
➡️ Join the community: coffeeandmarketing.org/
➡️ LinkedIn: / cedric-potvin

Опубликовано:

 

5 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@helmo78
@helmo78 Год назад
Thanks mate for being generous with your knowledge. Managed to complete all the steps successfully! You got yourself a new sub :)
@arnabbarua2545
@arnabbarua2545 Год назад
IT has been very helpful. really appreciate it. hoping for more
@timshadycpg
@timshadycpg 6 месяцев назад
Best video on paid traffic and conversion tracking I've found and Stumbled accross it. Thank god for you bro!
@shojibads
@shojibads Год назад
Great Video
@thesecretx
@thesecretx Год назад
Nice, thanks for your time
@VertexMarketingAgency
@VertexMarketingAgency Год назад
No problem 👍
@baco82
@baco82 Год назад
Very useful... Just a question. I am stuggling to understand the exact meaning of the option at 24:05 "Default gtag.js paths for specific IDs". Documentation isn't very clear to me. When is it mandatory?
@Freek25
@Freek25 Год назад
Hi Cedric, great video it worked perfectly for me. Thanks a lot. I have one question though. When the whole implementation worked. Do we still need the GA4 client? So you request GTM on your server, which activates GTM there. Which in turn activates the web GA4 tag which activates the GA4 client. Can't the GTM loader client not activate the GA4 tag in the server environment? Thanks PS Do you know in you can keep using the testing environment and not activate the production environment? What are the limits for that? I can't find it.
@florisw3020
@florisw3020 Год назад
Is it essential to activate "Request logging" in the Google Cloud Shell, I have heard that this brings a lot more costs? Looking forward to your reply and thanks for the great video!
@anphung4214
@anphung4214 2 года назад
Thanks Cedric for very useful i formation. I see in Add to Cart event i saw you send page_location parameter, i read somewhere page location is available in G4 by default. Just wondering if adding page_loation will create duplicated parameters or something?
@VertexMarketingAgency
@VertexMarketingAgency 2 года назад
I'm adding the page location because I'm also using GA4 to send events to the FB CAPI. But no it shouldn't duplicate your pageviews.
@ezranewtons4023
@ezranewtons4023 Год назад
Can you recommend any sources to learn this business?
@GorgonPalace
@GorgonPalace Год назад
Hi, you use both versions of GTM in this video, not just sGTM. How would it differ in terms of trigger ONLY for sGTM? (because you put trigger only when client=GA4 - not pageview etc.)
@user-uq5hm7ps3h
@user-uq5hm7ps3h 11 месяцев назад
Hey, Thank you so much for this fantastic video. I am doing this setup right now with GCP and, luckily, landed on your video! I hope you can help me get more clarity. You said if you don't want to send all the events to the server but only some events, you should add the transport_url field under the GA4 config Tag. So my question is, I have ten events configured using the GA4 Tag, and I want to send the "purchase" event via the server. So what I understood from the video is that I should be adding the transport_url and the server link in the GA4 config tag and in my GA4 Event Tag, which I configured for the "purchase" event. Please correct me if I have misunderstood it.
@VertexMarketingAgency
@VertexMarketingAgency 11 месяцев назад
Yes, that sounds accurate!
@user-uq5hm7ps3h
@user-uq5hm7ps3h 11 месяцев назад
@@VertexMarketingAgency Great! Thanks for the support.😃
@user-uq5hm7ps3h
@user-uq5hm7ps3h 11 месяцев назад
@@VertexMarketingAgency Hi, Since cost is the concern, should I also limit the FB CAPI Tag in the server container with an additional condition "Event Name" equal "purchase"? Do you have any advice please?
@arturoisraelperezvargas7261
Hello thank you very much for the video, it was very helpful, however I have a couple of questions: Why if the traffic to the website is from mexico in GA4 detects it in USA? What is the benefit of changing the url of the GTM script and enter the url of the subdomain of our server in GCP? Thank you for your content
@VertexMarketingAgency
@VertexMarketingAgency Год назад
Regarding your first question, I’m not sure… I would need to take a look at your GA4 account. By using your custom subdomain you can remove more traces of Google Tag Manager so this can circumvent ad blockers.
@CaptnT0ast
@CaptnT0ast Год назад
Great info! I've implemented GA4 server-side in GTM and i am unsure if i need to remove/disable my GA4 Base tag from my Web GTM container now that i am streaming all events to my Server-side GTM container and from there sending them to GA. Would keeping the standard GA4 Base tag in Web GTM create duplicate events in GA ? Thanks !
@VertexMarketingAgency
@VertexMarketingAgency Год назад
You’ll want to keep those tags because they’re responsible to send the data to GA4.
@user-zn5tn9br3b
@user-zn5tn9br3b 2 месяца назад
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 ???
@AbhishekKumar-lk6gn
@AbhishekKumar-lk6gn Месяц назад
Hi @VertexMarketingAgency, I did not find any resource which can help in setting connection between Server Side GTM & Cloud RUN with Required Authentication rather than unauthorized authentication. I have a constraint that i can only chose required authentication but this leads to error in the preview of the server. Is there any way i can use service account for authentication between Server side GTM and Cloud Run.
@lukass3310
@lukass3310 Год назад
Hey thank you for the video. Why do I have to use Google Tag Manager when I can send the events directly to GA4 via the curl request?
@VertexMarketingAgency
@VertexMarketingAgency Год назад
If you can achieve all your tracking needs using a curl request, go for it! Usually companies that I work with need custom JavaScript and dataLayer variables but everyone has different needs.
@AbdullahAlAsif
@AbdullahAlAsif Год назад
WoW! This is great! Thank you. Do we need to use both server and Web container for websites? Will it duplicate my data?
@VertexMarketingAgency
@VertexMarketingAgency Год назад
You need both the web and server container but if you’re following my setup from the video it will only send events via the server.
@AbdullahAlAsif
@AbdullahAlAsif Год назад
@@VertexMarketingAgency Thank you. I created the web container before and was tracking form submissions and other tags from there. Now, I have created the server container from your video. Hope that will be enough and the correct setup you are recommending. And, that's what we need? Both container.
@user-zn5tn9br3b
@user-zn5tn9br3b 2 месяца назад
@@AbdullahAlAsif Will the ga4 delete same event_id data ???? like fb did ???
@ZoiKousteni
@ZoiKousteni 2 месяца назад
Thank you for the very detailed video! Since plenty of things have changed since that video was published I have to ask: after adding my correct server container URL as a server_container_url event parameter for every GA4 tag I want to be sent through my SS Container into my SS GA4 Property, my web-container-based GA4 Property stopped tracking, and everything got transferred to the SS one. Is this normal? Aren't they supposed to be working side by side, essentially duplicating the events? (having the page_view GA4 tag for example being send both from the web container connected to a GA4 Property *and* from the server side container also connected to a GA4 Property)
@user-zn5tn9br3b
@user-zn5tn9br3b 2 месяца назад
I have the same question!!!!
@VertexMarketingAgency
@VertexMarketingAgency Месяц назад
That’s completely normal. With GA4 it’s either web or server (you can’t do both).
@stat11
@stat11 11 месяцев назад
Thanks for going into the depth on this. Unfortunately I tried this and about 30 mins after I added the DNS settings my server crashed. That is with leaving out the last line item you said not to add. So not sure this will work for me, at least not the way things are set up now.
@stat11
@stat11 11 месяцев назад
One more thing to add. Google Cloud suggests that we change the A Record to their IP address. I think what is supposed to happen is we should be creating a subdomain on our webserver and then pointing that A record to Googles IP address, not the main site's IP. Am I correct in assuming that? If not, I have no idea how the subdomain works because it will result in an immediate IP conflict once you add the new A record and point it to the IP address they provide when creating a custom domain. If that is the case, it might be helpful to add an annotation in your video to clarify that so others don't take down their website like I did. LOL. BTW its at the 21:52 mark in the video. (Full Disclosure: Im new to the whole server side configurations)
@jordigodard465
@jordigodard465 Год назад
Hello, thanks for the great value you provided on this video. I installed GA4 via sGTM, it works correctly, BUT I'm missing some crucial values such as "source" "medium" user location... I've read that google signals is not available with sGTM and GA4 atm. Any idea how we could bypass? Maybe combining server side tag with a browser tag to send the user IP etc, but then does GA4 make the link between the 2 tags? I was thinking about firing a GA4 normal tag only on the landing page in order to get those values, and then only the server side tag. Not sure if it should work or no. Can you provide insights on that? Thanks! :) Jordi
@TheHegwin
@TheHegwin Год назад
Actually I have same issue - missing source/medium
@jordigodard465
@jordigodard465 Год назад
@@TheHegwin yeah, I haven’t find a way out, I’m thinking about removing the server side and use a normal setup instead since the values lost are crucial in the analytics of the data’s for ads decisions…
@aleksandrtiupikov5038
@aleksandrtiupikov5038 2 года назад
Hey Cedric. I set it up following your video and it works fine. But my GA4 client doesn't collect any data that's coming from my subdomain. I see all the events in the GTM preview but they are just not getting sent to the ssGTM container. I didn't manage to find any sort of solution anywhere. Could you please help with that?
@VertexMarketingAgency
@VertexMarketingAgency 2 года назад
Double check your client GA4 trigger and make sure to update your transport URL (GA4 web tag).
@RSStorysMedia
@RSStorysMedia Год назад
Hello brother. I hope you doing great work. I have some questions. How do you import the GTM loader Custom template? I am trying to import it but I am a failure.I hope you response my comments ..
@VertexMarketingAgency
@VertexMarketingAgency Год назад
If you’re getting an error you must be downloading it wrong (like wrong format) or you’re not uploading it to the right place.
@simonbrooks399
@simonbrooks399 Год назад
Make sure its a web container and the json doesnt contain html/css code
@amirbinnazar3468
@amirbinnazar3468 6 месяцев назад
Haven't received the GA4 template on mail, can someone help?
@hendrikbredenhann1815
@hendrikbredenhann1815 Год назад
I am having problem saving the template as a tpl file. How does the other way of adding the client work?
@VertexMarketingAgency
@VertexMarketingAgency Год назад
It has to do with your computer settings.
@philipkruemel2078
@philipkruemel2078 10 месяцев назад
just to have the full info on that.. How do you shut down the server in the cloud shell? e.g. the client wants to stop server side tagging because of the incurring costs
@VertexMarketingAgency
@VertexMarketingAgency 10 месяцев назад
You need to use the terminal to shut it down (same way you turned it on) :)
@amirbinnazar3468
@amirbinnazar3468 6 месяцев назад
Can u please share the GA4 template, incase if u still have it?
@Kevin8soberS
@Kevin8soberS Год назад
It's IMPOSSIBLE to add more than one "A" or "AAAA" record on Shopify and so I get an error when I preview the server. HELPPPPPPPPPPP IM SO CLOSE!
@moustaphadiaw7101
@moustaphadiaw7101 4 месяца назад
Why do we create a web container to then send to the server container? Doesn’t that defeat the purpose of creating a server for first party tracking and circumventing adblockers?
@moustaphadiaw7101
@moustaphadiaw7101 4 месяца назад
Did some reading on the tag platform learning center by google. They said you have to have web to send to server. Still not 100% clear but im assuming the web is still sending to your own server which then circumvents ad block
@mutibagger1699
@mutibagger1699 2 года назад
Please also talk about TikTok ads
@VertexMarketingAgency
@VertexMarketingAgency 2 года назад
Thanks for the sugestion :)
@stoopkid7134
@stoopkid7134 2 года назад
I'm unable to download your template so I decided to create it manually. However, when I go to create a Facebook Pixel tag I only see the option for Conversion API, not like what you show here. Any advice?
@VertexMarketingAgency
@VertexMarketingAgency 2 года назад
The Facebook Pixel tag can be found in the web container (not server).
@iCreeative
@iCreeative Год назад
Does GA4 Server-Side solves anything with GDPR policy?
@VertexMarketingAgency
@VertexMarketingAgency Год назад
It potentially could but you would need to first consult with a lawyer to understand what you can collect and what you can't.
@jaryah5288
@jaryah5288 2 года назад
Hey for some reason I am not getting source/medium data anymore via server
@VertexMarketingAgency
@VertexMarketingAgency 2 года назад
This should not be happening... Try going over all the steps again and make sure you're adding UTM's to your campaigns.
@user-xr4oo2xp7q
@user-xr4oo2xp7q 2 месяца назад
the custom_domain thing doesn't work. client tag container doesn't connect at all. shows not found
@VertexMarketingAgency
@VertexMarketingAgency 2 месяца назад
It must be an issue with the way you connected your domain. I recommend talking to you DNS provider.
@AlexRodriguez-nn4ch
@AlexRodriguez-nn4ch Год назад
Does this setup work with Shopify websites?
@VertexMarketingAgency
@VertexMarketingAgency Год назад
It's perfect for Shopify
@LogenProof
@LogenProof Год назад
@@VertexMarketingAgency I'm a bit confused - when connecting google analytics and facebook CAPI - isn't all of this already done automatecly?
@micharogalski1228
@micharogalski1228 7 месяцев назад
hi, how can I download your GA4 template?
@VertexMarketingAgency
@VertexMarketingAgency 7 месяцев назад
The link is in the description of the video :)
@micharogalski1228
@micharogalski1228 7 месяцев назад
@@VertexMarketingAgency I try, but I don't receive emails from your system (I try on 2 differente emails and checked spam folder) and the Was no mail ;-(
@amirbinnazar3468
@amirbinnazar3468 6 месяцев назад
I haven't also received the mail@@VertexMarketingAgency
@LOVEMENOT1
@LOVEMENOT1 Год назад
Getting this error when adding template: JSON parsing error: mismatched input ':' expecting {'{', '['}
@VertexMarketingAgency
@VertexMarketingAgency Год назад
Please make sure you download it in the right format :)
@LOVEMENOT1
@LOVEMENOT1 Год назад
@@VertexMarketingAgency I did, it takes me to a site with the code and then I right click and download it. It was .tpl file type.
@emilbranth5092
@emilbranth5092 Год назад
me too
@emilbranth5092
@emilbranth5092 Год назад
Oh. You have to save as text only
@rockou13
@rockou13 2 года назад
Hi Cedric, how are you? I hope you are all very well. Cedric, I recently made an inquiry via your website; if you can reply back to me I would really appreciate it. Thank you!
@VertexMarketingAgency
@VertexMarketingAgency 2 года назад
Hey Juan, just did :)
@rockou13
@rockou13 2 года назад
@@VertexMarketingAgency Cedric!, thank you so much for your prompt reply. I do apologize for getting in touch with you this way but since I am in need of getting everything fixed I had to contact you even if I had to comment your videos LOL. Thanks for the amazing content.
@ashutoshbhardwaj1189
@ashutoshbhardwaj1189 6 месяцев назад
No email is coming
@mindmoodmore
@mindmoodmore Год назад
Your comment about "DO NOT CHANGE CNAME RECORDS!" on DNS records is wrong. Changing CNAME won't break your website. The only thing to keep in mind when setting CNAME record is to give it an alias - a name of your subdomain (only the name you chose, without your actual domain). Setting only CNAME is easier and faster than adding 8 A and AAAA records.
@VertexMarketingAgency
@VertexMarketingAgency Год назад
What you’re saying is logical but I’ve had bad experiences in the past with adding the CNAME. So I still stick with my original comment :)
@EmmaCookson-dc3kx
@EmmaCookson-dc3kx 3 месяца назад
Why do I need to create a custom domain and verify via DNS records, can I not just use the default URL given to me when I've set up the server container through google cloud? Would that not work correctly for what I need to do with a transport URL? @VertexMarketingAgency
@VertexMarketingAgency
@VertexMarketingAgency 3 месяца назад
Yes, it would get the job done but using your own custom subdomain helps keeping it in a first party context.
@geldinvestieren
@geldinvestieren Год назад
I am already loosing some hair dude. 🥸
Далее
НУБ ИЩЕТ ЖЕНУ В GTA SAMP
22:34
Просмотров 197 тыс.
Google Analytics 4 Tutorial 2024 | Step by Step
55:48
What is Server-Side Tracking in Google Tag Manager?
9:13
Google Tag Manager Simplified - A Straightforward Guide
1:08:03
Google Tag Manager Tutorial for Beginners (2023)
1:02:12
How to Set Up GA4 E-commerce Tracking (Complete Guide)
12:28
Server-side Tagging In Google Tag Manager
25:22
Просмотров 35 тыс.
НУБ ИЩЕТ ЖЕНУ В GTA SAMP
22:34
Просмотров 197 тыс.