Zen Cart Logo
Forums / All Other Contributions/Addons / Simple Google Analytics - Support

Simple Google Analytics - Support

Views: 451,067

Results 221 to 240 of 2,165
6 Jul 2007, 2:11 AM
#221
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Simple Google Analytics - Support

Max70:

I'm sorry the page is https://www.amurianaglass.com/TEST
thank's

Max,

It looks like the code is in fact on that page (near the footer). That leads me to wonder if the actual url you are submitting to Google is correct ... the UA account # is correct, or the website to which you associated the analytics account is correct.

All these are within the Google Analytics interface (not the module, but the interface on Google itself).

If you PM me, I might be able to get some time tomorrow to quickly look at your Google Account setup to at least steer you in the right direction.

6 Jul 2007, 6:29 AM
#222
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Eric,

If you have time would you mind taking a look to see if I have GA installed correctly? Thanks! Josh

6 Jul 2007, 11:25 AM
#223
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

PastGenToys:

Eric,

If you have time would you mind taking a look to see if I have GA installed correctly? Thanks! Josh

Josh,

I sent you a PM with details on what is needed to confirm proper installation.

7 Jul 2007, 4:36 AM
#224
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Sorry for the delayed resposne... PM'd ya back - thanks!

7 Jul 2007, 11:13 AM
#225
g1media avatar

g1media

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi there,
Step 1 says to upload the included files and directories to the zen cart installation.

Should these follow the over-ride format?

Thanks,
Stevie

7 Jul 2007, 12:18 PM
#226
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

g1media:

Hi there,
Step 1 says to upload the included files and directories to the zen cart installation.

Should these follow the over-ride format?

Thanks,
Stevie

The only thing you'll have to change is the directory that says "your-template". Change that you the name you gave to YOUR actual custom template, and upload away. There are no files that are overwritten.

12 Jul 2007, 6:11 PM
#227
taipa avatar

taipa

New Zenner

Join Date:
Nov 2005
Posts:
54
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Mine's still being wonky, I think.
I installed this mod and set it up on the 5th. As far as I understand, it should automatically place the proper ecommerce code on the receipt pages? Or am I wrong?

My Ecommerce tracking works, but only some of the time. It doesn't catch all of the transactions. For example, on the 8th I made two separate sales, but GA only shows 1.
It even skipped the transaction ID of the missing order - the GA ecommerce transaction report shows orders 381 and then 383 (where obviously order #382 is the one missing from GA).

It's not a huge deal, since obviously with small numbers like that I can easily keep track of it in my Zen admin, but it makes me wonder if I did something wrong and caused a problem somewhere that could cause more issues in the future?

12 Jul 2007, 6:50 PM
#228
taydu avatar

taydu

New Zenner

Join Date:
Aug 2006
Posts:
60
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Please help i followed every steps in read me but still getting "tracking unknow" in google analytics.

https://www.bestbuyfta.com/zencart

can you check it out and see what wrong

thanks

20 Jul 2007, 9:04 PM
#229
studeo avatar

studeo

Zen Follower

Join Date:
Jan 2007
Posts:
198
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I just read 23 pages of posts. I had installed this mod a couple of months ago.

My question:

I want to have ecommerce tracking. Do I add to the bottom of the checkout_success page any of the code provided by google? If so, what?

And the fields in the google code such as [state] etc........are they dynamic? Do I have to customize them?

Do I need to add anything on the checkout page at all?

Thanks much

20 Jul 2007, 9:30 PM
#230
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Simple Google Analytics - Support

Thanks for this mod...

20 Jul 2007, 10:47 PM
#231
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

studeo:

I just read 23 pages of posts. I had installed this mod a couple of months ago.

My question:

I want to have ecommerce tracking. Do I add to the bottom of the checkout_success page any of the code provided by google? If so, what?

And the fields in the google code such as [state] etc........are they dynamic? Do I have to customize them?

Do I need to add anything on the checkout page at all?

Thanks much

If you have installed the "Simple Google Analytics" module from the downloads section here, then you do not have to do anything in order to get E-Commerce tracking installed FROM A CODE PERSPECTIVE. It is already included in the code for the mod.

HOWEVER, you DO need to login to your Google Analytics account and let it know that your site is an "E-Commerce site" or tracking will not work. You do this by checking the radio button that says "E-Commerce Website" from the "Edit" section of your main website profile.

21 Jul 2007, 12:21 AM
#232
studeo avatar

studeo

Zen Follower

Join Date:
Jan 2007
Posts:
198
Plugin Contributions:
0

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

23 Jul 2007, 1:51 PM
#233
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

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).

24 Jul 2007, 1:31 PM
#234
studeo avatar

studeo

Zen Follower

Join Date:
Jan 2007
Posts:
198
Plugin Contributions:
0

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

24 Jul 2007, 7:38 PM
#235
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

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.

24 Jul 2007, 9:09 PM
#236
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

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...
<?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!

24 Jul 2007, 9:14 PM
#237
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

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?

24 Jul 2007, 9:49 PM
#238
mdegeiso avatar

mdegeiso

New Zenner

Join Date:
Mar 2007
Posts:
25
Plugin Contributions:
0

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

25 Jul 2007, 12:02 AM
#239
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

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?

25 Jul 2007, 1:30 PM
#240
studeo avatar

studeo

Zen Follower

Join Date:
Jan 2007
Posts:
198
Plugin Contributions:
0

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:

**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):

  1. Add the following lines (in bold) to your tracking code on both your store site and your shopping cart pages: <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">**1. >
  2. </script>

<script type="text/javascript">
_uacct="UA-xxxx-x";
_udn="none";**
_ulink=1;**
urchinTracker();
</script><B>1. >

  1. Change the links from the main site to the secure site to use __utmLinker as follows. If your current links look like: <a href="https://www.securecart.com/?store=parameters">Purchase Now</a>

change them to:
</B>

<script type="text/javascript">

document.write('<a href="javascript:__utmLinker(\'https://www.securecart.com/?store=parameters\');">Purchase Now</a>');

</script>

<noscript>

<a href="https://www.securecart.com/?store=parameters">Purchase Now</a>

</noscript>

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 <body> tag and the JavaScript call. ***

anything here apply?