• Hello All,

    I’m using the wordpress theme “Bold” by Elegant Themes.

    I’m seeing the following Google tracking code in the first few lines of my all my pages code:

    <!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" lang="en-US" prefix="og: http://ogp.me/ns#">
    <head profile="http://gmpg.org/xfn/11"><script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-37386234-1']);_gaq.push(['_setDomainName','www.michaelthehayes.com']);_gaq.push(['_setAllowLinker',true]);_gaq.push(['_setSiteSpeedSampleRate',100]);</script>

    However when I looked up Header.php to try and remove the tracking code (not sure how it ended up there), I’m not seeing it. See Header.php code below:

    <!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" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php elegant_titles(); ?></title>
    <?php elegant_description(); ?>
    <?php elegant_keywords(); ?>
    <?php elegant_canonical(); ?>

    No mention of Google tracking code, that I can see.

    Any idea how this got in here? How I can get it out, if its not even appearing in the header.php?

    Thanks!

    -M

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s developer/vendor. We do not support commercial products here.
    Try http://www.elegantthemes.com/forum/

    In the meantime, try switching to the default 2013 theme to confirm that it is a theme-specific problem.

    Thread Starter michaelthehayes

    (@michaelthehayes)

    Thanks for the clarification.

    I have switched to the default 2013 theme, and the issue still remains.
    See opening lines of page code:

    <!DOCTYPE html>
    <!--[if IE 7]>
    <html class="ie ie7" lang="en-US">
    <![endif]-->
    <!--[if IE 8]>
    <html class="ie ie8" lang="en-US">
    <![endif]-->
    <!--[if !(IE 7) | !(IE 8)  ]><!-->
    <html lang="en-US">
    <!--<![endif]-->
    <head><script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-37386234-1']);_gaq.push(['_setDomainName','www.michaelthehayes.com']);_gaq.push(['_setAllowLinker',true]);_gaq.push(['_setSiteSpeedSampleRate',100]);</script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">

    And see header.php:

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package WordPress
     * @subpackage Twenty_Thirteen
     * @since Twenty Thirteen 1.0
     */
    ?><!DOCTYPE html>
    <!--[if IE 7]>
    <html class="ie ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html class="ie ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>">
    	<meta name="viewport" content="width=device-width">

    Same issue, apparently theme independent.

    Thanks!

    Mike

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter michaelthehayes

    (@michaelthehayes)

    Thanks esmi.

    I deactivated all, no help.
    I renamed the plugin folder, replacing it with an empty folder, still no change.

    Thanks again,

    Mike

    Site url?

    Hello, I have same error too and many other.
    Please check this link http://validator.w3.org/check?uri=unlockiphone.co.uk
    These are errors in my theme. I want to remove them all becaseu I want to get more seo score by woorank. check this link http://www.woorank.com/en/www/unlockiphone.co.uk
    Please help me too for removing these all errors.

    @wordinvestor – you are not using the same theme, so your question is not the same. Please start your own thread, and note that these forums only support themes from this site so you may need to ask the developer of your theme for help with any theme-specific issues.

    developer syas that he close this theme and will not give any support. I was thinking that there will be many wordpress experts who can help mee.

    We can help you if you’re using a theme from here:

    http://wordpress.org/themes/

    If your theme isn’t supported, you’ll be better off with a new theme in any case.

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

The topic ‘Google Sitespeed tracking in section, not in header.php’ is closed to new replies.