Add code to body in wordpress site

I need to add tracking code to the body tag for a client of mine.  The code was provided by an advertising company.  Not sure how to add this to the body tag on wordpress.  is there a plugin I should use?
nsitedesignsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Amita SinghConnect With a Mentor Web DeveloperCommented:
you can try this plugin. but i am not  sure its usefull or not.

https://wordpress.org/plugins/tracking-code-manager/
0
 
Julian HansenCommented:
This article on the Wordpress Codex discusses the various options
https://codex.wordpress.org/Using_Javascript
0
 
nsitedesignsAuthor Commented:
If I understood javascript then yes, that article would make sense.  Unfortunately, it did not help.
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
Jason C. LevineNo oneCommented:
Are you actually adding code to the body tag itself or just anywhere in the header/footer?
0
 
Julian HansenCommented:
Unfortunately, it did not help.
In what way? As I understand it you are not actually writing the javascript you are just cut and pasting it.

In that case does the JS need to be on all pages?
0
 
Amita SinghConnect With a Mentor Web DeveloperCommented:
Hi Julian,

Please check the plugin screenshot. In this plugin their is a option where you want to add your code or which page you want to show the. only single page or whole website.

https://wordpress.org/plugins/tracking-code-manager/screenshots/
0
 
Julian HansenCommented:
@Amita Singh,

My question was to the asker.
0
 
Amita SinghWeb DeveloperCommented:
Ok, I am sorry Julian.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.