Solved

Add code to body in wordpress site

Posted on 2016-10-21
8
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 58

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
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

 
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
 
LVL 58

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 58

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

623 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