Regarding the second part of the code from GTM, shown at 2:28, how did you implement it via Zaraz? This code is an extra piece that needs to be placed after the tag
By adding custom HTML with script tag to include GTM, you are not benefiting out of Cloudflare's Zaraz. Also, "At DNS level" is not even a thing. Cloudflare is not doing anything at "DNS level" except well, being your DNS. Proxy is not DNS and offloading scripts (which is not what is done here) in Cloudflare's Edge using Zaraz is not a process that would be described as doing something "at DNS level".
Everyone has different levels of sophistication when it comes to this type of stuff. You understand the difference between DNS, proxy, nameservers, etc... some do not. Most marketers (our target market) will not understand all those nuances. Still maybe I could have phrased it better. - Stockton
Hi, thanks for the video. Super easy to follow. I wonder, if you do it like this any cookie/script blocker would still disable GTM, right? The idea of server-side tagging is that you bypass blockers for third-party cookies etc. How do you get around that without having a standardtag in zara (eg. for UA there is one).
Yes, it can still be blocked even when loading from Zaraz. One alternative would be to add "Zaraz" event snippets to your page and not use GTM at all. Instead of a dataLayer push you would send a zaraz track event. I'm pretty sure it is possible to have the track event proxied through your own domain too but I'm not 100% sure on that.
It's lacking a bit on the variable side of things. You can't do some of the fun things that you could do with custom JavaScript variables for example. But for a lot of cases where you need just a tag and a trigger and it's pretty straight forward, yes. - Stockton
Just depends on how complex your set up is! Usually we set up server side GTM as opposed to this method but wanted to make sure it was noted Hope you found a great solution!
amazing video, can you make video on setting up facebook pixel and custom events using zaraz?
We don’t have any RUclips videos on this at the moment. Thanks for the feedback!
-JJ
Regarding the second part of the code from GTM, shown at 2:28, how did you implement it via Zaraz? This code is an extra piece that needs to be placed after the tag
This code is just in case Java Script will not load. So technically you dont need it as if it fails this way you will have bigger problems.
- JJ
Hi, I really love your videos. Stuff I can't find anywhere else.God bless
Thank you for your share!
By adding custom HTML with script tag to include GTM, you are not benefiting out of Cloudflare's Zaraz. Also, "At DNS level" is not even a thing. Cloudflare is not doing anything at "DNS level" except well, being your DNS. Proxy is not DNS and offloading scripts (which is not what is done here) in Cloudflare's Edge using Zaraz is not a process that would be described as doing something "at DNS level".
Everyone has different levels of sophistication when it comes to this type of stuff. You understand the difference between DNS, proxy, nameservers, etc... some do not. Most marketers (our target market) will not understand all those nuances. Still maybe I could have phrased it better.
- Stockton
Hi, thanks for the video. Super easy to follow. I wonder, if you do it like this any cookie/script blocker would still disable GTM, right? The idea of server-side tagging is that you bypass blockers for third-party cookies etc. How do you get around that without having a standardtag in zara (eg. for UA there is one).
Yes, it can still be blocked even when loading from Zaraz. One alternative would be to add "Zaraz" event snippets to your page and not use GTM at all. Instead of a dataLayer push you would send a zaraz track event.
I'm pretty sure it is possible to have the track event proxied through your own domain too but I'm not 100% sure on that.
Can zaraz be a complete replacement for tag manager? If not, what are the things tag manager does that zaraz cannot?
It's lacking a bit on the variable side of things. You can't do some of the fun things that you could do with custom JavaScript variables for example. But for a lot of cases where you need just a tag and a trigger and it's pretty straight forward, yes.
- Stockton
Is it possible to tell Zaraz the order in which to load the scripts or to only load a script after another has loaded?
Hey, thanks for watching!
There's not really way to do "tag sequencing" or assign a priority right now. Not that I can find anyway.
- Stockton
OMG DNS level .-D
this does not even improve page speed better setup events directly via zaraz and not use GTM
Just depends on how complex your set up is!
Usually we set up server side GTM as opposed to this method but wanted to make sure it was noted
Hope you found a great solution!