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

Simple Google Analytics - Support

Views: 451,068

Results 261 to 280 of 2,165
30 Jul 2007, 11:24 AM
#261
econcepts avatar

econcepts

Totally Zenned

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

Simple Google Analytics - Support

pyrobri,

Oh, I didn't realize you had the "Waiting For Data" message. That means it was installed correctly and the URL was right (obviously).

Through my research, I've heard reports of that message lasting anywhere from a few hours to a week or more. No rhyme or reason why.

Glad you got it working.

2 Aug 2007, 2:32 AM
#262
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi

Can some one please direct me to a thread of clear explanation which folder and the exact place I should put my code I got from Google?

I am over a week testing many places and I get nothing working as far seeing any report.

Thank you

2 Aug 2007, 11:28 AM
#263
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

motti,

Are you manually entering the code from Google, or are you using the Simple Google Analytics Contribution?

The contribution comes with a read me file that explains how to install the module. If you are using that, then there are only 2 files that you need to upload, and one change you need to make to a file (the tpl_main_page.php).

If you are manually entering it by hand, then you can look at the following post:

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

2 Aug 2007, 1:34 PM
#264
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi econcept
i manuely enter it to one of my files , and i can't remmber which one it is now, i need to go thru and try to find it

I wiil go thru the link you provide and see if i can make it work

Thank you

2 Aug 2007, 6:31 PM
#265
khopek avatar

khopek

Totally Zenned

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

Re: Simple Google Analytics - Support

I guess what I don't understand is how to set up the filter to actually exclude it?

I made a file with the JS code in it and just put it the Google_Analytics folder that came with the mod...wasn't sure where to put it so I put it there.

Then Google said to create a filter....

Filter Type: Custom filter > Exclude
Filter Field: User Defined

I guess this is where I am lost. I can create the filter but as far as how to tell it to exclude computers with that cookie...I have no idea.

3 Aug 2007, 1:46 AM
#266
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

khopek:

I guess what I don't understand is how to set up the filter to actually exclude it?

I made a file with the JS code in it and just put it the Google_Analytics folder that came with the mod...wasn't sure where to put it so I put it there.

Then Google said to create a filter....

Filter Type: Custom filter > Exclude
Filter Field: User Defined

I guess this is where I am lost. I can create the filter but as far as how to tell it to exclude computers with that cookie...I have no idea.

Send me your "js" code so I can take a look at what you are supposed to be excluding.

I'll see if I can figure out what is going on for you.

3 Aug 2007, 2:40 AM
#267
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi econcepts

Sorry for not thanking you earlier , only done it short time ago, and l did Install the mod was very easy and Clear, I hope it will work ( I will see after midnight here)
By any chance do you have any idea how can I delete all my attempt account I open at Google analyzer, I got abut 6 of them, I sent Google a Email 3 days ago and still no answer.

Thank you

3 Aug 2007, 11:20 AM
#268
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

motti,

You may have to contact Google to delete them. If you are talking "website profiles", then you can delete the extra ones you do not want from your main page after you login to your Google Account.

4 Aug 2007, 7:56 AM
#269
slik666 avatar

slik666

New Zenner

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

Re: Simple Google Analytics - Support

someone give me a hand intregrating analytics in my site ? i followed the read me file but i was unable to find these file:

  1. Make sure your body tag in includes/templates/[your_template] includes this code (if not see trouble shooting below it is not neccassary but an addition to your template needs to be made):
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>> 3. At the bottom of templates/[your_template]/common/tpl_main_page.php Add this just before the </body> tag: <?php require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?>

I am using a custom template i dont know if that makes a difference or not i thought i would let you know. i also dont see a your template folder in my includes/templates/

Any advise would be much appreciated thanks

5 Aug 2007, 1:28 AM
#270
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

slik666:

someone give me a hand intregrating analytics in my site ? i followed the read me file but i was unable to find these file:

  1. Make sure your body tag in includes/templates/[your_template] includes this code (if not see trouble shooting below it is not neccassary but an addition to your template needs to be made):
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

If you are using the newer versions of Zen Cart, then this line is already present by default. No need to look for it. For the record though, it is in your "tpl_main_page.php" file.

slik666:

  1. At the bottom of templates/[your_template]/common/tpl_main_page.php
    Add this just before the </body> tag:
<?php require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?>

I am using a custom template i dont know if that makes a difference or not i thought i would let you know. i also dont see a your template folder in my includes/templates/

"your_template" is NOT the directory name. You are supposed to replace that with the custom directory for your OWN template. Make sense?

SO, if your custom template is named "my_custom_template", then the path would look like this:

/includes/templates/my_custom_template/common/tpl_main_page.php

7 Aug 2007, 12:06 PM
#271
easylife1263 avatar

easylife1263

New Zenner

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

Re: Simple Google Analytics - Support

Hello There

I am having alot of problems with using this script- I have tried a few now and i can't seem to get them to work

Anyway i have some error at the bottem of the page that displays all the time

the website is http://easylife.com

the error i am receiving is:

[QUOTE]
[HTML]Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/includes/templates/template_default/google_analytics/google_analytics.php) is not within the allowed path(s): (/tmp:/home/EasyLife/easylife.com) in /home/EasyLife/easylife.com/user/htdocs/cart/includes/templates/template_default/common/tpl_main_page.php on line 319

