Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Add code to body in wordpress site

Posted on 2016-10-21
8
Medium Priority
?
529 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 59

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
Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

 
LVL 2

Accepted Solution

by:
Amita Singh earned 2000 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 59

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 2000 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 59

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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to count occurrences of each item in an array.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

661 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