Zen Cart Logo
Forums / All Other Contributions/Addons / Google Analytics Integration

Google Analytics Integration

Views: 225,787

Results 361 to 380 of 660
12 Mar 2008, 2:09 PM
#361
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Google Analytics Integration

Hi Andrew,

Great contribution here. :)

Just noticed that two of the admin settings don't have titles. You'll notice that these have been left out in the following install SQL code.

(NULL, '', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND', 'true', '', @configuration_group_id, 2, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, '', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND_LINKS_PREFIX', '/outgoing/', '', @configuration_group_id, 2, NOW(), NULL, NULL),

Is this correct? Are they meant to be blank?

18 Mar 2008, 3:21 AM
#362
modernm avatar

modernm

New Zenner

Join Date:
Dec 2007
Location:
Hoboken, NJ
Posts:
97
Plugin Contributions:
1

Re: Google Analytics Integration

Currently using the most recent version of Google Analytics Integration and Zen Cart 1.3.8a. I can't seem to get E-commerce tracking to work. I have enabled the option in Google Analytics and outside of the e-commerce tracking all other tracking seems fine. Any thing I should look for? I have the code for integration at the bottom of tpl_footer.php.

Cal

18 Mar 2008, 8:18 PM
#363
nfm avatar

nfm

New Zenner

Join Date:
Jan 2008
Posts:
90
Plugin Contributions:
0

Re: Google Analytics Integration

Nevermind....

18 Mar 2008, 11:04 PM
#364
vitalwares avatar

vitalwares

New Zenner

Join Date:
Jan 2008
Posts:
83
Plugin Contributions:
0

Re: Google Analytics Integration

Hi,

This is great MOD, thank you.

I do have a problem thought, I am getting the following validation errors:

