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

Simple Google Analytics - Support

Views: 451,130

Results 581 to 600 of 2,165
30 Jan 2008, 11:28 PM
#581
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Simple Google Analytics - Support

brikat:

Thanks Shrimp,

Here's the bottom section from the source of the Log in page:

<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-3523887-1'); pageTracker._initData(); pageTracker._trackPageview('Login'); //--> </script>

I didn't make any other changes. Does this help at all?

Lisa

Hello Lisa,

It looks like you might be trying to do the same thing Jaap is trying to do... track where people come from that login?

Is the code currently commented out on your site?

Your code looks a little different from mine but I didn't have any SSL issues when I put the mod in. If you would like to give your http: or PM me your http: I will take a quick look.

Did it ever work correctly before you put the 'login' in?

Shrimp

31 Jan 2008, 12:01 AM
#582
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Simple Google Analytics - Support

jaap:

Very nice add-on ... thanks! New zenner question re: GA ...

I'm very new to php and don't have the foggiest idea :huh: where to find the </body> tag of the create_account_success page to install conversion tracking on this page ... assuming of course that this is actually required and that your add-on only installs conversion tracking for the checkout_success page :D Can someone please help by providing a pointer?

Thanks, Jaap
www.canopyxchange.za.net

Jaap,

If you are trying to get around the mod I would guess the </body> tag would be somewhere in your template files.... you would probably want to go to the page .php file that you are interested in though and add the code to the end of that file. It will still work even if there is something between the code and the </body> tag. I used to have my code in my bottom banner....

Shrimp

1 Feb 2008, 3:37 AM
#583
brikat avatar

brikat

New Zenner

Join Date:
Apr 2007
Posts:
50
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Shrimp,

I haven't set any any goals up yet or anything if that's what you mean. I'm still just trying to install the mod. You asked for the source code for a page that was giving this error so I gave you the Log In page. I get the message on every page thereafter during check-out because they are all secure pages.

Forgive me if I'm not understanding correctly. I'm not that experienced with PHP.

I started over by going to a backup of my database and re-installing everything and still get security errors. I added:

<?php include($template->get_template_dir('tpl_footer_googleanalytics.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer_googleanalytics.php'); ?>

just before the </body> tag at the bottom of my includes/templates/customtemplate/common/tpl_main_page.php file after uploading the few files in the mod. and running the install.spl (copy & paste).

I don't know what else I'm missing here. I can delete all files but the security errors don't go away until I delete the javascript file.

I'll send you a link to my site but I don't want to leave the site with security warnings for too long.

Thanks so much for any help!

Lisa

1 Feb 2008, 12:02 PM
#584
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

swingandmiss:

Yes, I understand about how it works (although good explanation!), but I was wondering if there was an easy way to fudge it.

No way to fudge it. :) It's all or nothing.

Plus, you would prbably want to run a real transaction anyhow once complete just for testing purposes. It's always a good idea to test things after making alterations.

1 Feb 2008, 12:08 PM
#585
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

shrimp-gumbo-mmmhhh:

Econcepts....

Do you have any tricks in your Analytics book that might help me? I am seeing only a speck of where my orders are coming from and I want to see more... I cannot see Paypal, Google orders and most credit card orders.

The workbook goes into some explanation of items that are many times passed over by users.

One thing you "might" be experiencing in not see all transactions is the fact that since Google Analytics runs on JavaScript, it will not show transactions (or visitors) for anyone who has JavaScript turned off (or blocks all scripts) with their browser.

This is something that Google mentions in their help files (dig deep).

The other thing could be that if you are using PayPal or another third party processor in which the user has to click a link to return to the merchant after a sale, then the tracking will not record a sale if the user does not click that link.

From my experience, it is normal with most analytics programs to have slight discrepancies in data reported. Major differences should be cause for concern though.

1 Feb 2008, 12:13 PM
#586
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

shrimp-gumbo-mmmhhh:

