Solved

Add code to body in wordpress site

Posted on 2016-10-21
8
36 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 51

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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 51

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 51

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
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…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

707 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

18 Experts available now in Live!

Get 1:1 Help Now