Line 63, Column 43: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified .
document.write("<script id=8d6b7cf147cf9 defer " +✉
Line 63, Column 43: value of attribute "id" invalid: "8" cannot start a name .
document.write("<script id=8d6b7cf147cf9 defer " +✉
It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.

Line 63, Column 63: an attribute value literal can occur in an attribute specification list only after a VI delimiter .
… document.write("<script id=8d6b7cf147cf9 defer " +✉
Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".

Line 63, Column 63: document type does not allow element "script" here .
… document.write("<script id=8d6b7cf147cf9 defer " +✉
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 64, Column 36: character "<" is the first character of a delimiter but occurred as data .
"src=://0></script>");✉
This message may appear in several cases:

You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.


Anybody knows the solution to this ? Thanks in advance.

19 Mar 2008, 3:39 AM
#365
modernm avatar

modernm

New Zenner

Join Date:
Dec 2007
Location:
Hoboken, NJ
Posts:
97
Plugin Contributions:
1

Re: Google Analytics Integration

vitalwares:

Hi,

This is great MOD, thank you.

I do have a problem thought, I am getting the following validation errors:

Line 63, Column 43: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified .
document.write("<script id=8d6b7cf147cf9 defer " +✉
Line 63, Column 43: value of attribute "id" invalid: "8" cannot start a name .
document.write("<script id=8d6b7cf147cf9 defer " +✉
It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.

Line 63, Column 63: an attribute value literal can occur in an attribute specification list only after a VI delimiter .
… document.write("<script id=8d6b7cf147cf9 defer " +✉
Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".

Line 63, Column 63: document type does not allow element "script" here .
… document.write("<script id=8d6b7cf147cf9 defer " +✉
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 64, Column 36: character "<" is the first character of a delimiter but occurred as data .
"src=://0></script>");✉
This message may appear in several cases:

You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.


Anybody knows the solution to this ? Thanks in advance.

Are you running the release from March 11th?

Cal

19 Mar 2008, 10:34 AM
#366
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

Hi Alex,

Alex Clarke:

Hi Andrew,

Great contribution here. :)

Just noticed that two of the admin settings don't have titles. You'll notice that these have been left out in the following install SQL code.

(NULL, '', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND', 'true', '', @configuration_group_id, 2, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'),
(NULL, '', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND_LINKS_PREFIX', '/outgoing/', '', @configuration_group_id, 2, NOW(), NULL, NULL),

>  
> Is this correct? Are they meant to be blank?
No, of course it is my error. I have to fix it in the next release. And now you can simply replace these lines by:

(NULL, 'Tracking Outbound', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND', 'true', '', @configuration_group_id, 2, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'),
(NULL, 'Tracking Outbound Links Prefix', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND_LINKS_PREFIX', '/outgoing/', '', @configuration_group_id, 2, NOW(), NULL, NULL),

19 Mar 2008, 8:39 PM
#367
vitalwares avatar

vitalwares

New Zenner

Join Date:
Jan 2008
Posts:
83
Plugin Contributions:
0

Re: Google Analytics Integration

modernm:

Are you running the release from March 11th?

Cal

Hi I was not when I posted this but I a now, and getting a whole new set of errors:


Line 49, Column 31: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified .
document.write("<script id=__ie_onload defer></script>");✉
Line 49, Column 48: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified .
document.write("<script id=__ie_onload defer></script>");✉
"VI delimiter" is a technical term for the equal sign. This error message means that the name of an attribute and the equal sign cannot be omitted when specifying an attribute. A common cause for this error message is the use of "Attribute Minimization" in document types where it is not allowed, in XHTML for instance.

How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ...

Line 49, Column 48: required attribute "type" not specified .
document.write("<script id=__ie_onload defer></script>");✉
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

Line 49, Column 48: document type does not allow element "script" here .
document.write("<script id=__ie_onload defer></script>");✉
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 49, Column 49: character "<" is the first character of a delimiter but occurred as data .
document.write("<script id=__ie_onload defer></script>");✉
This message may appear in several cases:


Please help..

20 Mar 2008, 7:50 PM
#368
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: Google Analytics Integration

What is the proper funnel order for Google's Analytics Goal funnel?

I have Shopping Cart > Shipping > Payment > Confirmation > Success what else do I need if any?

/index.php?main_page=shopping_cart
/store/index.php?main_page=checkout_shipping
/store/index.php?main_page=checkout_payment
/store/index.php?main_page=checkout_review
/store/index.php?main_page=checkout_confirmation
/store/index.php?main_page=checkout_success

The reason why I ask is that an order went through and they didn't hit the last step checkout_success

Odd huh?

25 Mar 2008, 9:35 PM
#369
crinolina avatar

crinolina

New Zenner

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

Re: Google Analytics Integration

hi i've installed on zen cart 1.37 Google Analytics Integration
Version Date

v 2.1.2 21.02.2008 11:04

After 24 hour i dont see any numbers (everything is on 0) on google analytics account. Receiving Data is checked and i think the code is seen by google.

What is the problem? any ideea?

27 Mar 2008, 12:34 AM
#370
nfm avatar

nfm

New Zenner

Join Date:
Jan 2008
Posts:
90
Plugin Contributions:
0

Re: Google Analytics Integration

crinolina:

hi i've installed on zen cart 1.37 Google Analytics Integration
Version Date

v 2.1.2 21.02.2008 11:04

After 24 hour i dont see any numbers (everything is on 0) on google analytics account. Receiving Data is checked and i think the code is seen by google.

What is the problem? any ideea?

Are you refreshing the Analytics page or did you log out and back in. I was refreshing it originally and didn't see any updates....but then I clicked back on my AdWords Campaign and then back to the Analytics tab and I saw some numbers.

30 Mar 2008, 1:00 AM
#371
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,566
Plugin Contributions:
58

Re: Google Analytics Integration

Not sure if this bug has been reported, but the analytics code is displaying all the pages on google in the following method:

/Home
/The Shopping Cart
/Checkout

This is great for displaying the PHP URLs in a readable form, however, when you do SITE OVERLAY, non of the links work because it thinks the link is www.domain.com/Home which doesn't exist.

Also, anyone who is setting up Goals or Funnel Visualization, you can't use your PHP URLs because this mod is transferring data on URLs that do not exist. So, put /Home /The Shopping Cart /Checkout etc. for each level of your funnel.

30 Mar 2008, 9:43 AM
#372
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

In admin set "Use pagename" to false.

30 Mar 2008, 10:54 AM
#373
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

Quick bug fix.
jscript_googleanalytics_outgoing.php
find

document.write("<script id=__ie_onload defer><\/script>");

replace by

document.write("<script id="__ie_onload" defer><\/script>");
30 Mar 2008, 3:41 PM
#374
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Google Analytics Integration

The code is commented out?? Should I uncomment? Is it stable?

  /* for Internet Explorer */
  /*@cc_on @*/
  /*@if (@_win32)
    document.write("<script id="__ie_onload" defer><\/script>");
    var script = document.getElementById("__ie_onload");
    script.onreadystatechange = function() {
      if (this.readyState == "complete") {
        init(); // call the onload handler
      }
    };
    return;
  /*@end @*/
31 Mar 2008, 2:11 AM
#375
jw00dy avatar

jw00dy

New Zenner

Join Date:
Jan 2007
Location:
Tooele, UT
Posts:
4
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

Quick bug fix.
jscript_googleanalytics_outgoing.php
find

document.write("<script id=__ie_onload defer></script>");

> replace by
> ```
document.write("<script id="__ie_onload" defer><\/script>");

I added this, and now IE is giving me a page error saying that it is expecting a ')'

I replaced that line of code with (changed inside set of " to a set of ' ):

document.write("<script id='__ie_onload' defer><\/script>");

I have no idea if that line is correct or not, but it doesn't give me the error any more.

31 Mar 2008, 6:47 AM
#376
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

jw00dy:

I replaced that line of code with (changed inside set of " to a set of ' ):

document.write("<script id='__ie_onload' defer></script>");

> I have no idea if that line is correct or not, but it doesn't give me the error any more.
Yes, that's right, thank you.
4 Apr 2008, 9:02 AM
#377
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Location:
Maidstone, Kent, UK
Posts:
310
Plugin Contributions:
0

Re: Google Analytics Integration

I am getting the very same errors on page validation, and have added the single quote, but its made no difference. I get the following

Line 54, Column 50: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified.

document.write("<script id='__ie_onload' defer><\/script>");  

In several places?

Has anyone actually got this working, if not then I think I should remove analytics until it is, as I would like the page 100% clear on validation.

4 Apr 2008, 9:44 AM
#378
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

spottedhaggis:

document.write("<script id='__ie_onload' defer></script>");

document.write("<script id='__ie_onload' defer='defer'><\/script>");

spottedhaggis:

I think I should remove analytics until it is, as I would like the page 100% clear on validation.
I think you should remove or deactivated this function.

5 Apr 2008, 3:17 PM
#379
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Google Analytics Integration

Need some help with google analytics... I have zen 1.3.8a. and I have magic seo url installed.

I have this code in my tpl_footer:

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

But I don't have any google analytics code in my tpl_main_page.... Is that OK???

Also on my admin google analytics configuration I am missing the title on the 3rd and 4th lines. There is a value, but no title...

And my use page name is set to true... should that be set to false???

Thanks.

6 Apr 2008, 6:36 PM
#380
elfino45 avatar

elfino45

New Zenner

Join Date:
Oct 2007
Posts:
11
Plugin Contributions:
0

Re: Google Analytics Integration

hey all,

sorry to interject like this...i've gone back through this thread in an attempt to get to the bottom of the google analytics issue i'm having. But nothing I try seems to work, so I think it's time to consult the experts.

Relevant details:

-I'm using version 1.2.2 of the "Simple Google Analytics" mod.
-My Zen Cart installation is 1.3.7.1.
-The mod installed seamlessly
-I have entered my Analytics account number in the Zen Cart admin.
-I've gone to my Google Analytics settings and chosen, "Yes, E-Commerce Site"

Google Analytics is successfully reporting stats and all the other information. The thing that is not working, however, is ecommerce integration.

I've been messing with this for weeks now in vain. Talk about frustrating!

my web store is: http://www.homageclothing.com/store/

Any ideas/help/suggestions would be greatly appreciated.

Thanks so much in advance.

Ryan