Re: Simple Google Analytics - Support
I've had the google analytics mod running for a while just fine. But I notice a week ago that no stats are being received by google. A quick view source of my site (www.tracyh.co.nz) reveals that half of the GA javascript is missing eg..
[FONT="Courier New"]<!--eof- site copyright display -->
<script type="text/javascript">
<!--
if(!pageTracker) {
var pageTracker = _gat._getTracker('my-ga-account-no');
pageTracker._initData();
pageTracker._trackPageview();
}
//-->
</script>
</div>
<!--bof- parse time display -->[/FONT]
(have replace the ga account no).
I've checked the GA mod code and it's the same as the original.
Any ideas?
Thanks very much
Tim Huffam
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
thuffam
I've had the google analytics mod running for a while just fine. But I notice a week ago that no stats are being received by google. A quick view source of my site (
www.tracyh.co.nz) reveals that half of the GA javascript is missing eg..
After double checking the code line for line - I found that even though the ga mod code files were the same size - the one on the site looks like it has been hacked - as exactly 296 characters of the file tpl_footer_googleanalytics.php had been replaced with spaces. These ones specifically:
[FONT="Courier New"]<script type="text/javascript">
<!--
if(!gaJsHost) {
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
}
//-->
</script>[/FONT]
Has anyone else experienced this sort of thing?
Thanks again
Tim Huffam
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
scrap
First of all, thanks for this support thread!
I've come to a halt in the installation process at step 4, from which I'm to lame proceed. I've put the googleanalytics-INSTALL.sql and googleanalytics-UNINSTALL.sql in /public_html root and all the other files in the right directories (admin, includes etc), but now I actually want to install it. The readme says
When I go to Tools->Install SQL i see, in strong red, NOTE: Zen Cart database-upgrade scripts should NOT be run from this page.. I mean, isn't this exactly what we're doing?
Anyhow, how do I proceed? Do I need to run a SQL query in the upper box?
Heeeelp!
Quote:
NOTE: Zen Cart database-upgrade scripts
It didn't say you could not run Modules queries. It just trying to warn you about updating the zen cart from there. Just copy and past the Simple Google Analytics sql code there nothing to worry about.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
noobuser
Hello,
What I have done is that I added the analytics code in the header file - i know this is not the best way to do - but it works. I don't know what the implication would be though.
Hi,
I believe the issue is when Google will be called. If the code is put in the footer, the calls are made after your page has already loaded which means the visitor won't notice it.
If it is put in the header, the calls will be made first. So if the Google servers are slow, it will delay your page loading.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
artycles
OK patience is rewarded thanks for the reminder about the time thing. that final tweak must have done the trick it's finally got a tick in the box not an exclamation mark. Now I only need to wait for the figures to come in.:clap:
Can you please tell me what you did to "tweek" your site.
I too have an exclamation mark, and can't get it to recieve. I think I've set everuthing ok in the analytics site, I haven't however set up Goals, all these are still set to Off. Is this a problem??
I'll wait for the prorietory 24 hours and see what occurs.
Re: Simple Google Analytics - Support
Jeasus I'm getting tired of this! Thanks btw for helping out with the "install" instructions of the code, much appreciated!
Anyhow, the code doesn't show up in my shop. I've read post #888 (and several more). I've narrowed it down, i.e. I know i'm working in the correct file (my_template/custom/tpl_main_page.php), but I can't get it to work anyway. To be, as far as I know, 100% sure I added two comments, namely <!-- A --> and <!-- B --> respectively.
1. my_template/custom/tpl_main_page.php
Code:
<!--eof- banner #6 display -->
<!-- A -->
</body>
<!-- B -->
--> source code
Code:
<!--eof- banner #6 display --><!-- A --></body><!-- B --></html>
2. my_template/custom/tpl_main_page.php
Code:
<!--eof- banner #6 display -->
<!-- A -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>
<!-- B -->
--> source code
Code:
<!--eof- banner #6 display --><!-- A -->
Can someone pleeeease tell me what i'm doing wrong? Since I'm seeing <!-- A --> I have to be editing in the correct file, right?
I'm running 1.3.x and the $zv_onload is there. I'm still able to access the settings via Admin --> Configuration --> Google Analytics. I do not type the code, I copy paste it from the readme.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
scrap
Jeasus I'm getting tired of this! Thanks btw for helping out with the "install" instructions of the code, much appreciated!
Anyhow, the code doesn't show up in my shop. I've read
post #888 (and several more). I've narrowed it down, i.e. I know i'm working in the correct file (my_template/custom/tpl_main_page.php), but I can't get it to work anyway. To be, as far as I know, 100% sure I added two comments, namely <!-- A --> and <!-- B --> respectively.
1. my_template/custom/tpl_main_page.php
Code:
<!--eof- banner #6 display -->
<!-- A -->
</body>
<!-- B -->
--> source code
Code:
<!--eof- banner #6 display --><!-- A --></body><!-- B --></html>
2. my_template/custom/tpl_main_page.php
Code:
<!--eof- banner #6 display -->
<!-- A -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>
<!-- B -->
--> source code
Code:
<!--eof- banner #6 display --><!-- A -->
Can someone pleeeease tell me what i'm doing wrong? Since I'm seeing <!-- A --> I have to be editing in the correct file, right?
I'm running 1.3.x and the $zv_onload is there. I'm still able to access the settings via Admin --> Configuration --> Google Analytics. I do not type the code, I copy paste it from the readme.
A link to your store would help.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
countrycharm
A link to your store would help.
Thanks, but no need, it kind of resolved itself :unsure:
For other viewers: i honestly can't tell what was wrong. I had disabled the footer by uncommenting * $flag_disable_footer = true; <br /> * in tpl_footer.php; result: */ $flag_disable_footer = true; <br /> /*. I un-uncommented (uhm, made it a comment again :cool: ) the line and tried again, but placed the slashes differently; result: */ $flag_disable_footer = true;/* <br />. Woilá, it worked. Don't ask me how, but it did.
My current source code:
Code:
<!--eof- banner #6 display -->
<!-- A -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
pageTracker._initData();
pageTracker._trackPageview();
</script></body>
<!-- B --></html>
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
scrap
Thanks, but no need, it kind of resolved itself :unsure:
For other viewers: i honestly can't tell what was wrong. I had disabled the footer by uncommenting * $flag_disable_footer = true; <br /> * in tpl_footer.php; result: */ $flag_disable_footer = true; <br /> /*. I un-uncommented (uhm, made it a comment again :cool: ) the line and tried again, but placed the slashes differently; result: */ $flag_disable_footer = true;/* <br />. Woilá, it worked. Don't ask me how, but it did.
My current source code:
Code:
<!--eof- banner #6 display -->
<!-- A -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
pageTracker._initData();
pageTracker._trackPageview();
</script></body>
<!-- B --></html>
Glade you work it out.
Re: Simple Google Analytics - Support
I have SGA installed and was working fine for some time. Now it is not working - i.e., my stats show '0' all the time.
http:// www. salevalley .com
Can someone familiar with this module help me how to go about it.
Thanks