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

Simple Google Analytics - Support

Views: 451,140

Results 621 to 640 of 2,165
15 Feb 2008, 7:22 PM
#621
econcepts avatar

econcepts

Totally Zenned

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

Simple Google Analytics - Support

JackA:

Thanks.

I'm asking the following for the benefit of others and because the reports are only generated once a day. I pasted it in the tpl_main_page.php just before the </body> tag, correct? So, a live page now shows this at the bottom (my UA id hidden here):

<!--eof- site copyright display --> </div> <!--bof- parse time display --> <!--eof- parse time display --> <!--bof- banner #6 display --> <!--eof- banner #6 display --> <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("[B]UA-XXXXXXX[/B]"); pageTracker._initData(); pageTracker._trackPageview(); </script> </body> </html> ```

Jack,

You did not enter your Google Analytics Tracking ID number. That is why you are getting no results. See the highlighted area I have above (in red).

That number needs to be YOUR number and is configured form within the admin of Zen. You get the number from within your Google Analytics account itself.

Right now all you have is the example data of "UA-xxxxx-x". You need your number in there for it to work.

15 Feb 2008, 7:25 PM
#622
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

JackA:

OK, I notice that the Google account ID and the Google account number are slightly different. The ID is UA-xxxxxxx but the account number for a specific url is UA-xxxxxxx-x, I suppose because I am tracking several sites.

So, I went back to Configuration > Google Analytics Configuration and added the -x at the end of the account number, which was not there before. Was this the problem? It appears I can't find out till tomorrow.

Jack,

See my previous post. On this topic. You still have not entered your actual tracking id number that Google gives you when opening a Google Analytics account. You are trying to track your site stats with a "sample data bit" (that being UA-xxxxxx-x). It needs to be your unique tracking id that Google assigns you.

15 Feb 2008, 7:29 PM
#623
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

bsp:

I am trying to install this Google analytics as new, but i am confused...

"1. After you have identified the directory that your template is running from and determined where you will be uploading the files to,
upload the included install files and directories to your zen cart site."

Upload which of the many files and directories? To which one of my custom templates.....? I have a few custom templates, or is that wrong?

bsp,

You upload everything you see in the install package with the exception of the "readme and sql files". Those are not needed.

Where you see "your_template", replace that with the actual name of the directory you are using to run your CUSTOM template from. This will activate Zen Cart overrides as needed.

So if your template directory (for your custom template) is called "bspsite" then you would need to add the files and directories found under the "your_template" folder to the folder on your server called "bspsite". An easy way to accomplish this is to simply rename the folder called "your_template" to "bspsite" BEFORE you upload anything.

Then, just drag and drop the files up to your admin directory and your all set. No overwrites to worry about.

Also, don't forget to follow STEP 3 and install the SQL patch after uploading your files.

15 Feb 2008, 7:33 PM
#624
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Larry Hendrick:

I am upgrading to the new 1.2.1 on ZenCart 1.3.7. Simple Google Analytics has been installed and working since December, but I am getting an error when I run the upgrade sql patch for the new one. These are the steps I did:

  1. uploaded google_analytics.php to:
    includes/templates/cherry_zen/google_analytics folder.
  2. opened includes/modules/pages/checkout_success/on_load_main.js and determined "javascript:__utmSetTrans();" was the only line in the file, so I deleted it from the directory.
  3. copied the googleanalytics-UPGRADE.sql contents into the SQL query executer and hit "SEND"
  4. got the following page:

1062 Duplicate entry 'GOOGLE_CONVERSION_ACTIVE' for key 2
in:
[INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Activate Conversion Tracking', 'GOOGLE_CONVERSION_ACTIVE', 'No', 'This element enables you turn on or off Google Conversion Tracking.

Please Note: Conversion tracking is used to track the effectiveness of Google AdWords paid search campaigns. If you are not running any paid search campaigns, then you should leave this set to "No".

If you are running Google AdWords (paid search) campaigns, then turning this on will place the proper conversion tracking code on your checkout success page and enable you to start tracking conversions.

Turning this on requires you to enter your unique Google Conversion Tracking ID in place of the "XXXXXXXXXXX" number shown in the next section.

For more hints and tips on how to use Google Analytics to increase sales from your store, visit ZenCartOptimization.com

Do you want to turn on Google AdWords Conversion Tracking?
', @t4, 5, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''Yes'', ''No''), ');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I've double-checked the location of the files and tried running the query again with the same results. The only way to exit this page is the "back" button or close the page.
website: flagstore.flagsbay.com

