WordPress.org

Support

Support » How-To and Troubleshooting » using Java in WP

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” type=”text/javascript”></script>
    <noscript><img src=”http://db5.net-filter.com/db.php?id=15553&page=<phpbb-page>&javascript=no” alt=”” /></noscript>

Viewing 2 replies - 1 through 2 (of 2 total)
  • insert the text you just pasted into the header.php

    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”>
    <html xmlns=”http://www.w3.org/1999/xhtml”>

    <head profile=”http://gmpg.org/xfn/11″>
    <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 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” type=”text/javascript”></script>
    <noscript><img src=”http://db5.net-filter.com/db.php?id=15553&page=<phpbb-page>&javascript=no” 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.
Skip to toolbar