Google Analytics
Good Afternoon,
I'm trying to install the Google Analytics Tracking Code but but Google don't recognize it. I copied it on Appearance/Editor/head.php and it seems like this: <!DOCTYPE html> <?php global $montezuma, $bfa_css, $is_IE; if( $is_IE ): ?> <!--[if IE 8 ]><html class="ie8 notie67" <?php language_attributes(); ?>><![endif]--> <!--[if IE 9 ]><html class="ie9 notie67" <?php language_attributes(); ?>><![endif]--> <!--[if (gt IE 9)]><html class="notie67" <?php language_attributes(); ?>><![endif]--> <?php else: ?> <html class="notie67" <?php language_attributes(); ?>> <?php endif; ?> <head> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-39783299-1', 'trescuatrotres.es'); ga('send', 'pageview'); </script> <?php echo $montezuma['insert_head_top']; ?> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <?php if( $is_IE ) echo $montezuma['meta_xua_compatible']; ?> <?php echo $montezuma['meta_viewport']; ?> <title><?php wp_title( '←', true, 'right' ); ?></title> <?php if( $montezuma['xfn_link'] === 1 ) { ?><link rel="profile" href="http://gmpg.org/xfn/11" /><?php } ?> <?php echo $bfa_css; ?> <?php if( $montezuma['favicon_url'] != '' ) { ?> <link rel="shortcut icon" href="<?php echo $montezuma['favicon_url']; ?>" type="image/ico" /> <?php } ?> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php wp_head(); ?> <?php echo $montezuma['insert_head_bottom']; ?> Thanks a lot for your help. |
Editing other than the virtual files is not a great idea as they will get overwritten in an upgrade and as you found out the edits may not even work.
Try adding your analytics code to the theme options under Head > Insert code |
What version of Montezuma and WP?
What is teh URL? How do you know it is not working? |
Good morning, thanks a lot for the response.
Current version are: Wordpress 3.5.1 Montezuma 1.1.3 In fact it's quite weird. I pasted the tracking code yesterday and today seems to work as I have a report with the visits from yesterday. However on the Tracking Info Tab in the Google Analytics page it says Status: Tracking not installed |
Url is: www.trescuatrotres.es
|
check it again over the next few days and see what happens
|
All times are GMT -6. The time now is 12:06 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.