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

Simple Google Analytics - Support

Views: 451,119

Results 401 to 420 of 2,165
19 Nov 2007, 1:41 PM
#401
enquirer66 avatar

enquirer66

Zen Follower

Join Date:
Sep 2007
Posts:
215
Plugin Contributions:
0

Simple Google Analytics - Support

I've installed this and even pasted in an extra javascript into the main page header. I can see the script when I look at the source. But why doesn't google pick this up? http://www.fine-wine-shop.com

Thx - any help much appreciated.

20 Nov 2007, 2:57 AM
#402
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

enquirer66:

I've installed this and even pasted in an extra javascript into the main page header. I can see the script when I look at the source. But why doesn't google pick this up? http://www.fine-wine-shop.com

Thx - any help much appreciated.

You've got the code actually showing two times in your footer (it should only show one time). I do not see it in the header anywhere. There should be no need to paste any extra javascript into the header to use this module. It does that for you using overrides. Just install and go.

When you say Google does not pick it up, what exactly are you referring to? Is it still saying "not verified" as in it can't verify the code exists? There are many things that can cause that all relating to how and where you tell Google (form within your Google account) to search for the code. Google can be very picky at times with trailing slashes for example in urls.

21 Nov 2007, 4:35 PM
#403
graper avatar

graper

New Zenner

Join Date:
Jul 2006
Posts:
50
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I found this post because I was having the same problem with the quick order page and I know what is happening. Look below for my solution.

econcepts:

The error you are getting means you are missing a file (or have placed it in the wrong location). That is what the "no such file or directory" part means.

As far as your exact error:

Check the two parts I have listed in red.

  1. You have a double slash in the include portion. You should only have one slash

  2. If you are not using the classic template for your web store, then that would explain why it says "no such file or directory". The link in red points to the classic folder.

If you use a custom folder, you'll want to make sure you installed the analytics include there.

Once you get the include portion into the correct "tpl_main_page.php", it should solve the rest of your errors. They all stem from the same thing.

My advice would be to go back and make sure you uploaded the files to the correct locations.

mbheald:

I am creating an order form (using Quick Order Module) for Firehouse Subs Restaurants to order all of their hot sauces on our approved list. however, I have already used this module to create an quick order form for all of our customers to use. I modified the filenames, extra datafiles, language files, template files, and header.php from "quick_order" to "fhs_quick_order" and QUICK_ORDER to "FHS_QUICK_ORDER" in their respective places and the module will work and add items to the cart. however I am receiving some errors at the bottom of the page that I cannot figure out.

Warning: main(includes/templates/classic/fhs_quick_order//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180

Warning: main(includes/templates/classic/fhs_quick_order//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180

Fatal error: main() [function.require]: Failed opening required 'includes/templates/classic/fhs_quick_order//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180

The file is not placed in the wrong area. It is in template_default/google_analytics/ folder, and with the override system of ZC it doesn't need to be copied to any other template unless you want to make changes to the code in the file.

The problem is with the installation instructions where it states to put in this line in the tpl_main_page.php page

require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');

the problem is in the use of just ".php" it needs to be changed to 'google_analytics.php' to work properly on the quick order form. I figured this out by searching for the get_template_dir function and found other places where it was used and did use (always used) the full name of the file needed.

the way that the get_template_dir works is that it looks to see if the file exists in this order
1)current_template/currentpage/ folder
2)template_default/currentpage/ folder
3)current_template/$template_dir(google_analytics)/ folder
4)if nothing else matches then return template_default/$template_dir(google_analytics)

with the instructions the way they currently are in the analytics contributions, the get_template_dir will return true at number 2 and returns template_default/quick_order/ because file_exists says that the folder is valid since an improper filename was given and just checks the directory, which then falls back to the tpl_main_page and gets concat'd with "google_analytics.php" which isn't found.

So change ".php" to 'google_analytics.php' for it to work properly all the time.

Hope this helps.

22 Nov 2007, 10:59 AM
#404
beatnik avatar

beatnik

New Zenner

Join Date:
Aug 2006
Location:
London
Posts:
53
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

For the record and in case anyone else experiences this problem (spoke about a few posts ago with Barricades)

Here is the solution. I spoke via PM with barricades and it turned out that the addition of a contribution that allowed various Admin access controls was the culprit.

Nothing was wrong with that contribution at all, the "access" to that newly installed module (Simple Google Analytics) had to be "allowed" for the user in order to get it to show in the Admin drop down box.

Here is the exact reply form barricades in case anyone else needs it:

Hope this post helps others out that may run across this.

ALL

Thanks, that's what it was for me too. Great mod. All the best.

N

23 Nov 2007, 7:13 PM
#405
phil99 avatar

phil99

Zen Follower

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

Re: Simple Google Analytics - Support

Wow Im pulling my hair out....

Installed the latest Simple Google analytics mod from the downloads page..

Im running 1.3.7. All installed ok, works fine in admin... code shows on pages if i view source.

The code shows up on my hompage with the correct user number thing... not xxx

its just before the </body> tag.

I have the url in my google to http://www.domain.co.uk/ (with the final trailing slash)

