Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Google Analytics


  #1  
Old Apr 2, 2013, 09:14 AM
trescuatrotres
 
11 posts · Nov 2012
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( '&larr;', 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.
  #2  
Old Apr 2, 2013, 02:05 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
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
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Apr 2, 2013, 03:32 PM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What version of Montezuma and WP?
What is teh URL?
How do you know it is not working?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Apr 3, 2013, 01:16 AM
trescuatrotres
 
11 posts · Nov 2012
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
  #5  
Old Apr 3, 2013, 01:16 AM
trescuatrotres
 
11 posts · Nov 2012
Url is: www.trescuatrotres.es
  #6  
Old Apr 3, 2013, 03:32 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
check it again over the next few days and see what happens
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
goolge anlytics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Analytics and Adsense zzsimonb eCommerce & Atahualpa 15 Feb 20, 2012 06:36 PM
Where do I put google analytics? daniel jones Header configuration & styling 17 Feb 1, 2012 07:51 PM
Google Analytics is crashing IE8 cleask Center area post/pages 5 Feb 9, 2010 06:01 AM
Another Google Analytics Question.. dilly Plugins & Atahualpa 2 May 27, 2009 08:50 AM
Google Analytics fratelli78 Atahualpa 3 Wordpress theme 1 May 21, 2009 06:12 PM


All times are GMT -6. The time now is 09:30 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.