
Looking for a way to add Google Analytics to your WordPress website without a plugin? Adding Google Analytics to your site helps you track your website traffic and gives valuable insights about your visitors. Let’s take a look at how to add Analytics tracking code to your site without a plugin.
Is It Best to Add Google Analytics With or Without a Plugin?
You might think that the fewer plugins you use on your site the better, but that’s not always necessarily true.
It’s true that badly coded plugins could add bloat and slow down your site.
But a well-made, lightweight plugin can save you a lot of time and hassle, without any ill effects.
In fact, the number of plugins on a WordPress site has actually next to no direct correlation with your site’s speed and performance. It’s all about the quality of the plugins installed. The larger plugins for WordPress, like MonsterInsights, which have millions of installs, are more tested and optimized for speed. They have no impact on site load speed whatsoever.
Add Google Analytics in WordPress Without a Plugin
Before we get started, make sure to backup your WordPress theme, so in case something goes wrong, you can easily revert it back.
You’ll be directly editing the code that outputs your site, so a mistake as small as a misplaced comma could bring down your whole site. Be sure to make a backup just in case.
Step 1: Get Your Google Analytics Tracking Code
Log into your Google Analytics account and select the website for which you need the tracking code.
Click on Admin in the left taskbar or Setting Icon.

In the property column, click Tracking Info, and then Tracking Code.

Now you can get the tracking code under the Website tracking section. Just copy it.

Step 2: Add the Tracking Code to the header.php file
Log in to your WordPress dashboard and navigate to Appearance » Editor. Now click the header.php file on the right-hand side below the Templates section.

Paste the tracking code you just copied from your Analytics profile before the closing </head> tag.