Maybe it might be helpful to make the checkout confirmation page the "checkout_sucess" page... then only Google Checkout would not be showing up in the reports... I might show more conversions but that is better than only showing 5% of conversions (other transactions show but with no money). Is there an easy way to move the code so that the "confirmation" page collects conversions?

Thanks

Shrimp-Gumbo

The conversion code IS already on the "checkout success page" (as long as you activate the conversion tracking from within your zen admin).

That is the only place you could track a sale. So to answer your question, it would bee a bad idea to use the "checkout confirmation" page as the page that considers a sale "final" (and thus records a conversion).

In fact, that would REALLY through off your reporting and give you false readings because not all users actually complete the sale once they get to that page (which means their card has not been charged, and their order does not appear in the admin).

The checkout confirmation page is just that. A page that asks them to "confirm" (better terms are "review") their order BEFORE they submit it. Experience has shown that you will find a number of users that abandon their cart at that stage (for reason that the 20 ways book goes into). If they abandon, and you record them as a sale, your numbers will be inflated, and your statistics all wrong.

Checkout "success" page is the only one that can give you a "true" report of the actions on that site for a successful sale.

1 Feb 2008, 12:14 PM
#587
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

shrimp-gumbo-mmmhhh:

Just a little more information about my issue:

The many transactions that are missing revenue amounts when clicked on do show the revenue amounts for the individual items. I am running 1.3.7

I have looked over the google_analytics.php file and don't see any issues with the google_analytics['ot_total'] ... not that it means an awful lot.

I'll look at this here to find out what may be causing the "0" revenue amounts. I'll post my findings here.

1 Feb 2008, 12:18 PM
#588
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

brikat:

I just installed this mod and everything seems to be working O.K. except I'm getting warnings when going to secure pages. Can someone please give me direction on how to solve this problem?

Thanks so much,

Lisa

This should not be due to the installation of this mod. It does not cause those errors as it dynamically calculates whether the page is secure or not.

The most often problem when I see this issue that you are having comes from users installing "live help" contributions that do not take into consideration the fact that the live help may appear on both secure and non-secure pages.

I have corrected a number of issues relating to this exact problem with many zen sites for users.

Your best bet is to select "not show" the un-secure items on the page when you get that warning. That will remove those items from view which are not secure and give you an idea of where to start.

A few of the "live help" contributions in the downloads section cause this exact message to appear on secure pages. Check the other contributions you have installed for issues.

1 Feb 2008, 12:20 PM
#589
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

jaap:

Very nice add-on ... thanks! New zenner question re: GA ...

I'm very new to php and don't have the foggiest idea :huh: where to find the </body> tag of the create_account_success page to install conversion tracking on this page ... assuming of course that this is actually required and that your add-on only installs conversion tracking for the checkout_success page :D Can someone please help by providing a pointer?

Thanks, Jaap
https://www.canopyxchange.za.net

If you are running any of the 1.3.x + versions of zen cart, this line of code is already in your cart (as the instructions say in the readme file). You can skip looking for it.

If however, you are running older version of zen cart, then you'll need to make adjustments (but it would be a better idea to upgrade for many reasons).

1 Feb 2008, 12:24 PM
#590
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

jaap:

Hello Shrimp,

BUT I actually want to know how to track "create_account_success" page conversions (SGA setting I missed? Or else where to find </body> tag?). My store sells high-value items, the prices of which are only displayed to "logged-in" users. It is the number of user registrations that I want to track. I hope this clarifies.

Thanks, Jaap
canopyxchange.za.net

What you want to do then is to track the "create account success page" using GOALS and Funnels .. NOT conversion tracking. Why? Because conversion tracking is a measure of how effective your Adwords campaigns are converting and in order for it to track actions, the user must FIRST have come from one of your adwords ads (by clicking it) ... otherwise, the conversion will not record anything.

Plus, conversion tracking is a REVENUE measure, and the create account success page does not generate any revenue for a company, so it would be a mistake to track it with "conversion tracking".

If you want to track how many people get to that point, and the effectiveness of your process up to that page, then you need to setup GOALS (in your Google Analytics account) and a funnel to that goal.

You are allowed currently to setup up to 4 different goals and associated funnels.

Hope that helps.

1 Feb 2008, 12:25 PM
#591
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

brikat:

Thanks Shrimp,

Here's the bottom section from the source of the Log in page:

<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-3523887-1'); pageTracker._initData(); pageTracker._trackPageview('Login'); //--> </script>

I didn't make any other changes. Does this help at all?

Lisa

Again, this message you are getting is not a result of this contribution. Check my previous post on this topic. More than likely you have another contribution that cases the issue (try "live help").

1 Feb 2008, 12:32 PM
#592
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

shrimp-gumbo-mmmhhh:

I think in order to determine where the users are coming from that register you would have to include an additional code that you can find in the analytics documentation... I would suggest modifying the google_analytics.php file in the templates by adding another if statement after the:

This is definitely not the correct way to do it and could cause problems in tracking. You should not need to alter any tracking code in order to track who arrives at (or the conversion rate of) the funnel leading up to the "create account success" page.

You need to use Goals and Funnels (which are setup from within your Google Analytics account). The Google Workbook in my signature explains this concept further and in more detail.

My earlier post further explains the concept.

1 Feb 2008, 12:35 PM
#593
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

shrimp-gumbo-mmmhhh:

Hello Lisa,

It looks like you might be trying to do the same thing Jaap is trying to do... track where people come from that login?

Is the code currently commented out on your site?

Your code looks a little different from mine but I didn't have any SSL issues when I put the mod in. If you would like to give your http: or PM me your http: I will take a quick look.

Did it ever work correctly before you put the 'login' in?

Shrimp

