But Why Header File? Why put the Code in the Header.php?
See Header.Php the Theme Header File is a Core File of your Site. All information of your Site is present there.
This Code has to runs Everytime someone Visit your Site. So to make this task easier. You have to put the tracking Code in Header
Google Analytics and Fb Pixel know when someone Visit your site. when this Code more Correctly this “JS Code”, a Tracking code executed.
And to get the Information of each and ever page of Your website. You Don’t have to paste the Code on Every single Page.
So See that’s the, to avoid pasting the Code on every page to get the data, It is easy to paste in the Core so it automatically loads on ever page.
And This Made all task easy for you. To Get the User Data. Which we called Analytic Report.
This JS Code load each time when your site page run. See there is no problem in that, having pixel and Analytic code OK.
Tracking Code run and send data back to FB and Google by their Respective code
Join Shodkk and Be a Shodkk = “Researcher” So that you can adapt yourself in this Fast-Changing Tech World.
“Are you Scrolling Social Media Daily? No Problem but on Sunday Scroll your Mail, Get something Knowledgeable. All headline from the world
Get Weekly World Update on Sunday.
Social Media Find Someone Like You, with whom you can study and share your progress. If you like this post, then please consider retweeting it or sharing it on Facebook.
OR OR OR GET…..
|40% OFF on WordPress Hosting Use >> This |