Warning: main(includes/templates/template_default/google_analytics/google_analytics.php) [function.main]: failed to open stream: Operation not permitted in /home/EasyLife/easylife.com/user/htdocs/cart/includes/templates/template_default/common/tpl_main_page.php on line 319

Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/share/pear') in /home/EasyLife/easylife.com/user/htdocs/cart/includes/templates/template_default/common/tpl_main_page.php on line 319
```\[/QUOTE]\[/HTML]


Any help appreciated

Chris Avery
AEI Security
7 Aug 2007, 3:07 PM
#272
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Chris,

This error indicates that your host has enabled the PHP open_base_dir setting on your server. Your host needs to add your ZenCart installation folder to the allowed paths for this setting (i.e., add the file path referenced in the error as "not within the allowed path").

The open_base_dir setting is primarily used to prevent php scripts for a particular user from accessing files in another user's account. So usually, any files in your own account should be readable by your own scripts.

This setting could be why you are having so many issues. the version available for download in the Zen Cart Downloads section should be pretty easy to install. Just two files to upload and one file to alter.

I went to your site, and I do not see the error message at all. It looks fine to me.

When I perform a view source, I also noticed that the Google Analytics tracking is installed at the bottom of the page (correctly), HOWEVER, It also shows that you have the tracking code for "Conversion Tracking" at the bottom of the page as well.

If you are trying to track conversions of sales, then you should only include that Conversion Tracking code at the bottom of the checkout_success page. You also need to account for it being a SSL or Non-SSL connection.

Lastly, the code for Conversion Tracking should go just below the regular Google Analytics tracking code, but above the closing </BODY> tag. Right now you have it outside of the entire HTML document structure.

8 Aug 2007, 9:09 PM
#273
netmeg avatar

netmeg

New Zenner

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

Re: Simple Google Analytics - Support

Just wondering - (and I apologize if this has been asked before) but what's the function of the Target Address option ?

9 Aug 2007, 10:34 AM
#274
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

netmeg:

Just wondering - (and I apologize if this has been asked before) but what's the function of the Target Address option ?

Target address is used with the e-commerce tracking. It allows you to determine which address you want the transaction "hooked" to for reporting purposes.

Your choices are:

Customers (address)
Delivery (address)
Billing (address)

10 Aug 2007, 3:27 PM
#275
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

After working through all the questions in the forums regarding Google Analytics, one common theme among users is "how do I install it", and how can I add "Conversion Tracking" as well?

Up until now, the only way to add Conversion Tracking was to manually add the code.

That has now changed. I decided to re-work the original Simple Google Analytics contribution to address several issues I continue to hear.

  1. "How do I install it" (I have updated the instructions to help assist in this and give more clarity)

  2. How do I add Conversion Tracking?

This new version (1.1.0) now provides the ability for users to configure Google Conversion Tracking directly from within the Admin section.

I have also reworked a few of the previous items to include more "instruction" on what each item is, what you use it for, and how you use it. There were many questions like "What is the Target Address?" ; "What is the SKU/Code?" etc...

These are all answered in the new version as well.

How to Download the new version 1.1.0

You can download the new version complete with Conversion Tracking support by going to the following link in the Zen Cart downloads section:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=412

Where to get more information on the newest release

To get more information on this newest release, along with screenshots and some helpful tips on installing it, you can go to:

http://www.zencartoptimization.com/2007/08/10/new-release-simple-google-analytics-v110-now-with-conversion-tracking/

Enjoy!

14 Aug 2007, 1:15 PM
#276
alan_powerbrixx avatar

alan_powerbrixx

New Zenner

Join Date:
Jul 2007
Location:
Durham, NC
Posts:
56
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi, Eric (econcepts),

Thanks for rolling the Conversion Tracking into the mod.

I am converting my site from hand-inserted GA and Conversion codes, to the simple-google-analytics mod. When I install the sql patch, I get the error display shown below between the "****" marks, and my Google Analytics menu in Admin stops just before the Conversion Tracking settings shown on your site's screen shot. Is this a problem on my site, or am I just on the "bleeding edge" of your new addition?

My host provides MySQL 4.1.22-standard, not version 5. Is that the problem? We're running Zen Cart 1.3.7. This install was to our test site which we keep permanently in maintenance mode and not viewable by the public at large.


1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Yes', 'No'), ')' at line 1
in:
[INSERT INTO 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.


14 Aug 2007, 7:36 PM
#277
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Alan,

Which SQL patch are you using? There is one for "upgrading only", and one for "new (fresh) installs".

Let me know that and I'll take a look at that SQL syntax.

I've tested both here on a similar platform, and it works fine.

Again, let me know which patch you are using so I can look at that file.

Thanks!

By the way, the only report I have heard of (with SQL syntax in general) from PHP 4.x to 5.x is that in some cases, 5.x does not like items qualified as such '' and would rather them come across as 'NULL'.

That shouldn't be an issue with you though as you are on a 4.x version (and I have only heard it on a few 5.x version installs).

14 Aug 2007, 8:23 PM
#278
alan_powerbrixx avatar

alan_powerbrixx

New Zenner

Join Date:
Jul 2007
Location:
Durham, NC
Posts:
56
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Eric,

Thanks for looking at this. Being a new install, I'm using the googleanalytics.sql file, using Admin > Tools > Install SQL Patches, and clicking Browse next to Upload File to browse to this file on my local disk. After that, the Upload button brings me to the error noted in the previous post.

15 Aug 2007, 1:49 AM
#279
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Alan,

Can you copy and paste the contents of the SQL patch into the Admin and run it that way (rather than upload).

Let me know how that works while I look into this one. I have a feeling that the upload function may be choking on a few of the quotes that are in the copy.

15 Aug 2007, 2:13 AM
#280
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Alan,

Ok, got it. Go ahead and download this version here (I'll upload later this eve to the Contribs section).

All I did was alter part of one of the lines for the SQL Syntax on the two files.

This should work for uploading and installing now. Let me know if you have any problems.

Thanks!