Тёмный

2 Ways To Install Google Tag Manager In Wordpress Without A Plugin 

WordPress Tutorials - WPLearningLab
Подписаться 154 тыс.
Просмотров 14 тыс.
50% 1

Grab your free 17-Point WordPress Launch Checklist PDF: wplearninglab.com/get/wordpre...
If you use lots of marketing tags like Google Analytics, Google Ads, Facebook Pixels, and other JS from third party websites, then learning how to install Google Tag Manager in WordPress without a plugin is a lifesaver. This is part of the Plugin Killer series, playlist here: • Wordpress Maintenance ...
In this tutorial, you will learn two ways to install Google Tag Manager on your site without using any plugins.
Blog post with the code from this video: wplearninglab.com/add-snippet...
Do you need a child theme in 2020 video: • Do You Need A WordPres...
How the WordPress hierarchy works video: • How The WordPress Hier...
Always backup your site just in case (or use a staging site), here's how: • WordPress Backup, Rest...
Join our private Facebook group today! / wplearninglab
Here are 20+ reasons why I host all my sites with SiteGround: wplearninglab.com/siteground-...
Post videos of your WordPress success using the hashtag #WPLLCommunity!
Here's the link for Elementor Pro (aff): wplearninglab.com/recommends/...
I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.
WP Learning Lab Channel: ru-vid.com_c...

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

 