Larry,

since you were running a previous version that already had conversion tracking etc.. in place, you did not need to run the update (doing so should not hurt anything though).

All you had to do was copy the new files to their respective locations, and you should be set.

How are things looking after you do that.

The error you are getting when trying to run the SQL patch simply means that there was already a value in the configuration table which was identical to the one being inserted and you can't have two of the same values within that portion of the table.

Hope that helps.

15 Feb 2008, 9:07 PM
#625
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Update: I am now getting reports, so to whomever is having the same problem I had, be sure to note the the GA "ID" is only part of the GA "Account number"

So, in Configuration > Google Analytics > Edit > enter the UA-xxxxxxx-x account number.

I have not yet had time to check the reports for other possible problems, but at least I am getting reports of visits.

15 Feb 2008, 11:46 PM
#626
larry_hendrick avatar

larry_hendrick

New Zenner

Join Date:
Dec 2007
Location:
Texas
Posts:
9
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Eric,

sales that happened after the GA module upgrade (and getting the message above) are not showing up in Google Analytics today. Do you have any other suggestions for me to try?

17 Feb 2008, 2:37 AM
#627
larry_hendrick avatar

larry_hendrick

New Zenner

Join Date:
Dec 2007
Location:
Texas
Posts:
9
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Eric,

An Update: the analytics part is working (yesterdays traffic is showing), but the ecommerce isn't registering. I'm having a strange issue with the orders page working on a different thread. Sales complete, but on the orders page I'm getting an error, all other pages display correctly.

Could these be related?

17 Feb 2008, 1:24 PM
#628
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Larry Hendrick:

Eric,

An Update: the analytics part is working (yesterdays traffic is showing), but the ecommerce isn't registering. I'm having a strange issue with the orders page working on a different thread. Sales complete, but on the orders page I'm getting an error, all other pages display correctly.

Could these be related?

Larry,

Have you told Google you are an "ecommerce site" yet? It won't track ecommerce transactions unless you set your account to an "ecommerce site". This is done from within your Google Analytics account profile.

What is the error message you are getting on the checkout success page? I doubt it is related to this, but it is worth a look.

17 Feb 2008, 2:34 PM
#629
larry_hendrick avatar

larry_hendrick

New Zenner

Join Date:
Dec 2007
Location:
Texas
Posts:
9
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Larry,

Have you told Google you are an "ecommerce site" yet? It won't track ecommerce transactions unless you set your account to an "ecommerce site". This is done from within your Google Analytics account profile.

What is the error message you are getting on the checkout success page? I doubt it is related to this, but it is worth a look.

Yes, the ecommerce tracking was working before the upgrade and subsequent error. I did just log in though to confirmed it is still set up correctly.

The orders error is on the screen capture. I haven't been able to confirm, but I suspect this error is due to Google Checkout. It all works from the customer facing side, but I get this error trying to access the order page.

The other odd bit on it, only the latest order shows up. nothing else. To see other orders, I have to go to the customers page, click order and the single entry comes up with this same error message.

btw, thanks for a great piece of work with the Simple Google Analytics package. Other than this glitch, it has worked flawlessly.

19 Feb 2008, 3:28 PM
#630
disciple avatar

disciple

Totally Zenned

Join Date:
Aug 2004
Posts:
278
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi,

First off thanks for a simple and easy to use product. It tracks everything perfectly.

I have a question about a tweak I am wondering about.

We own a store in which we sell downloadable products. Every day we give away a free download through the store. So these downloads register as a sale and show up on the ecommerce reports.

As you can imagine this skews the average order value as well as the conversion rate.

Is there a way to tweak it so that any $0 sale would not be included in those reports?

Thanks

Rick

19 Feb 2008, 9:11 PM
#631
dkerfoot avatar

dkerfoot

New Zenner

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

Re: Simple Google Analytics - Support

My Analytics results were never quite right. I had entered the analytics code manually at first, then later added the contribution.

I just went back and cleaned out all the old junk and completely uninstalled and reinstalled the contrib (because I did not know which version I had)

Site visits and related stuff are showing fine, but after three days, I am showing zero sales under ecommerce (actually had over a dozen).

I think I may have entered the wrong number for the "Google AdWords Conversion Tracking Number"

How many digits should it be and exactly where do I fon it on the adwords site?

Thanks!

19 Feb 2008, 9:23 PM
#632
dkerfoot avatar

dkerfoot

New Zenner

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

Re: Simple Google Analytics - Support

dkerfoot:

