HTML,WordPress,Tumblr aur Blogger (blogspot) ye major platform hai website/blog banane ke halaki HTML ek Markup language hai lekin ise bhi platform me kaihna koi galat baat nhi kyuki website ka structure HTML par hi depend karta hai.

Khair, last post me mai bataya tha ki aap kaise Google analytics ko install aur configure kar sakte ho lekin last aur sabse point yeh rhe gya tha ki Tracking code/ID (jo ki ek javascript code hota hai) ko kaise alag alag platform me add kare.

To yeh post isi bare me hai aur please puri information ke liye last tak padhe.


HTML

HTML based website/blog me yadi Tracking Code add karna hai to uska sirf ek tarika hai ki code ko header section <head></head> me copy & paste karna.

Simple hai lekin aapko website ke har pages me is code ko add karna padega jisse ki aapko website ki puri web report mil sake yadi sirf kuch pages ki report chahiye to sirf usi me code add kare.

Suppose yadi 10 page ki website hai yani ki 10 bar Tracking code ko header section me copy & paste karna padega.

HTML tracking code
HTML tracking code

WordPress

Is platform pe Tracking code/id ko add karne ke mainly 4 methods hai –

1. Directly Tracking ID ko theme me add karna.

WordPress ki kuch themes mostly premium themes offer karti hai Tracking ID ko directly add karne ki. In themes ke themes panels me alag se section hota hai jisme aap ID ko directly add kar sake.

theme panel
Theme panel of a WordPress Premium Theme

2. PHP file Implementation

Jaisa ki hum sab jante hai ki WordPress PHP pe based hai aur uski themes bhi. To yeh method normal PHP websites pe bhi laago hota hai aur WordPress themes par bhi.

Is method me hum phele kya karte hai ki Tracking code ko ek text editor (Dreamweaver, Sublime Text, notepad etc) me paste karte hai aur file ko “.php” extension me save kar dete hai. Mai file save kar rha hun analyticstracking.php. 

php implementation
php implementation

Phir is file ko baki website/blog ki source file ke sath rakh deyen aur fir is line of code ko header.php me <head></head> ke ander paste kar deyen.

<?php include_once("analyticstracking.php") ?>

3. Third party Plugin

Third party plugins ka bhi use karke bhi aap asani se Tracking code/ID ko website ya blog me add kar sakte hai. Lekin unhi plugins use kare jinki rating achi ho aur sath hi sath wo aapke WordPress version ke compatible ho.

Mai is method bilkul bhi recommend nhi karunga isliye ho sakte to 2 method hi use karen.


Tumblr

Yadi aapko nhi pata ho to bata dun ye ek blogging platform hai jisse David Karp ne 2007 me launch kiya tha aur fir baad me yahoo ne ise 2013 me karid liya.

Tumblr me bhi panel me Tracking Id ko add karne ka function hai.

tumblr-tracking Id
tumblr tracking Id

Blogger

Jaise Tumblr Yahoo ka blogging platform hai usi tarah Blogger bhi ek blogging platform hai lekin Google ka jisse 2003 me Pyra Labs se karida tha. Aur ye apne time ka sabse popular blogging platform tha ab WordPress hai.

To isme bhi tumlr ke jaise hi panel me Tracking ID ko add kar sakte hai.

blogger tracking id

 

Umeed karta hun ki aapko yeh blog post pasand aaya hoga aur HTML,Wordpress,tumblr aur blogger platform pe kaise tracking ID ya code ko kaise add kare yeh bhi aap logo ab ache se samjh hi gaya honga.

Please koi doubt ya kuch important point mujhse miss ho gya ho to comment box me comment jarur kare aur yadi acha laga ho to tab bhi 🙂

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here