24 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@wplearninglab
@wplearninglab 3 года назад
This tutorial is part of the Plugin Killer series on my channel. In that series, you will learn how to replace popular plugins with simple pieces of code. Fewer plugins = happier websites. Here's the full playlist: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-GfjKs1fCBpI.html
@Badmetal305
@Badmetal305 3 года назад
Which are the only "necessary" plugins, that need to be kept? Make a video on that, if you could. Have you made a video on generating good backlinks?
@jamielee630
@jamielee630 2 года назад
I found this video when i was trying to speed up my website by removing plugins. The best explanation yet👍
@twinqlez1
@twinqlez1 2 года назад
HAD to sub!!! I watched your video already previously and finally realized you give some super videos, clean clear Love it thanks!
@greengrass1970
@greengrass1970 3 года назад
Thanks for the video! The installation worked beautifully :)
@GrahamHoffman1
@GrahamHoffman1 3 года назад
Love this series idea! Looking forward to what else you’ve got planned to kill/remove :)
@charlybtube
@charlybtube 2 года назад
Amazing content and pedagogy. Thanks a lot! 👍👍👍
@increst
@increst 2 года назад
Thank you, it was a great and easy tutorial!
@oneplacedigital
@oneplacedigital 3 года назад
Very well explained!👍
@analyticsm2bc613
@analyticsm2bc613 Год назад
This video helped me to add the GTM snippets to my WP website. I've chosen the 2nd way simply because it's how it's also mentioned in the GTM: "add this below head...", so it was less confusing for me and for any future interactions.
@bySterling
@bySterling 3 года назад
I’ll def give this a full watch tomm Bjorn!
@vetosite8797
@vetosite8797 2 года назад
Nice video man !
@twinqlez1
@twinqlez1 2 года назад
Hi, does this work with the Astra Pro theme as well? I don't think it has a child theme and I really appreciate that you teach this without using a plugin...
@jjasminchang
@jjasminchang 3 года назад
Thanks a lot!
@setgraphi
@setgraphi Год назад
Great_vid!_Thaks_very_much!
@Od4n
@Od4n 2 года назад
Thank you. I was stuck for days trying to figure this out. My SEO course pointed me to DuracelliTomiTagManager plugin and the plugin requires a decision on where to place the noscript part of the GTM container. The only viable option is custom, meaning tweak the template by adding a line of code directly beneath the tag. I use a child theme, everybody recommends that, then all the other videos don't address how to add code to when using a child theme. I have this issue on 2 different themes, paid premium themes, and the support only points to the "add snippet to header" way. Ignoring the question. You are the only one making sense. Now I have learned how to place the code. It appeared that you preferred the 2nd option, e.g copy the file and I understand the optimisation point, but is there no danger that a theme update changes something in the header.php? What is the point of DuracelliTomiTagManager if you still have to place code? Oh, I said viable option, ...the other options have all remarks a) not recommended, b) could break your frontend, c) off-nothing-no function.
@MauricioDanzas
@MauricioDanzas 3 года назад
Hello Bjorn! Only you can save me! When I build an "elementor canvas" page, the GTM code does not load on the page. I'm getting crazy, I called google, I have tested in different WP installations, domains...but all from the same host. Could it be a host issue? or is it normal when using an "elementor canvas" page? Please help me! (using astra pro+elementor pro)
@robertdiana3944
@robertdiana3944 3 года назад
Grazie! funziona.
@leslieintriago3809
@leslieintriago3809 6 месяцев назад
Can you add directly to wordpress stream in header.php file and avoid hosting site?
@Electronzap
@Electronzap 3 года назад
Pretty cool :)
@wplearninglab
@wplearninglab 3 года назад
Yep, it is. Thanks for watching!
@vandanasharmadesigningden
@vandanasharmadesigningden 3 года назад
Thank you for posting this video. I really like you videos. I cannot see the body tag code. I can only see the header tag on view source. I followed all the steps you have done.
@fabiodias7878
@fabiodias7878 2 года назад
Can I do this having the most simple WordPress plan (i. e., personal)?
@VintageHeavyMetal
@VintageHeavyMetal 3 года назад
Hello Bjorn, followed this tutorial to have Google Auto Place Ads on my site. Of course it worked really well, thanks! But: Now I've found myself "in a pickle", my theme developer has "hooked" the code I have added and I when I remove the code, yep you guessed it, all hell breaks lose! Is there a way to comment out my AdSense code added to my functions.php?
@VintageHeavyMetal
@VintageHeavyMetal 3 года назад
Disregard, I have it sorted, was extremely tired yesterday.
@scottsabo3816
@scottsabo3816 2 года назад
Hello, thank you for sharing your knowledge. I like the idea of controlling how high up in the header you can paste the code, however, I do not use a child theme. How do I hardcode GTM into the highest section of my header without it being overwritten when my Avada theme is updated? After following your other video on whether or not I need a child theme, it appears that I do not. And I don't really trust a plugin to put the script as high in the header as possible. Surprisingly, it is very hard to get info on how to paste the script as high in the header and body as possible without a plugin or child's theme. And I feel that any global theme changes in the header and body are just subject to be deleted with a new update. However, this too isn't quite clear. It seems the plugin does override the theme though. So I am likely to use this as a last resort. I am not a developer but I have access to our cPanel and was thinking that would be the easiest way to ensure proper placement. Thank you for reading my post. Any info or resources are greatly appreciated.
@wplearninglab
@wplearninglab 2 года назад
Hey Scott, You're right that you're GTM code could be overwritten in future Avada updates if you put it directly into theme header.php file. But that is the ONLY way to get it reliably to the very top of the header file. You can add GTM code via your functions.php file. I have a video for adding Javascript to a theme via the functions.php. It would work the same way for GTM. You can check it out here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Fw6VDOZYqrM.html I hope that helps :) Let me know if you have any further questions. Thanks for watching!
@azahinnordin2771
@azahinnordin2771 3 года назад
Does it work with Woocommerce ? Like e-commerce data also being tracked.
@wplearninglab
@wplearninglab 3 года назад
Hi Azahin, Yep, it does. GTM is just an easier way to add tracking code to your websites. So if you have ecommerce tracking enabled in Google Analytics it will work as usual. And you can use GTM to easily create events based on user actions in your store and other data that you will then see in your GA reports. I'll be publishing a video showing how to do that soon.
@studiojpeg
@studiojpeg 3 года назад
Could you do a video showing how to use Google Tag Manager to setup google analytics and pixel tracking from facebook and pinterest?
@inventoryoptimizationpro7352
@inventoryoptimizationpro7352 3 года назад
I can not see where I should pate the code inside the function php.
@BrianLewis-ct8jm
@BrianLewis-ct8jm Год назад
He needs to talk faster and use more terms that people who would need to watch this dont know. That way it can be a even bigger waste to time to watch.. lol
Далее
13 Things To Remove From Your Website Immediately
12:33
How To Use Code Snippets Without A Plugin In Wordpress
16:54
Google Tag Manager Simplified - A Straightforward Guide
1:08:03
7 Wordpress Plugins I install on all websites (2024)
15:07
How to Install Google Tag Manager in WordPress
6:49