Title: using Java in WP
Last modified: August 18, 2016

---

# using Java in WP

 *  [kdreger](https://wordpress.org/support/users/kdreger/)
 * (@kdreger)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/using-java-in-wp/)
 * Need to know how to insert a java script into WP, we track all our pages and 
   I need to place the following code into a Template or header file that will show
   each page that gets hit:
 * <script language=”JavaScript” src=”[http://db5.net-filter.com/script/15553.js&#8221](http://db5.net-filter.com/script/15553.js&#8221);
   type=”text/javascript”></script>
    <noscript><img src=”[http://db5.net-filter.com/db.php?id=15553&page=<phpbb-page>&javascript=no&#8221](http://db5.net-filter.com/db.php?id=15553&page=<phpbb-page>&javascript=no&#8221);
   alt=”” /></noscript>

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [jpettit](https://wordpress.org/support/users/jpettit/)
 * (@jpettit)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/using-java-in-wp/#post-205549)
 * insert the text you just pasted into the header.php
 *  Thread Starter [kdreger](https://wordpress.org/support/users/kdreger/)
 * (@kdreger)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/using-java-in-wp/#post-205718)
 * I inserted the code as shown below, but it fails to track the individual page
   that is viewed by the user.
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//
   EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt);
   <html xmlns=”[http://www.w3.org/1999/xhtml”&gt](http://www.w3.org/1999/xhtml”&gt);
 * <head profile=”[http://gmpg.org/xfn/11″&gt](http://gmpg.org/xfn/11″&gt);
    <meta
   http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?
   php bloginfo(‘charset’); ?>” />
 *  <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>
 *  <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> 
   <!– leave this for stats please –>
 *  <style type=”text/css” media=”screen”>
    [@import](https://wordpress.org/support/users/import/)
   url( <?php bloginfo(‘stylesheet_url’); ?> ); </style>
 *  <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php
   bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS.
   92″ href=”<?php bloginfo(‘rss_url’); ?>” /> <link rel=”alternate” type=”application/
   atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
 *  <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘
   type=monthly&format=link’); ?> <?php //comments_popup_script(); // off by default?
   > <?php wp_head(); ?> </head>
 * <body>
    <script language=”JavaScript” src=”[http://db5.net-filter.com/script/15553.js&#8221](http://db5.net-filter.com/script/15553.js&#8221);
   type=”text/javascript”></script> <noscript><img src=”[http://db5.net-filter.com/db.php?id=15553&page=<phpbb-page>&javascript=no&#8221](http://db5.net-filter.com/db.php?id=15553&page=<phpbb-page>&javascript=no&#8221);
   alt=”” /></noscript>
 * <div id=”rap”>
    <h1 id=”header”>“><?php bloginfo(‘name’); ?>
   </h1>
 * <div id=”content”>
    <!– end header –>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘using Java in WP’ is closed to new replies.

## Tags

 * [java](https://wordpress.org/support/topic-tag/java/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [kdreger](https://wordpress.org/support/users/kdreger/)
 * Last activity: [20 years, 12 months ago](https://wordpress.org/support/topic/using-java-in-wp/#post-205718)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