When i try to check the code is installed from google i get :

The Google Analytics tracking code has not been detected on your website's home page.

Was there ever an answer to this??? Can anyone help?

24 Nov 2007, 1:04 PM
#406
phil99 avatar

phil99

Zen Follower

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

Re: Simple Google Analytics - Support

Bump... anyone?

24 Nov 2007, 3:28 PM
#407
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

phil99:

Bump... anyone?

Phil,

Check your PM. I just sent you a private message in response to yours that may help. In most of these cases the inability of Google to verify or not verify code usually (but not always) falls on the url you are asking Google to verify it at (if the tracking code is in place ... which yours looks to be.)

24 Nov 2007, 5:29 PM
#408
phil99 avatar

phil99

Zen Follower

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

Re: Simple Google Analytics - Support

Hi there, just to help anyone else that has this...

Its been 23 hours now since i set this up, and I have set it up correctly... everything is done correctly... url is correct with trailing /, code is correct etc etc.

My analytics reports are showing results now... even though google say they cant detect the code so I am assuming its just a problem with google.

Thanks for your help guys... Im gonna try to install the yahoo search ppc tracking now!

24 Nov 2007, 6:39 PM
#409
steveo3279 avatar

steveo3279

New Zenner

Join Date:
Nov 2007
Posts:
28
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have the same problem...did you change anything?

Steve

25 Nov 2007, 8:53 PM
#410
phil99 avatar

phil99

Zen Follower

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

Re: Simple Google Analytics - Support

Hi there no... even now after 48 hours google say they cant detect the code... but the analytics is working nicely....

:blink:

26 Nov 2007, 11:42 PM
#411
phil99 avatar

phil99

Zen Follower

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

Re: Simple Google Analytics - Support

Ok here is a question...

I want to set up a funnel to track buyers through my checkout flow all the way to the thankyou page (my goal)

I use 3 3rd party payment processors....

Paypal express checkout module, google checkout module, and nochex....

Paypal and google leave my site straight from the shopping cart and miss out most of the zen account fuss.

I see you can add code to track 3rd party payment processors, changing the links etc... but this is starting to look like a LOAD of hassle!??

It is possible... have you done it??

27 Nov 2007, 5:58 PM
#412
smap avatar

smap

New Zenner

Join Date:
May 2006
Posts:
42
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I use not only Google AdWords but also Yahoo Search Marketing and Microsoft AdCenter PPC.

I want to make sure I am able to track conversions for both those advertising channels as well and I'm not sure how to go about that.

I've searched this thread but I'm still confused. I don't think I want to use Google's cross-channel tracking as is mentioned in this thread because I use a different URLs for my keywords and I think that means it would be very difficult for me to setup inside AdWords.

Basically I'd be happy knowing where to stuff the Yahoo and Microsoft javascript code ... I would like to track order value as well.

Any help?

27 Nov 2007, 9:08 PM
#413
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

phil99:

Hi there no... even now after 48 hours google say they cant detect the code... but the analytics is working nicely....

:blink:

Guys here is a link to an article I wrote addressing this issue. I researched it on the internet a while back and found that there is no rhyme or reason for it. The link to the article is here:

http://www.zencartoptimization.com/2007/05/30/google-analytics-still-waiting-for-data/

Hope it helps.

27 Nov 2007, 9:18 PM
#414
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

phil99:

Ok here is a question...

I want to set up a funnel to track buyers through my checkout flow all the way to the thankyou page (my goal)

I use 3 3rd party payment processors....

Paypal express checkout module, google checkout module, and nochex....

Paypal and google leave my site straight from the shopping cart and miss out most of the zen account fuss.

I see you can add code to track 3rd party payment processors, changing the links etc... but this is starting to look like a LOAD of hassle!??

It is possible... have you done it??

I use Goals and Funnels on ALL sites I run. Zen Cart included. The data that reporting provides plays an important role in determining where problem spots may be.

Hhaving said that, there is no easy way around setting up funnels and goals.

You have to have use the proper url of each page you want to track during the process with the end result being the "goal". You also have to make sure you set the proper "Match Type" from within your Funnel or the recorded data will be inaccurate.

The Google Analytics Workbook in my signature shows an exact "copy and paste" example of exactly how you would do this for Zen Cart sites (and it works for others as well).

Keep in mind that if you are using third party processors, there will be no way to track them once they leave your site to pay (as in the case of Google Checkout or PayPal IPN). There will also be no guarantee that the action will track properly as in each of these cases, the users must "complete" the transaction by usually clicking a link on the "thank you" page of the third party processor (PayPal or Google).

Upon clicking that link, they are taken back to your site (the checkout success page) and providing you have the correct url setup as your goal, the action is actually recorded.

So what does this all mean? Well, it means that more than likely you'll have to get creative in reading what your funnel is telling you because right around the point at which the user is taken away from your site and to the third party processor, it will look like they abandoned the checkout process in your funnel.

In fact, they may not have. They may have paid and completed the transaction.

So, be careful not only in how you setup goals and funnels, but how you read them as well.

27 Nov 2007, 9:26 PM
#415
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

smap:

I use not only Google AdWords but also Yahoo Search Marketing and Microsoft AdCenter PPC.

I want to make sure I am able to track conversions for both those advertising channels as well and I'm not sure how to go about that.

I've searched this thread but I'm still confused. I don't think I want to use Google's cross-channel tracking as is mentioned in this thread because I use a different URLs for my keywords and I think that means it would be very difficult for me to setup inside AdWords.

Basically I'd be happy knowing where to stuff the Yahoo and Microsoft javascript code ... I would like to track order value as well.

Any help?

I track all three on most of my sites (Google, Yahoo, and MSN). You can install the Google Tracking Module (Simple Google Analytics) and still install the Yahoo, and MSN tracking codes.

The key is, you will have to manually insert the Yahoo and MSN codes into the proper pages for them to work. And furthermore, if you want to dynamically include order totals etc.. into the mix, then you'll have to custom code that using PHP.

Finally, you'll want to make sure you account for both Secure and Non-secure connections, and dynamically utilize the proper tracking code based on that (https:// vs. http://). I like to use the standard PHP function to detect secure vs. non-secure connections to do that.

The file you'll want to add the information to are the tpl_main_page.php page (within your custom directory). I don't even include it on the checkout success page because I try to keep the code in the fewest locations.

What I do is create an if then statement that I include on the tpl_main_page.php page. It dynamically checks the page name (to determine if it was a successful sale or not and therefore add the proper "conversion tracking code" if so) and also checks the https vs/ http connection to include that proper code. If you don't account for that, then users will get the old message "some things on this page are not secure ... do you want to continue?" and you don't want that as it can decrease conversion beyond all belief.

Hope that helps.

27 Nov 2007, 10:37 PM
#416
phil99 avatar

phil99

Zen Follower

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

Re: Simple Google Analytics - Support

Thanks for the reply.... thats what I was worried about!...

I have paypal express and google checkout on the shopping cart page..... this would be the start of my funnel and like you say people who want to express checkout abandon my cart immediately!!!

I guess to be fair i cannot change the pages after this point if people chose to use these express checkouts anyway... and they are very good funnels anyway so not to worry.

However i can still change and track my checkout funnel, so that once people are in that i can see if they stay or go. Like you say it will seem as if alot of people abandon the cart when they chose express checkout...but dont worry....

I guess you could subtract from 'cart abandonments' your total express checkout payments to get an idea of who really abandoned at the cart page.

Shame it cant be done better...

28 Nov 2007, 2:52 AM
#417
smap avatar

smap

New Zenner

Join Date:
May 2006
Posts:
42
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Hope that helps.

It does help a lot Eric - thanks. I have one question regarding what you wrote though - you mention not including the code on the checkout success page and instead including it on tpl_main_page.php - that confuses me.

I think maybe you're saying you check the page's title to see if they're on the checkout success page? I don't understand though what the advantage of doing that vs. putting the code in the checkout success template itself.

Maybe since you mentioned you use the code for more than conversion tracking - goals, etc. you need the code in every page?

28 Nov 2007, 4:49 AM
#418
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

smap:

It does help a lot Eric - thanks. I have one question regarding what you wrote though - you mention not including the code on the checkout success page and instead including it on tpl_main_page.php - that confuses me.

I think maybe you're saying you check the page's title to see if they're on the checkout success page? I don't understand though what the advantage of doing that vs. putting the code in the checkout success template itself.

Maybe since you mentioned you use the code for more than conversion tracking - goals, etc. you need the code in every page?

The tracking code must be on every page for it to work (in the case of Google Analytics). In the case of "conversion" tracking type codes (usually only appear on the "thank you" page), I check to find out what page is being called by the script (checkout_success) and if it is an order confirmation, I include that line of code onto the page.

I only use the tpl_main_page template so as to keep everything under "one roof". It's much easier to manage that way (I run numerous tracking scripts and affiliate programs that need to track sales). The other option is to include the code in the "footer" template. I use to do that, but found it works better for me (management wise) leaving it in only one file.

Here is a link to an older post on the way I do it.

http://www.zen-cart.com/forum/showpost.php?p=377754&postcount=255

28 Nov 2007, 8:17 PM
#419
smap avatar

smap

New Zenner

Join Date:
May 2006
Posts:
42
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Here is a link to an older post on the way I do it.

Awesome Eric - thanks! I'm on it now...

29 Nov 2007, 9:29 AM
#420
phil99 avatar

phil99

Zen Follower

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

Re: Simple Google Analytics - Support

So far I have to say google analytics has not been much use.

After the code detection errors... (they have emailed me to say they have problems at the moment) my ecommerce results do not display all my sales.

I think this is because I use a third party payment processor, if people dont click to come back to my site the code wont pick them up as a sale... As it is I have 7 sales yesterday, and google picks up 2...I guess somehow you need to add the tracking code to yur 3rd party payment processors...(this is becoming alot of work!)

It is still useful for track your adwords, and I guess with your sales report you can manually work out your sites conversion rate, but I am glad I am not paying for this.

Its important to track and measure you site yes... but to trust and act on inaccurate stats is not... make sure and be carefull that you have thought about and are happy with your stats before you act.