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

Simple Google Analytics - Support

Views: 451,066

Results 181 to 200 of 2,165
1 Jun 2007, 9:41 PM
#181
econcepts avatar

econcepts

Totally Zenned

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

Simple Google Analytics - Support

fluxem:

anyone have a suggestion? :lookaroun

Typically, if you want to run multiple JS scripts "On Load" you would need to separate them with a comma as so:

onLoad="preloadImages(), yournextscripthere(), ifyouhaveanother();"

4 Jun 2007, 10:51 AM
#182
nellie avatar

nellie

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have this contribution running on a ver 1.3.7 site, everything is feeding through nicely, with the exception of the 'Goal Value' information. What could be causing this data not to be passed through?

4 Jun 2007, 4:35 PM
#183
fluxem avatar

fluxem

New Zenner

Join Date:
Jul 2006
Location:
California
Posts:
44
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Typically, if you want to run multiple JS scripts "On Load" you would need to separate them with a comma as so:

onLoad="preloadImages(), yournextscripthere(), ifyouhaveanother();"

Econcepts,
thank you for your reply.. I tried the above before but could not get it to work.. here is what I notice right now,, when I view the source I do not see the onLoad event printing at all..

here is what I have for my body tag:

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

here is the site url: http://www.foureverfunky.com

5 Jun 2007, 2:24 AM
#184
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Nellie:

I have this contribution running on a ver 1.3.7 site, everything is feeding through nicely, with the exception of the 'Goal Value' information. What could be causing this data not to be passed through?

'Goal Value' (if you are talking "Goal Tracking") is not a part of the current analytics module. The module includes Google Analytics and Ecommerce tracking.