How many digits should it be and exactly where do I fon it on the adwords site?

Oops fon = from

Also, is it a purely nimerical ID or is it one of the UA-xxxxx-x numbers?

Thanks

19 Feb 2008, 9:51 PM
#633
rhodesengr avatar

rhodesengr

New Zenner

Join Date:
Aug 2007
Posts:
59
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I did a new install per the readme file. But it does not seem to be working. When i check the status on the goggle side, I get this message

Tracking Unknown (Last checked: 2008-02-19 1:41 PM PST.)
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 am not sure of i did the database update right. I went to tools/install sql patches. I copied and pasted the sql patch file intoo the window and clicked send. It seemed to work.

I did the tpl_main edit per the readme. I put my account number in the admin setup.

Do I need to add the google code snipit somewhere?

The code snipet has my account number as UA-######-2. It put it in like that but but it lists my account number without any -#, only UA-#####.

I am not sure how to trouble shoot it now.

19 Feb 2008, 10:58 PM
#634
disciple avatar

disciple

Totally Zenned

Join Date:
Aug 2004
Posts:
278
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have mine set up as UA-xxxxxxx-1 and I am collecting everything as far as I know.

Rick

20 Feb 2008, 12:04 AM
#635
rhodesengr avatar

rhodesengr

New Zenner

Join Date:
Aug 2007
Posts:
59
Plugin Contributions:
0

Re: Simple Google Analytics - Support

well it seems to be working now. I changed to -1 and now it says "receiving data" so i don't know if it fixed itself or changing to "-1" fixed. Anyway, thanks.

MR
https://www.essential-stuff-store.com

20 Feb 2008, 2:29 AM
#636
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Simple Google Analytics - Support

rhodesengr:

well it seems to be working now. I changed to -1 and now it says "receiving data" so i don't know if it fixed itself or changing to "-1" fixed. Anyway, thanks.

If you changed it to "1" than you are tracking another website. Do you have more than one site or is this the only site you are tracking?

20 Feb 2008, 7:08 AM
#637
rhodesengr avatar

rhodesengr

New Zenner

Join Date:
Aug 2007
Posts:
59
Plugin Contributions:
0

Re: Simple Google Analytics - Support

only one website and less than 24 hours on analytics so no data yet so I can't tell if the data makes sense. I'll play around with -1 and -2 and see what happens. Thnaks for the tip.

21 Feb 2008, 3:34 AM
#638
dkerfoot avatar

dkerfoot

New Zenner

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

Re: Simple Google Analytics - Support

The "Google AdWords Conversion Tracking Number"

How many digits should it be and exactly where do I find it on the adwords site?

21 Feb 2008, 12:43 PM
#639
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Larry Hendrick:

Yes, the ecommerce tracking was working before the upgrade and subsequent error. I did just log in though to confirmed it is still set up correctly.

The orders error is on the screen capture. I haven't been able to confirm, but I suspect this error is due to Google Checkout. It all works from the customer facing side, but I get this error trying to access the order page.

The other odd bit on it, only the latest order shows up. nothing else. To see other orders, I have to go to the customers page, click order and the single entry comes up with this same error message.

btw, thanks for a great piece of work with the Simple Google Analytics package. Other than this glitch, it has worked flawlessly.

Larry,

This type of error looks like you did not complete an install of some type of product or contribution you may have attempted to use (not related to the Simple Google Analytics module).

My module doesn't change or alter anything with the order class or files. So I would step back and look at any other contributions you may have tried to install (or upgrades) and make sure all the files associated with those are installed.

This is a classic error message showing that files somewhere are missing (including the language file for what ever contribution this refers to).

Hope that helps. :)

21 Feb 2008, 12:47 PM
#640
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

disciple:

Hi,

First off thanks for a simple and easy to use product. It tracks everything perfectly.

I have a question about a tweak I am wondering about.

We own a store in which we sell downloadable products. Every day we give away a free download through the store. So these downloads register as a sale and show up on the ecommerce reports.

As you can imagine this skews the average order value as well as the conversion rate.

Is there a way to tweak it so that any $0 sale would not be included in those reports?

Thanks

Rick

If you wanted to do so, you would have to program an if then statement to eliminate the products with "$0" as their price. But I highly discourage and do not recommend that.

Is there another way you can give away the free downloads (outside of the cart)? Why run it through the cart process if it is free? I am not familiar with your business yet, so that may be a question you can answer, but it would seem to me that if your item is a free giveaway (in reality) then you provide it to them outside of the realm of the cart.

Does that make sense?