Re: Simple Google Analytics - Support
Thanks.
I had my first 3 sales last week but they didnt register...thats why I asked. might there be a conflict with authorize.net processing that you know of?
I have ecommerce site checked off from the beginning.
Thanks again
Re: Simple Google Analytics - Support
There shouldn't be any conflict with Authorize.net at all. Providing you have the tracking code in place properly, it should all register just fine.
I use Authnet on the vast majority of sites I work with (Zen related) and they all record Google Analytics (including E-Commerce Tracking) just fine.
Maybe run a test transaction yourself to see if it records a sale. If you go through the process yourself you may be able to find out if there is a glitch in the process.
You would also be able to do a view source after you complete your transaction (on the thank you page) and be able to find out if the E-Commerce tracking is present and filled with data).
Re: Simple Google Analytics - Support
Thanks Eric...that was a good idea.
I did run a test sale and the info is written in the google analytics source code when I viewed it.
What has been your experience in the amount of time it takes google to register the info on the analytics account?
Thanks
Re: Simple Google Analytics - Support
I am still not able to get Google to say anything but "tracking status unknown: The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website."
I set the setting to YES it is an ecommerce site on my Googly Analytics profile.
I'm pretty sure I have the codes in the correct spots.
The only thing I was unclear about is whether I am supposed to put the codes from the mod AND Google's code into the common/tpl
_main_page.
When viewing the source the code DOES show up on my main page.
Re: Simple Google Analytics - Support
OK finally working!
After reading through pages of this thread.....
1. DO NOT put in the code Google Analytics provides...
2.Replaced the code the mod provided with this one provided by DrByte...
Quote:
<?php
if (file_exists($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'))
{
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
and voila!
we're up and running!
Re: Simple Google Analytics - Support
khopek,
What version of the mod are you using? You shouldn't have to alter any code at all for the version available in the downloads section of the Zen Cart website? All you need to know is your Google Analytics ID number.
Plug that into the configuration section in the admin, and you're up and running?
Re: Simple Google Analytics - Support
I recently installed the google analytics and now I noticed the following error message after completing a purchase:
Warning: Invalid argument supplied for foreach() in C:\Inetpub\store\index.php on line 60
The line it refers to is in bold below:
/**
* Read the "on_load" scripts for the individual page, and from the site-wide template settings
* NOTE: on_load_*.js files must contain just the raw code to be inserted in the <body> tag in the on_load="" parameter.
* Looking in "/includes/modules/pages" for files named "on_load_*.js"
*/
$directory_array = $template->get_template_part(DIR_WS_MODULES . 'pages/' . $current_page_base, '/^on_load_/', '.js');
foreach ($directory_array as $value) {
$onload_file = DIR_WS_MODULES . 'pages/' . $current_page_base . '/' . $value;
$read_contents='';
$lines = @file($onload_file);
foreach($lines as $line) {
$read_contents .= $line;
}
$za_onload_array[] = $read_contents;
}
Any help would be appreciated
Mike
www.twowheeltannery.com
Re: Simple Google Analytics - Support
Did you change anything else in your cart?
If it had to do specifically with the Google Analytics module, I would think it would appear on ANY page the analytics is on.
Did you alter the code on the checkout success page at all?
One area you may want to check is to make sure you have the "on_load" event in the proper directory on the server for Google Analytics.
It should have come with a javascript file that gets uploaded to the /includes/modules/pages/checkout_success directory.
Did you upload that file as well?
Re: Simple Google Analytics - Support
Google still not tracking my sales....
Could there be an issue switching to an ssl page where google loses track...im sure you have ssl and yours is working right?
I dont know.
I found his on their help site:
Quote:
If your website initiates a purchase checkout process on a separate store site
(for example, if you send customers from www.mystore.com to www.securecart.com):
- Add the following lines (in bold) to your tracking code on both your store site and your shopping cart pages: [FONT=Courier New, Courier, mono]<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">[/FONT]
- [FONT=Courier New, Courier, mono]</script>[/FONT]
[FONT=Courier New, Courier, mono]<script type="text/javascript">[/FONT]
[FONT=Courier New, Courier, mono]_uacct="UA-xxxx-x";[/FONT]
[FONT=Courier New, Courier, mono]_udn="none";[/FONT]
[FONT=Courier New, Courier, mono]_ulink=1;[/FONT]
[FONT=Courier New, Courier, mono]urchinTracker();[/FONT]
[FONT=Courier New, Courier, mono]</script>[/FONT]
<B>
- Change the links from the main site to the secure site to use [FONT=Courier New, Courier, mono]__utmLinker[/FONT] as follows. If your current links look like: [FONT=Courier New, Courier, mono]<a href="https://www.securecart.com/?store=parameters">Purchase Now</a>[/FONT]
change them to:
</B>
[FONT=Courier New, Courier, mono]<script type="text/javascript">[/FONT]
[FONT=Courier New, Courier, mono]document.write('<a href="javascript:__utmLinker(\'https://www.securecart.com/?store=parameters\');">Purchase Now</a>');[/FONT]
[FONT=Courier New, Courier, mono]</script>[/FONT]
[FONT=Courier New, Courier, mono]<noscript>[/FONT]
[FONT=Courier New, Courier, mono]<a href="https://www.securecart.com/?store=parameters">Purchase Now</a>[/FONT]
[FONT=Courier New, Courier, mono]</noscript>[/FONT]
The code above provides links for users with or without JavaScript enabled. It's important to note that apostrophes need to be escaped with a backslash where they appear in the link or link text.
Important: if your pages include a call to urchinTracker(), utmLinker(), utmSetTrans(), or utmLinkPost(), your Analytics tracking code must be placed in your HTML code above any of these calls. In these cases the tracking code can be placed anywhere between the opening [FONT=Courier New, Courier, mono]<body>[/FONT] tag and the JavaScript call.
anything here apply?