WordPress.org

Forums

using Java in WP (3 posts)

  1. kdreger
    Member
    Posted 10 years ago #

    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>

  2. jpettit
    Member
    Posted 10 years ago #

    insert the text you just pasted into the header.php

  3. kdreger
    Member
    Posted 10 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags