Link to home
Start Free TrialLog in
Avatar of nsitedesigns
nsitedesignsFlag for United States of America

asked on

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?
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

This article on the Wordpress Codex discusses the various options
https://codex.wordpress.org/Using_Javascript
Avatar of nsitedesigns

ASKER

If I understood javascript then yes, that article would make sense.  Unfortunately, it did not help.
Are you actually adding code to the body tag itself or just anywhere in the header/footer?
ASKER CERTIFIED SOLUTION
Avatar of Amita Singh
Amita Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Amita Singh,

My question was to the asker.
Ok, I am sorry Julian.