🔹 English: How to Install Tracking &
Optimization Codes in WordPress
✅ Method 1: Using a Plugin (Recommended)
- Go to your WordPress Dashboard
> Plugins > Add New.
- Search for “Insert Headers and
Footers” or “Header Footer Code Manager”.
- Install and Activate the
plugin.
- Go to Settings > Insert
Headers and Footers.
- Paste your tracking code (e.g.
Google Analytics) in the Header or Body section.
- Save changes.
✅ Works great
for: Google Analytics, Facebook Pixel, Google Ads, etc.
✅ Method 2: Manual Method (Advanced Users)
- Go to Appearance > Theme
File Editor.
- Find the header.php file.
- Paste your code before the </head> tag (for head scripts), or before </body> for body scripts.
- Click Update File to save
changes.
⚠️ Note:
Editing code manually can break your site if done incorrectly. Always back up
first.
🔹 हिन्दी: वर्डप्रेस में ट्रैकिंग और ऑप्टिमाइज़ेशन कोड कैसे लगाएं
✅ तरीका 1: प्लगइन से (सुरक्षित और आसान)
- वर्डप्रेस डैशबोर्ड में जाएं: Plugins > Add New।
- सर्च करें: “Insert Headers and Footers” या “Header Footer Code Manager”।
- प्लगइन को Install और Activate करें।
- अब जाएं Settings > Insert Headers and
Footers।
- वहां Google Analytics, Facebook Pixel आदि का कोड Header या Body सेक्शन में चिपकाएं।
- Save पर क्लिक करें।
✅ तरीका 2: मैन्युअली कोड जोड़ना (थोड़ा टेक्निकल)
- Appearance > Theme File Editor में जाएं।
- header.php फाइल खोलें।
- <head> टैग के ठीक पहले या <body> के पहले अपना कोड चिपकाएं।
- Update File पर क्लिक करें।
⚠️ सावधानी: कोड गलत जोड़ने से वेबसाइट खराब हो सकती है। बैकअप ज़रूर लें।
Either way the teacher or student will get the solution to the problem within 24 hours.