Goals can be added pretty easily (I've done it hundreds of times) and work well. I am actually just completing a Video Tutorial on installation etc.. of all Google tracking components. I thought I would have it last week, but a few items came up. So I am hoping to have that tutorial up and running on my site by end of this week.

Let me know if you are talking "Goal Tracking Values" or something else. I can tell you how to setup the Goal Tracking.

5 Jun 2007, 2:51 AM
#185
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

fluxem:

here is what I have for my body tag:

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

It looks like you've got your syntax messed up right here. Missing some quotes.

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="**'.$zv_onload.', preloadImages()"'**; ?>>
5 Jun 2007, 3:42 AM
#186
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Without reading all 19 pages.....Sorry but had a few issues when I first installed but haven't had a need to come back since - I like these plug and work kind of mods :smile:

I installed this mod in a v1.36 store when it first came out and now need to install it in a v 1.37 store. Is the file in the d/l section compatible with v1.37 and are the instructions the same for v1.37 or do I need to search the threads for tweaks and things to do to make it work?

thank you

betty

5 Jun 2007, 6:51 AM
#187
nellie avatar

nellie

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

'Goal Value' (if you are talking "Goal Tracking") is not a part of the current analytics module. The module includes Google Analytics and Ecommerce tracking.

If I go to Google Analytics, and then click on 'Goals', the 'Overall Goal Value' is a flat line, 0.00. Is this as it should be, or should it be recording data?

5 Jun 2007, 4:19 PM
#188
fluxem avatar

fluxem

New Zenner

Join Date:
Jul 2006
Location:
California
Posts:
44
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

It looks like you've got your syntax messed up right here. Missing some quotes.

ya I agree.. so back to my original question..

i have rollovers on my site.. using onLoad="preloadImages();"

how would I combine that with

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
5 Jun 2007, 5:28 PM
#189
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

bettysue:

Without reading all 19 pages.....Sorry but had a few issues when I first installed but haven't had a need to come back since - I like these plug and work kind of mods :smile:

I installed this mod in a v1.36 store when it first came out and now need to install it in a v 1.37 store. Is the file in the d/l section compatible with v1.37 and are the instructions the same for v1.37 or do I need to search the threads for tweaks and things to do to make it work?

thank you

betty

Betty,
This contrib. should work the same with no modification. I have it running on a 1.3.6 and 1.37 platform.

5 Jun 2007, 5:29 PM
#190
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Nellie:

If I go to Google Analytics, and then click on 'Goals', the 'Overall Goal Value' is a flat line, 0.00. Is this as it should be, or should it be recording data?

That is because:

  1. You probably have not setup any Goals yet (this is NOT done by simply installing the Google Analytics Mod)

  2. Once installed, you have to enter the proper php code to dynamically generate the actual Goal value.

If you need help PM me.

5 Jun 2007, 6:05 PM
#191
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

fluxem:

ya I agree.. so back to my original question..

i have rollovers on my site.. using onLoad="preloadImages();"

how would I combine that with

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

You can achieve this effect by using the "overrides" system in Zen Cart. (In case you don't want to go that route, I included the code below for you to use, but I would recommend going with the overrides since it allows the js to be automatically loaded on every page (you may miss a few pages if you try to insert it manually)

Here would be the preferred method (using overrides):

Step 1: Create a javascript file that contains the "PreLoad" event fuctions, and save it with a name that starts like this "jscript_[yourFileNamehere].js". Upload that javascript file into your template's jscript folder. (Any file placed in this folder with "jscript_" in the front will automatically be included in every page on your site).

Step 2: Create a file and save it as on_load_[yourSelectedFileName].js. In that file, only include the following line of code preloadImages();
Upload that file to your templates jscript/on_load folder in order to have the on-load events trigger properly.

Here would be the "manual" method:

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

That should do it. :smile:

5 Jun 2007, 10:26 PM
#192
fluxem avatar

fluxem

New Zenner

Join Date:
Jul 2006
Location:
California
Posts:
44
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts thank you very much!

6 Jun 2007, 3:22 AM
#193
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

fluxem:

econcepts thank you very much!

Anytime. Glad I could help.

If you look in the "docs" directory of your Zen install, you'll find a few files relating to JavaScript and OnLoad overrides. You may want to read them to get familiar with it.

6 Jun 2007, 1:59 PM
#194
craigkendall avatar

craigkendall

New Zenner

Join Date:
May 2007
Posts:
46
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

What do you mean "they" register? Are you talking a "successful sale"? Are you talking "Conversion Tracking" (within Google Analytics)?

Conversion tracking will only register if the click came through a paid search ad (per Google).

Let us know exactly "what" is not tracking so we can point you in the right direction as to "why".

Yes... sorry. Bad choice of words. Successful sale. I have more sales than Google Analytics is showing. Your statement about coming through ad words makes sense, but in doing some research it looks like it may be coming through Google search of any type. But don't hold me to that. I'll try to monitor it and see if any patterns develop.

Bottom line I think I am "hearing" here is that there is some limitation to tracking of goals and ecommerce in the add on... is that right? For goals will it only track buyers who originally entered my store through a google search?

Thanks for teaching me!

7 Jun 2007, 8:38 PM
#195
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Simple Google Analytics - Support

econcepts:

That is because:

  1. You probably have not setup any Goals yet (this is NOT done by simply installing the Google Analytics Mod)
  2. Once installed, you have to enter the proper php code to dynamically generate the actual Goal value.
    If you need help PM me.

econcepts-

If you code post some examples to the support thread for all to see and learn from that would be great! Thanks.

Woody

7 Jun 2007, 9:13 PM
#196
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Woodymon:

econcepts-

If you code post some examples to the support thread for all to see and learn from that would be great! Thanks.

Woody

Good idea Woody. I have a few video tutorials that will be going up on my site shortly. The code I have I posted earlier on in this thread.

For setting up goals etc.. that doesn't involve "code" as much as it involves putting the right items in the right places of Google Analytics (which is easier to explain and show it looks like) :smile:

I'll make it a point to put that video up here in the next day or so. It should hopefully clarify the difference between "all items" that Google offers as well as show how to set it all up (on the google side).

Inserting the code alone (that I posted) will only get you "part of the way there".

Again, I'll make it a point to put that video up in the next day or so. I'll post here when it is live.

7 Jun 2007, 9:29 PM
#197
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

craigkendall:

I have more sales than Google Analytics is showing.

Again, you can track sales in several different places within Google analytics (under Goals, under standard Analytics Ecommerce tracking, and under Conversion Tracking ... all 3 are independent of each other as to what and how they record the data).

Having said that, and assuming you mean that "more sales" than what Google Analytics Ecommerce Tracking (not conversion tracking, and not Goal tracking) is reporting, then this is only possible under two circumstances:

  1. You have not got the tracking code install correctly

  2. You are using a "third party / offsite" payment processor (like PayPal, 2CO, etc...) that requires the user to "click a button" at the end of the sale to "return to the merchant" (which would then trigger the Google Tracking code on the "checkout success" page.

craigkendall:

Your statement about coming through ad words makes sense,

This is actually a fact (coming through Adwords Ads) IF you are talking "Conversion Tracking" (it dos not pertain to traffic that comes from organic search or direct links etc..). It comes directly from the Google Website and is defined as such (the difference between analytics and conversion tracking):
https://adwords.google.com/support/bin/answer.py?answer=26808&query=conversion+tracking&topic=&type=

craigkendall:

but in doing some research it looks like it may be coming through Google search of any type. But don't hold me to that. I'll try to monitor it and see if any patterns develop.

You should easily be able to tell by looking at your analytics where the traffic is actually coming from. Keep in mind that "cpc" means Paid Search (Cost Per Click). Google reports information on that as well as "organic" right in the reports section.

craigkendall:

Bottom line I think I am "hearing" here is that there is some limitation to tracking of goals and ecommerce in the add on... is that right? For goals will it only track buyers who originally entered my store through a google search?

Thanks for teaching me!

No. The add on (any of them) adds the "Analytics Code" needed to track Goals and Ecommerce. To actually make Google track goals and Ecommerce figures though, you HAVE to set that up within your Google Analytics account.

It's really tough to explain in words. I'll have a video of it here soon for everyone to look at. It may explain a lot.

8 Jun 2007, 1:25 AM
#198
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I could use a hand with this.

Yea yea, it was so easy to install... The SQL patch went well, and yet when I go to Google Analytics Configuration there's nothing there but the title bar.

The script at the bottom of the pages have the default X's. and so I have no way to enter my google account number.

Can someone please venture to suggest what might be the problem?

Cuda?

:dontgetit

8 Jun 2007, 1:39 AM
#199
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Well, the temporary solution was to go into the database and update the row myself with the correct UA #.

Google is now waiting for data, and so I assume the rest will be forthecoming.
However, that's not really how this is suppose to work.

9 Jun 2007, 5:17 AM
#200
dtb avatar

dtb

New Zenner

Join Date:
Apr 2005
Posts:
47
Plugin Contributions:
0

Re: Simple Google Analytics - Support

hi again...

so lookin at this google help page:
https://adwords.google.com/support/bin/answer.py?answer=27203&topic=8198

i'm gonna go through the page at the above link...

Enabling E-Commerce Tracking

The first step of tracking e-commerce transactions is to enable e-commerce reporting for your website's profile. To enable e-commerce reporting, please follow these steps:

   1. Log in to your account.
   2. Click Edit next to the profile you'd like to enable.
   3. On the Profile Settings page, click edit next to Main Website Profile Information.
   4. Change the E-Commerce Website radio button from No to Yes. 

ok, did this...

Receipt Page Format

The second step is to ensure that the tracking code is included in the receipt page in the standard fashion. This may be done using a server side include, or other template driver, or can simply be hand-coded into your HTML code:

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
      _uacct="UA-xxxx-x";
      urchinTracker();
    </script>

i believe this is what the mod for zen actually does, so i believe this part is also done....

 Next, somewhere in the receipt below the tracking code, the following lines need to be written by your engine. Everything in brackets should be replaced by actual values, as described in the Parameter Reference, below.

    <form style="display:none;" name="utmform">
    <textarea id="utmtrans">UTM:T|[order-id]|[affiliation]|
    [total]|[tax]| [shipping]|[city]|[state]|[country] UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|
    [quantity] </textarea>
    </form>

Finally, the utmSetTrans function must be called after the form is submitted in order to record the transaction. This can be most easily accomplished through a body onLoad event within the opening <body> tag:

    <body onLoad="javascript:__utmSetTrans()">

If you don't have the ability to edit the body tag, you can call the utmSetTrans function within a separate script tag as long as you ensure that the function is called after the form:

    <script type="text/javascript">
    __utmSetTrans();
    </script>

do i need to do these manually? i dont' think i can...

everything works fine in analytics, with the exception of the 'ecommerce'
(when i'm looking at my ECommerce Overview, i see a flatline with all "0"s and 0%'s....

any help, would be appreciated.

(i know i should just wait for the videotutorial, but i'm having some time for this, and wouldn't mind getting it working this weekend...

:)

ty in advance.

bill