Actually, I think what Lisa is having a problem with is the "security error" message appearing on secure pages (when it shouldn't).

This is not a result of the code of the Google Analytics module (unless you made changes yourself that caused it). It is more likely a result of some other contribution of image. Read my earlier post here to get more info.

1 Feb 2008, 12:42 PM
#594
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

brikat:

Shrimp,

I haven't set any any goals up yet or anything if that's what you mean. I'm still just trying to install the mod. You asked for the source code for a page that was giving this error so I gave you the Log In page. I get the message on every page thereafter during check-out because they are all secure pages.

Forgive me if I'm not understanding correctly. I'm not that experienced with PHP.

I started over by going to a backup of my database and re-installing everything and still get security errors. I added:

<?php include($template->get_template_dir('tpl_footer_googleanalytics.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer_googleanalytics.php'); ?>

just before the </body> tag at the bottom of my includes/templates/customtemplate/common/tpl_main_page.php file after uploading the few files in the mod. and running the install.spl (copy & paste).

I don't know what else I'm missing here. I can delete all files but the security errors don't go away until I delete the javascript file.

I'll send you a link to my site but I don't want to leave the site with security warnings for too long.

Thanks so much for any help!

Lisa

Lisa,

You are talking about a different mod. Not this one supported in this forum. This is the forum for "Simple Google Analytics" mod **found here**.

There was another one released that I do not support as I did not create it. I can tell you that this version works without error.

If you want support on the other mod, you'll need to get it from that thread in the forum that it is supported in.

The file highlighted in red above is not part of my contribution.
*
Please make sure the two different modules are kept separate as it is beginning to confuse people coming to this forum for assistance on the other mod. The mod I have listed in this post is the original module that was released. The other version just came out about a week ago.*

1 Feb 2008, 3:19 PM
#595
brikat avatar

brikat

New Zenner

Join Date:
Apr 2007
Posts:
50
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks so much Eric for clearing that up for me. I didn't realize these were two different mods.

I don't have live help on my site and I didn't have any issues with secure errors before installing the google analytics mod. So not sure what's causing it. I did uninstall this version and then installed your version without any difficulty or secure errors. So I'm hoping it was the other mod and not anything on my site???? Should I be concerned?

Thanks again for taking the time to help me sort this out.

Lisa

1 Feb 2008, 7:41 PM
#596
brikat avatar

brikat

New Zenner

Join Date:
Apr 2007
Posts:
50
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Just to clear up my issue with secure errors in case anyone else runs into similar problems.

There are** two** Google Analytics Mods....Simple Google Analytics which is this support thread and Google Analytics Integration which is covered under a different support thread.

I downloaded the Google Analytics Integration mod. thinking it was just the updated version of this mod. (I just upgraded to 1.38 and wanted everything current) and had problems with secure page warnings with all my secure pages for whatever reason. I posted my question here not realizing this is a different mod. Once Eric pointed out that there were two versions of this mod. I looked under the support thread for the GA Integration and saw that others are also having problems with secure errors. I uninstalled it and installed Eric's version Simple Google Analytics and everything installed perfectly with no security errors.

So just wanted to say be sure you know which mod. you downloaded so you can post your questions to the right support thread!! If it was confusing to me, maybe it is to others as well.

Thanks again Eric!! Issue resolved. :smile:

Lisa

1 Feb 2008, 10:19 PM
#597
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

What you want to do then is to track the "create account success page" using GOALS and Funnels .. NOT conversion tracking. Why? Because conversion tracking is a measure of how effective your Adwords campaigns are converting and in order for it to track actions, the user must FIRST have come from one of your adwords ads (by clicking it) ... otherwise, the conversion will not record anything.

Plus, conversion tracking is a REVENUE measure, and the create account success page does not generate any revenue for a company, so it would be a mistake to track it with "conversion tracking".

If you want to track how many people get to that point, and the effectiveness of your process up to that page, then you need to setup GOALS (in your Google Analytics account) and a funnel to that goal.

You are allowed currently to setup up to 4 different goals and associated funnels.

Hope that helps.

Thanks econcepts,

I really want to know where the people are coming from that buy... I see that on the ecommerce but no where else....

you have offered very much great info for free.... I have purchased your templates but am hoping 1.4 comes out before I can modify it into my site..... I will get your workbook as I didn't know most of the things you have said above.... I am sure there are many more things you can teach me..... BTW thanks Merlin for letting me know about econcepts free booklet.

Shrimp-Gumbo-mmmhhh

1 Feb 2008, 10:23 PM
#598
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

I'll look at this here to find out what may be causing the "0" revenue amounts. I'll post my findings here.

Econcepts,

Is this happening because it only shows the revenue for adwords items?

Thanks,

Shrimp-Gumbo

2 Feb 2008, 4:25 AM
#599
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

shrimp-gumbo-mmmhhh:

Econcepts,

Is this happening because it only shows the revenue for adwords items?

Thanks,

Shrimp-Gumbo

No. The issue here deals directly with "ecommerce tracking" (which is different from conversion tracking, and different from Goal tracking).

The "0" revenue figures should show under the ecom stats as they are "independent" from the Adwords conversion figures.

Basically, ecommerce tracking records data for ALL transactions that happen at your site, whether they come from Adwords or not. Likewise, ecommerce tracking has with it, its own conversion rate figure (which could, but not always, differ from the conversion tracking figure you get via your adwords "conversion tracking" code).

So the issue here isn't Adwords related as ecommerce tracking doesn't distinguish between the two.

Hope that makes sense.

I never noticed this issue with "0" for revenue figures on certain orders until Google Released the new ga.js tracking code.

I am researching that with Google now to find out if there is a bug on their end that may be causing it.

4 Feb 2008, 12:27 PM
#600
ces avatar

ces

Zen Follower

Join Date:
Nov 2004
Location:
West Mids, England
Posts:
199
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi

Just to confirm I too am having discrepencies with the new analytics.

I am having 0.00 revenue figured for some transactions.

And the Adwords Campaign figures do not tally either. I think if the revenue from a transaction is 0.00 then in e-commerce tab of the ad-words section it shows as no transaction.

I think I made sense???

Craig