Page 1 of 2 12 LastLast
Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by cuda View Post
    The XXXX are there so that indicates to me that your database does not have the account number in it. Also make sure just before the </body> tag in your home page template because you may have just the code above there and that could be your problem:

    PHP Code:
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . '/google_analytics.php');
    ?>
    The UH number is in the config in admin, I didn't see in the instructions that I had to enter it elsewhere.

    Plus I did enter the code just before the end body tag.
    The last few lines of my templates/custom/common/tpl_main_page.php are:
    Code:
    <!--eof- banner #6 display -->
    
    </div>
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>
    </body>
    I also made sure that my body statement had the $zv_onload statement in it.
    Code:
    ?>
    <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
    <?php
    What did I miss?

    betty

  2. #2
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I just went back to Google Analytics and it says "Receiving Data" so it must be finding it now?

    I don't know what the message below it means, there is a yellow explamation mark and says "Conversion Goals (0)" .

    thank you,

    betty

  3. #3
    Join Date
    Sep 2005
    Posts
    53
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hey Betty, you need to setup goals in Google's control panel, edit the settings of your website profile and complete the Conversion goals and funnel section.

  4. #4
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I have been trying to track down this error that came up tonight when I was doing an order to see if everything worked ok (please note the double // in path):

    Code:
    <!--bof- parse time display -->
    <!--eof- parse time display -->
    <!--bof- banner #6 display -->
    <!--eof- banner #6 display -->
    
    </div>
    <br />
    <b>Warning</b>:  main(includes/templates/custom/checkout_success//google_analytics.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/path/removed/public_html/store/includes/templates/custom/common/tpl_main_page.php</b> on line <b>184</b><br />
    <br />
    <b>Warning</b>:  main(includes/templates/custom/checkout_success//google_analytics.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/path/removed/public_html/store/includes/templates/custom/common/tpl_main_page.php</b> on line <b>184</b><br />
    <br />
    <b>Fatal error</b>:  main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/custom/checkout_success//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/path/removed/public_html/store/includes/templates/custom/common/tpl_main_page.php</b> on line <b>184</b><br />
    betty

  5. #5
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    0

    help question Re: Simple Google Analytics - Support

    Hi,

    I've installed Simple Google Analytics, and wanted to ask a quick question about a possible modification. My store is on a subdomain of my main site. Google says that in order to track subdomains in the same profile as the main domain, a line of code needs to be added to the normal Analytics call.

    The line that needs to be added is the one in bold. (This is the code as copied right off Google's help page)

    Code:
    <script>
      _uacct="UA-xxxx-x";
      _udn="mystore.com";
      urchinTracker();
    </script>
    So, do I just add this line to the google_analytics.php file like so:

    Code:
    <script type="text/javascript">
    _uacct = "' . GOOGLE_ANALYTICS_UACCT . '";
    _udn="mystore.com";
    urchinTracker();
    </script>';
    (with my domain in place of mystore.com)

    Should that work? Thanks!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by peggyc View Post
    So, do I just add this line to the google_analytics.php file
    Yes, that's the right place to add it.

    What happens when you do ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Dr. Byte,

    Any idea why I'm getting the double // in my error message above? I checked the google analytics file and it just has one / in it.

    thank you,
    betty

  8. #8
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Simple Google Analytics - Support

    post a copy of your /store/includes/templates/custom/common/tpl_main_page.php file for review.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by bettysue View Post
    Dr. Byte,

    Any idea why I'm getting the double // in my error message above? I checked the google analytics file and it just has one / in it.

    thank you,
    betty
    betty the double forward slashes may be a server setting or it may be a change to the get_template_dir() function in 1.3.7 either way it should not matter. To make it look nicer remove the '/' before 'google_analytics.php' from this line in your template:

    PHP Code:
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . '/google_analytics.php'); 
    To make it look like this

    PHP Code:
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . 'google_analytics.php'); 
    And if you used dr bytes suggestion to check if the file exists change that line too.

    I still do not see your google account number showing up in the tracking code on your home page so there is another issue.....But not sure how the XXXX could posible show up unless you have it entered in your dB or hard coded somewhere. You sure your account number is in your admin....I just don't see any other way for this code to spit our xxxxx unless that is the number in your dB and make sure it is on your live site and not a local test site.

    Sorry for the delay in response had some car troubles and been shopping around the last couple days for a new one.

    cuda
    ---------------------------------
    Barracuda Productions pure instincts

  10. #10
    Join Date
    Sep 2006
    Posts
    91
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    [FONT=Arial]Hi,[/FONT]

    [FONT=Arial]Yenmax.com store opened on[/FONT][FONT=Arial]website since August 2007. I have a sitemape index file, which is registered at google and Yahoo. [/FONT][FONT=Arial]Google Analytics says my [/FONT][FONT=Arial]PageRank not yet assigned. [/FONT][FONT=Arial]How long I have to wait to see my pageRank? Any idea? Please let my know.[/FONT]
    [FONT=Times New Roman][/FONT]

 

 
Page 1 of 2 12 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