Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Google Analytics


  #1  
Old Apr 2, 2013, 10: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, 03:05 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 04:32 PM
juggledad's Avatar
juggledad
 
23,765 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, 02: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, 02:16 AM
trescuatrotres
 
11 posts · Nov 2012
Url is: www.trescuatrotres.es
  #6  
Old Apr 3, 2013, 04:32 AM
juggledad's Avatar
juggledad
 
23,765 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



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


All times are GMT -6. The time now is 11:49 AM.


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