How to install Google Analytics 4 on WordPress (manually WITHOUT plugins)

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 48

  • @LisaBloom-yo4hu
    @LisaBloom-yo4hu 5 місяців тому +3

    Thank you for such a straight forward explanation. SO many videos push plugins. Thank you!

    •  5 місяців тому

      Thank you. Happy to be of service

  • @riikkaalavuotunki1836
    @riikkaalavuotunki1836 9 місяців тому +2

    Thank you for the very clear video straight to the point. I will next search your other videos if there are instructions to add more functionality to GTM - this was such a great video!

    •  9 місяців тому +1

      Thank you so much. That’s was a nice comment. Made my day 👌🏻🙏🏻 I’m glad to be of service

  • @dixondaniel9687
    @dixondaniel9687 Рік тому +2

    Really Helpful, As SEO Specialist i know each and every part in SEO And ranked many ENYERPRISE LEVEL WEBSITES. But, honestly working with coding is bit confusing part for me, Thanks For The Help, i get to know the things very well. Liked...

    •  Рік тому

      Thanks a lot 👌🏻🙏🏻

  • @talktipstv
    @talktipstv Рік тому +1

    Thanks a lot! Really clear explanations. Greetings from Barcelona!

    •  Рік тому

      Thanks. I’m glad I could help

  • @ΒΑΓΓΕΛΗΣΜΑΡΚΕΤΗΣ
    @ΒΑΓΓΕΛΗΣΜΑΡΚΕΤΗΣ 8 місяців тому +1

    Brilliant teaching. Thanks a lot!

    •  8 місяців тому

      You're very welcome!

  • @horizon6462
    @horizon6462 10 місяців тому

    Thanks Soren, It helped with your kind guidance. Thanks a lot.

    •  10 місяців тому

      Glad to hear that. Thanks 🙏🏻

  • @aprkc
    @aprkc 6 місяців тому +2

    Helped me get through a tough time. Thanks

    •  6 місяців тому

      Glad it helped!

  • @user-chance-dstg
    @user-chance-dstg 11 місяців тому +1

    Enlightening video, thanks a ton !

    •  11 місяців тому

      I’m glad I could help 👌🏻

  • @SerenityPresence
    @SerenityPresence Рік тому +1

    This is awesome. Thank you so much for this!

    •  Рік тому +1

      Thanks. I appreciate it

  • @bhaskarlive1705
    @bhaskarlive1705 10 місяців тому +1

    Excellent ....

    •  10 місяців тому

      Thanks 🙏🏻

  • @mesmerisingmoroccochannel
    @mesmerisingmoroccochannel 7 місяців тому +1

    Brillant

    •  7 місяців тому

      Thanks

  • @tidligtrivsel7092
    @tidligtrivsel7092 11 місяців тому +1

    Hej, tak for en super god video. Jeg har indsat koden lige som du forklare, men analytics tracker fortsat ikke. Jeg har tænkt om fejlen kan have noget at gøre med, at jeg også har et plugin der hedder elementor header and footer, som jeg bruger som header og footer på min hjemmeside, og at koden måske skal indsættes i dette plugin på en måde?

    •  11 місяців тому

      Hej. Tak for de pæne ord 🙏🏻 Ja. Det er en mulighed, og værd at prøve af. Dog vil jeg tro at Elementor ligger som Child Theme og derfor er sekundær i rækkefølgen.
      Jeg har et par gange kommet til at slette et enkelt tegn i script koden ved en fejl. Så virker den ikke. Der ville jeg nok starte

    •  11 місяців тому

      Send mig evt et screenshot af det på Messenger hvis du vil

    • @tidligtrivsel7092
      @tidligtrivsel7092 11 місяців тому

      jeg har dobbelttjekket koden og den skulle stå skrevet korrekt. I analytics, når jeg trykker på "test dit website" så skriver den "Google-tagget blev ikke registreret på dit website" @

  • @asifkhan3763
    @asifkhan3763 Рік тому +1

    Useful things :)

    •  Рік тому

      Glad you think so!

  • @MayaPerry1
    @MayaPerry1 4 місяці тому +1

    Does it happen instantly like that? I added the code manually just like you did (and made sure my personalized code was there twice) and Google Analytics said it wasn't detected.

    •  4 місяці тому

      Yes. Usually within a couple of minutes. Also, make sure your browser doesn’t have cashed version. Try adding a ?1=2 after you url. That might do the trick

    • @MayaPerry1
      @MayaPerry1 4 місяці тому +1

      turns out I just needed to wait a bit. Thanks!

    •  4 місяці тому

      @@MayaPerry1 👌🏼👍🏼

  • @Msy.chrissy
    @Msy.chrissy 8 місяців тому +1

    I'm getting an error message when i try to add the code: "Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP."

    •  8 місяців тому

      Hi there! It sounds like you're encountering a common WordPress security feature designed to prevent changes that could potentially break your site. This feature checks for errors in PHP code before saving changes, and if it detects a possible error, it reverts the changes to avoid crashing your site.
      Here's what you can do:
      Check the GA4 Script: Make sure the GA4 script you're trying to add is correct and doesn't contain any syntax errors. Even a small mistake can cause WordPress to reject the change.
      Use a Plugin: Consider using a plugin designed for inserting headers and footers scripts. This can be a safer and easier way to add the GA4 script without editing theme files directly. I uses "Header and Footer Injection"
      Contact Your Hosting Provider: If you're still having trouble, your hosting provider's support may offer insights specific to your hosting environment.
      Remember, it's always a good idea to back up your site before making any changes.
      Best of luck /Soren

  • @aayisah7985
    @aayisah7985 Рік тому +1

    I don't use WordPress theme but Laravel phpscript. It does not have header.php Do you have an idea where to put the code in my file manager?

    •  Рік тому +1

      I’m not to familiar with Laravel so I could be wrong, but I believe you would add the code to a Blade layout file. located in the resources/views/layouts directory and might be named app.blade.php or master.blade.php. Adding a HEAD section in there. Best of luck

    • @aayisah7985
      @aayisah7985 Рік тому +1

      ​@Thanks a lot. It works! You can consider making a new video for some of us who use phpscripts. It can save many people from a lot of stress. Really appreciate your support.

    •  Рік тому

      @@aayisah7985 that’s a great idea. Thanks

    • @aayisah7985
      @aayisah7985 Рік тому

      @ can you help me add user id to GA4. I want to see individual user properties on GA4. Do I need to add another line of code in master.blade.php?

  • @izabelazagorska-u6l
    @izabelazagorska-u6l 8 місяців тому +1

    cannot find option theme editor,its just not there.what should i do?

    •  8 місяців тому

      No. Some themes don’t make it obvious. You can either go directly to the file editor at your host or opt for the plugin “header and footer injection” and put it there. The latter is the easiest

  • @ZuleikaHanis
    @ZuleikaHanis Рік тому +1

    mine do not have theme editor. how do i do this then? pls help

    •  Рік тому

      You can either access the file via you host or use a small plugin called “header and footer injection”

  • @scholageemusic9373
    @scholageemusic9373 Рік тому

    i dont have theme editor option and dont know where to find it. i only know how to use the code editor for each page

    •  Рік тому

      Some themes do not allow for easy editing inside Wordpress. Your options then are to use the file editor at you hosting company or using a plugin like “Header and Footer Injection”. Hope that helps

  • @YusufKingOBY
    @YusufKingOBY 9 місяців тому +1

    the script is not available

    •  9 місяців тому +1

      No. You’re right. The SSL certificate is broken. Thanks for letting me know. I’ll fix er straight away

    •  9 місяців тому +1

      The site is back online. Thanks for the heads up