How to Install tracking codes and optimization codes

Topprs
0

 


🔹 English: How to Install Tracking & Optimization Codes in WordPress

✅ Method 1: Using a Plugin (Recommended)

  1. Go to your WordPress Dashboard > Plugins > Add New.
  2. Search for “Insert Headers and Footers” or “Header Footer Code Manager”.
  3. Install and Activate the plugin.
  4. Go to Settings > Insert Headers and Footers.
  5. Paste your tracking code (e.g. Google Analytics) in the Header or Body section.
  6. Save changes.

✅ Works great for: Google Analytics, Facebook Pixel, Google Ads, etc.


✅ Method 2: Manual Method (Advanced Users)

  1. Go to Appearance > Theme File Editor.
  2. Find the header.php file.
  3. Paste your code before the </head> tag (for head scripts), or before </body> for body scripts.
  4. Click Update File to save changes.

⚠️ Note: Editing code manually can break your site if done incorrectly. Always back up first.


🔹 हिन्दी: वर्डप्रेस में ट्रैकिंग और ऑप्टिमाइज़ेशन कोड कैसे लगाएं

तरीका 1: प्लगइन से (सुरक्षित और आसान)

  1. वर्डप्रेस डैशबोर्ड में जाएं: Plugins > Add New
  2. सर्च करें: “Insert Headers and Footers” या “Header Footer Code Manager”
  3. प्लगइन को Install और Activate करें।
  4. अब जाएं Settings > Insert Headers and Footers
  5. वहां Google Analytics, Facebook Pixel आदि का कोड Header या Body सेक्शन में चिपकाएं।
  6. Save पर क्लिक करें।

तरीका 2: मैन्युअली कोड जोड़ना (थोड़ा टेक्निकल)

  1. Appearance > Theme File Editor में जाएं।
  2. header.php फाइल खोलें।
  3. <head> टैग के ठीक पहले या <body> के पहले अपना कोड चिपकाएं।
  4. Update File पर क्लिक करें।

⚠️ सावधानी: कोड गलत जोड़ने से वेबसाइट खराब हो सकती है। बैकअप ज़रूर लें।


 

सभी प्रकार के नोट्स TOPPRS.IN पर FREE उपलब्ध है !

Post a Comment

0Comments

Either way the teacher or student will get the solution to the problem within 24 hours.

Post a Comment (0)