Page 1 of 6 123 ... LastLast
Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Posts
    129
    Plugin Contributions
    1

    Default Re: Simple Google Analytics - Support

    This should work without any problems in 1.2.7 but I have not tested it. Follow the readme and if you have any issues I am happy to help. It really is a pretty simple mod.
    ---------------------------------
    Barracuda Productions pure instincts

  2. #2
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    i'm on step 2

    2. Make sure your body tag in includes/templates/[your_template] includes this code (if not see trouble shooting below it is not neccassary but an addition to your template needs to be made):

    <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

    which file is this?

    step 3 wasn't a problem, and 4 and 5 look like they will be easy enough once i get step 2 done
    Last edited by MB1; 15 Dec 2006 at 08:01 PM.

  3. #3
    Join Date
    Jul 2006
    Posts
    129
    Plugin Contributions
    1

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by MB1 View Post
    i'm on step 2

    2. Make sure your body tag in includes/templates/[your_template] includes this code (if not see trouble shooting below it is not neccassary but an addition to your template needs to be made):

    <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

    which file is this?

    step 3 wasn't a problem, and 4 and 5 look like they will be easy enough once i get step 2 done
    By default this is in includes/templates/[your_template]/common/tpl_main_page.php

    but could be located in includes/templates/[your_template]/common/tpl_header.php
    as well, depends on how your site has been templated.
    Last edited by cuda; 15 Dec 2006 at 08:36 PM. Reason: changed to proper file location
    ---------------------------------
    Barracuda Productions pure instincts

  4. #4
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    sweet i'll see if i can get past step 2 now.

    also i signed up to https://www.google.com/analytics/ and they say i should put in a code on every page i want to track will this module take care of all that stuff?

  5. #5
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    well it says it's working but only after i install the code from the site

    Code:
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-XXXXXXXX";
    urchinTracker();
    </script>
    btw i placed that code at the bottom of the includes/templates/[your_template]/common/tpl_main_page.php page just after the code from this module and before the </body>

    is there anything else i should do?

  6. #6
    Join Date
    Jul 2006
    Posts
    129
    Plugin Contributions
    1

    Default Re: Simple Google Analytics - Support

    Ok MB1 this is the code that should be at the bottom of your template (includes/templates/yourtemplate/common/tpl_main_page.php) just before the </body> tag (the code you posted is just the standard code from google and is included in the google_analytics.php file which you should have uploaded to your server in a folder named 'google_analytics'):

    PHP Code:
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . '/google_analytics.php');
    ?>
    So the code above is all that should be at the bottom of your template.... is it?

    This module, in theory, should take care of the rest. You will have to enter your google analytics account number in your admin->configuration->google analytics configuration.

    Remove the code provided by google and replace with the above Follow step 3. Then reload your site and view the source and at the bottom you should see the proper tracking code if everything is functioning properly. Let me know
    ---------------------------------
    Barracuda Productions pure instincts

  7. #7
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Waiting for Data so it must be working just fine thank you

  8. #8
    Join Date
    May 2012
    Posts
    28
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Ok so I followed all the instructions in the install.txt except for in my templates folder was no TPL_Main_Page.php... only a header and footer... so I skipped that step and went to admin tools sql patch... I opened the install sql file copied the entire file and pasted to the query box. I hit send. It returned a query result showing me exactly the same code I posted but didnt say anything about errors. But it also didnt say successful or anything like that... my site didnt break I just need to know if analytics is now fully functional and is there a way for me to test that it is?

  9. #9
    Join Date
    Sep 2011
    Posts
    27
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Your install.txt reads: "NOTE 1: Follow these set of instructions ONLY if you have never had any of the Simple Google Analytics Modules installed."

    What if you HAVE had a previous version of Simple Google Analytics Modules installed?

  10. #10
    Join Date
    Apr 2013
    Location
    Netherlands
    Posts
    6
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Can I add In-Page Analytics to this plugin? It has to be this code (this is a combination of existing and new lines):

    var _gaq = _gaq || [];
    var pluginUrl =
    '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
    _gaq.push(['_require', 'inpage_linkid', pluginUrl]);
    _gaq.push(['_setAccount', 'UA-XXXXXX-Y']);
    _gaq.push(['_trackPageview']);

    Can I put this in the field "Google Custom Code - After"? Or if not, how can I do this?

 

 
Page 1 of 6 123 ... LastLast

Similar Threads

  1. v150 Simple Google Analytics .sql error !
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Feb 2012, 11:33 PM
  2. Simple Google Analytics-not working
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Nov 2010, 06:07 PM
  3. Simple (From Google) Analytics Install
    By DagLindt in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2009, 10:46 PM
  4. Simple google analytics- help
    By Pet Herbal Remedies in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Oct 2008, 10:37 PM
  5. Simple Google Analytics not working
    By jvanree in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 May 2008, 03:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg