Solved

Add code to body in wordpress site

Posted on 2016-10-21
8
45 Views
Last Modified: 2016-10-25
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?
0
Comment
Question by:nsitedesigns
8 Comments
 
LVL 52

Expert Comment

by:Julian Hansen
ID: 41854004
This article on the Wordpress Codex discusses the various options
https://codex.wordpress.org/Using_Javascript
0
 

Author Comment

by:nsitedesigns
ID: 41854081
If I understood javascript then yes, that article would make sense.  Unfortunately, it did not help.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 41854189
Are you actually adding code to the body tag itself or just anywhere in the header/footer?
0
 
LVL 2

Accepted Solution

by:
Amita Singh earned 500 total points
ID: 41854285
you can try this plugin. but i am not  sure its usefull or not.

https://wordpress.org/plugins/tracking-code-manager/
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 52

Expert Comment

by:Julian Hansen
ID: 41854290
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
 
LVL 2

Assisted Solution

by:Amita Singh
Amita Singh earned 500 total points
ID: 41854299
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
 
LVL 52

Expert Comment

by:Julian Hansen
ID: 41854308
@Amita Singh,

My question was to the asker.
0
 
LVL 2

Expert Comment

by:Amita Singh
ID: 41854315
Ok, I am sorry Julian.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now