Then click Update File.
That’s it!
You’ve just added Google Analytics in WordPress without a plugin.
You May Also Like
What is Backlink?
Read More
Mistakes in share Market?
Read More
Four basic thing of Stock Market, You should know
Read More
What is Panic Attack
Read More
DEPRESSION
Read More
What Is Comprehensive Insurance?
Read More
Best Home Insurance Agency
Read More
Domain Name क्या है और कैसे काम करता है?
Read More
अमेरिका / 181 साल बाद सदन में सिर ढंकने से रोक हटी, 2 सांसद हिजाब पहनकर पहुंचीं
Read More
Trump says he could keep shutdown going for months or years
Read More
100 financial moves that will help you make money in 2019
Read More
Online FIR कैसे दर्ज करें | Online FIR Kaise Register Kare Hindi
Read More
www.pmmodinews.com is a good website
Read More
राहुल गांधी ने पीएम मोदी से पूछे 4 सवाल लेकिन तीसरा गायब. यूजर ने पूछा- मोदी और अंबानी ने किडनैप कर लिया क्या?
Read More
14-year-old driver charged with murder after throwing eggs in fatal crash, police say
Read More
Donald Trump says received ‘great’ letter from Kim Jong Un
Read More
Trump wants India, Russia, Pakistan to fight Taliban in Afghanistan
Read More
जोधपुर : तीन तलाक से डरकर मुस्लिम लड़की ने की हिन्दू लड़के से शादी
Read More
Google AdSense Account Approval Process- 2019
Read More
HOW TO APPLY TO GOOGLE ADSENSE AND ACTUALLY GET APPROVED
Read More
happy birthday message for friend
Read More
How to add a signature in thunderbird
Read More
Top 100 websites of India
Read More
ये हैं चार कानूनी अधिकार जो हर महिला को पता होने चाहिए
Read More
how to restore wordpress old version
Read More
The Most Popular Websites In The United States
Read More
Kedarnath Movie Download
Read More
Kedarnath Movie Review
Read More
WWE के रिंग में कूदी ड्रामा क्वीन Rakhi Sawant पहले किया हॉट डांस, देखें Video फिर पहलवान ने किया बुरा हाल सीधे पहुंचीं अस्पताल
Read More
ब्लॉग से पैसे कैसे कमाएँ? बेस्ट टिप्स Make Money Blogging tutorial Hindi
Read More
club factory customer care
Read More
How to check website traafic | website analytics
Read More
दरवाजा बंद करके लड़कियां कर रही थी कुछ ऐसा, मां ने अंदर घुसकर मारी चप्पलें
Read More
How to Add Google Analytics to WordPress Without a Plugin
Read More
6 Horrendous Rape Cases In 2018 So Far Show That Minors Are Biggest Victims Of Sexual Assaults
Read More
Stephen Hawking Biography (1942-2018)
Read More
Who is the richest person in the world?
Read More
इन 4 तरह की लड़कियों से भूलकर भी नहीं करनी चाहिए शादी, वर्ना बर्बाद हो सकता है सबकुछ | do not marry with 4 types of girl
Read More
पटना में फिर हैवानियत : अभी अभी 3 साल की बच्ची से कराटे टीचर ने किया रेप
Read More
गूगल + हो गया हैक ,गूगल+ हो रहा है बंद हो जाइये होसियार लाख यूजर का अकाउंट हुआ हैक
Read More
आयुष्मान भारत योजना 2018-19 | संपूर्ण जानकारी
Read More
How to get call history of any mobile number
Read More
दरभंगा – प्रेम विवाह करने वाले युवक को धुना, युवती को लेकर भागे लोग …जानिए मामला
Read More
पुरुषों का किसी और की पत्नी के साथ शारीरिक संबंध बनाना अब अपराध नहीं रहा
Read More
प्रिया प्रकाश वारियर लड़ा रही थीं पंजा, हारने से ठीक पहले हुआ कुछ ऐसा कि वीडियो हो गया Viral
Read More
Best SEO Plugins For WordPress To Get Website Higher Page Rank
Read More
Yoast SEO Premium License Key Cracked or Patched
Read More
Kamathipura, Current Status Of Mumbai Red Light Area
Read More
दिल्ली का रेड लाइट एरिया : छोटे से कमरे में ऐसी होती है वर्कर की LIFE
Read More
तेलंगाना से भाजपा विधायक ने गौरक्षा के मुद्दे को लेकर दिया इस्तीफा
Read More
Microsoft Lumia 535 || Factory Reset || Screen Lock Removal
Read More
जियो के इस प्लान में 6 महीने तक मिलेगा अनलिमिटेड मजा, कीमत 600 रुपये से भी कम
Read More
PM Modi seeks ideas for his Independence Day speech 2019
Read More
पीड़ित बच्चियों ने जज से कहा हंटर वाला अंकल और नेता जी रोज करते थे रेप
Read More
Free Website Submission to 1000 Search Engines Seo Services
Read More
Voice changer with effects | How to Change Voice into any voice
Read More
अभी अभी GB Road पर दिल्ली पुलिस का छापा, कुल 16 लड़कियां बरामद
Read More
Boston Dynamics Says Its Robot Dogs Will Hit the Market in 2019
Read More
US DEVELOPED CHEETAH ROBOT CAN CLIMB STAIRS
Read More
जलेबी बाबा की काली करतूत का पर्दाफाश, चलाता था ‘पोर्न इंडस्ट्री’
Read More
ज्यादातर मर्द होने वाली बीवी से छिपाते हैं ये 8 बातें
Read More
पार्टनर से नहीं चाहते ब्रेकअप, पढ़ें ये 5 बातें…
Read More
Masjid Umar Madhubani
Read More
गो तस्करी के शक में पीट-पीटकर हत्या, ओवैसी ने कहा- यह है मोदी का लिंच राज
Read More
नबी (सल्लल्लाहु अलैहि वसल्लम) ने बताई क़यामत की 72 निशानिया।
Read More
Advocate फराह फैज पर अब तक ता सबसे बड़ा खुलासा ..जो दीखता है हर बार सही हो जरुरी नहीं …Please Share…
Read More
Live : टीवी डिबेट के दौरान मौलाना और महिला वकील में हाथापाई, मौलाना गिरफ्तार
Read More
Today’s Google Doodle Celebrates Georges Lemaître And The Big Bang
Read More
What is the best time to visit Delhi’s GB road?
Read More
Full heart 💞💞💞💞Touching real love and great story 😭😭😭😭😭😭
Read More
एक और राबिया परवीन का बलात्कार के बाद मार कर फेक दिया गया ..
Read More
12वीं में पढ़ने वाली छात्रा को उसकी सहेली ने बेसुध किया और फिर एक युवक को घर बुलाकर उसका दुष्कर्म करवाया।
Read More
NH 57 Gaushala Road Madhubani Bihar – एक नई मस्जिद की तामीर की जा रही है , बढ़ चढ़ कर हिस्सा ले ! कम से कम एक शेयर ज़रूर करें …
Read More
Ahead of PM Modi’s Midnapore rally, farmers appeal for basic facilities
Read More
‘मुल्क’ के डायरेक्टर से पत्रकार ने पूछा- मुसलमान क्यों बन रहे हैं आतंकवादी, दिया मुँहतोड़ जवाब
Read More
मुंबई : 11 साल की बच्ची का पिता करता था रेप फिर बेटी ने जो किया ..
Read More
How to take a screenshot on a PC
Read More
How to take a screenshot on any Android phone
Read More
How to Link Aadhaar Number to PAN?
Read More
New Irctc Tatkal Booking Tricks || 100 % Working
Read More
Live : मंदसौर पर पुरे भारत से मुसलमानो की प्रतिकिर्या || जरूर Share करे ….!!!!
Read More
What can I expect if I take the abortion pill?
Read More
पुलिस को शुद्ध हिंदी में क्या कहते हैं…? आईएएस इंटरव्यू में पूंछा गया सवाल
Read More
7 साल की बच्ची के साथ गैंग रेप और हत्या ,एक और दिल दहला देने वाली घटना
Read More
पाकिस्तानी लड़के ने गलती से भारत की सीमा पार की, फिर भारतीय सैनिकों ने जो किया…
Read More
मोदी की विदेश यात्राओं पर कितना हुआ खर्च, सामने आई पूरी जानकारी आरटीआई से
Read More
The Sahyadri Sahakari Bank Recruitment 2018 Apply Online 73 Job Vacancies 28 June 2018
Read More
पत्नी का मोटापा है जानलेवा पतियों के लिए, उनकी वजह से हो रही है ये खतरनाक बीमारी
Read More
महिलाओं के साथ होता है कुछ ऐसा ऑफिस में ज्यादा देर बैठे रहने से
Read More
भारत में पहली बार वाच लॉक की Unboxing | लाइव पता करो की आपका सामान कहाँ है
Read More
How To Hack Someone’s WhatsApp Without Their Phone?
Read More
India Vs Japan : आपको 2019 में क्या चाहिए खुद Decide कीजिए !!!
Read More
Mumbai-Rains office goers cautioned expect delayed train services traffic congestion flight delays
Read More
9वीं की छात्रा ने की खुदकुशी II छेड़छाड़ का आरोप शिक्षक पर II बड़ी खबर
Read More
World Cup 2018, Uruguay vs Russia: When And Where To Watch, Live Coverage On TV, Live Streaming Online
Read More
एयरटेल, मुझे मुसलमान नहीं हिंदू कस्टमर केयर प्रतिनिधि चाहिए क्योंकि…
Read More
वो भैया भैया कहकर रहम की भीख मांगती रही लेकिन दरिंदों ने उसकी एक ना सुनी, देखे विडियो
Read More
भाजपा और कांग्रेस में कौन है देश के लिए बेहतर, समझ जाओगे इन तस्वीरों को देखकर
Read More
पत्नी कितनी भी सच्ची हो, लेकिन ये 2 बातें नहीं पता चलने देगी आपको !
Read More
12 लाख की चाय का सच, क्या चाय बेच के 12 लाख कमा सकते हैं ?
Read More
1,899 total views, 1 views today