Adding google analytic in WordPress without a plugin is very simple step. Just follow the following mentioned steps:
Step 1. Login to your Google Analytic account and click “Admin” located at the bottom left sidebar.
Step 2. Select the website for which you need a tracking code by click dropdown arrow located just under create account & Click “Tracking info” under “Property”
Step 3: Click “Tracking Code” & Copy the tracking code. We are going to paste this code in WordPress.
Step 4. Now we have tracking code. Let Login to “WordPress”. In the WordPress Dashboard, navigate to Appearance -> Theme Editor
Step 5. Now open header.php file located on right hand side below the Theme Files
Step 6. Find the </head> closing tag & paste the code just before the </head> closing tag.
Step 7. Click Update File
Step 8. Finished. You are successfully added google analytics tracking code in WordPress theme without a plugin.
Is it helpful?
Please Donate.
You may interest on the following topics:
- How to Fix WooCommerce Cart Page – Solved
- How to Fix WooCommerce Checkout Page? – Solved
- How do I choose a default category in WordPress?
- How can I provide limited access to user in WordPress?
- How do I fix “Updating Failed. You are probably offline” Message in WordPress while saving post?
- How to hide Categories & Tag links in WordPress?
- How to integrate WordPress Subscribe form & Mailchimp?
- How to display number of post within categories in Front-end?
- How to display Custom Ads in WordPress site?
- How to add google analytic in WordPress without a Plugin?