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

Simple Google Analytics - Support

Views: 451,129

Results 1,621 to 1,640 of 2,165
9 Oct 2011, 7:47 PM
#1621
paintsprayparts avatar

paintsprayparts

New Zenner

Join Date:
Oct 2011
Posts:
10
Plugin Contributions:
0

Simple Google Analytics - Support

Originally Posted by HenryGale
I've run into an odd problem implementing Simple Google Analytics. When I finished all the installation steps in the readme, I found that my shop main page was loading completely blank, only the black background is visible.

I tracked the problem down to the code in tpl_main_page.php. When I add the code:

PHP Code:

<?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); } ?>

to my tpl_main_page.php, my main page goes blank. When I remove it, it works again.

Any ideas? I'm using the default tpl_main_page.php, as my template didn't have one. So this code is the only change from the Zen Cart default.

Thanks in advance!
HG

A blank page means there is an error in your PHP code somewhere. Typically this happens when one inadvertently alters other code or places the php code listed in such a way where it mess with current code on the site.

To find out where your problem is make sure you have error checking turned on (default in 1.3.9 versions but if you don't have that you can download the error checking file "Debug Error logging").

To find out where the error is then, place your code back on the page and then try to access it. When you get the white page an error log will be written to your 'cache' folder (with the date / time ... this is how you tell which log goes with which action. If there are too many you can delete the error logs and repeat the above step so there is only one in there when needed.)

Open that error log and it will tell you the exact issue and line of code to look at. If you can;'t figure out what the error means, post it here and I'll walk you through it.

Sorry to bring up an old post but i was having the exact same problem. For some reason the file was not saving correctly in Notepad++. When I used dreamweaver and was sure to save in file type .php everything started working fine. I'm sure if I had tried changing to .php in notepad it may have worked also but I didn't try it. Hope that helps someone out there.

9 Oct 2011, 8:10 PM
#1622
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Simple Google Analytics - Support

I've been wondering about this mod and its purpose. Google analytics is a very easy install simply using the code snippet provided by Google, so I'm not grasping the reason for a mod. Are there some additional features to this mod that provide more functionality? Am I missing out on something?

10 Oct 2011, 8:30 AM
#1623
aletiger avatar

aletiger

New Zenner

Join Date:
Apr 2010
Location:
Italy
Posts:
20
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi all,
I have problems with the integration of Google Analytics and the Ajax One Page Checkout.

I am unable to correctly configure the Google Analytics ecommerce feature and I can't track none of my shop orders.

Anyone has experienced the same problem?
There is a way to integrate Google Analytics ecommerce and Ajax One Page Checkout?

Thanks in advance,
Alessandro

10 Oct 2011, 5:38 PM
#1624
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Aletiger:

Hi all,
I have problems with the integration of Google Analytics and the Ajax One Page Checkout.

I am unable to correctly configure the Google Analytics ecommerce feature and I can't track none of my shop orders.

Anyone has experienced the same problem?
There is a way to integrate Google Analytics ecommerce and Ajax One Page Checkout?

Thanks in advance,
Alessandro

There was an issue but I believe the current version has corrected for it. What version of the Ajax One Page Checkout are you using and what version of Simple Google Analytics?

10 Oct 2011, 5:40 PM
#1625
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

RescoCCC:

I've been wondering about this mod and its purpose. Google analytics is a very easy install simply using the code snippet provided by Google, so I'm not grasping the reason for a mod. Are there some additional features to this mod that provide more functionality? Am I missing out on something?

From the Readme file:

Installs Google Analytics tracking capability on your site using either the legacy (urchin) version, "ga.js", or "asyncronous" tracking Google code version including:
a) E-Commerce Tracking
b) Adwords (pay per click) Conversion Tracking

10 Oct 2011, 7:22 PM
#1626
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

jeking:

I was wondering if you will be adding the Site Speed functionality to your mod?
analytics.blog spot dot com/2011/05/measure-page-load-time-with-site-speed.html

Yes Jim,

I was just getting ready to release a new version here and will include that as on option.

10 Oct 2011, 7:26 PM
#1627
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

RescoCCC:

I've been wondering about this mod and its purpose. Google analytics is a very easy install simply using the code snippet provided by Google, so I'm not grasping the reason for a mod. Are there some additional features to this mod that provide more functionality? Am I missing out on something?

Actually, this mod does quite a number of things that are not easily done by just pasting a snippet of code provided by Google into your page.

Just a few of the items are:

  1. Adwords conversion tracking capability
  2. Ecommerce tracking (with dynamic order values not static)
  3. Ability to customize the tracking code easily from the admin to accommodate additional tracking options.

etc...

If you just copy and paste the tracking code Google provides into your page you won't get product level detail 'conversion level ecommerce tracking' nor would you get adwords conversion tracking.

13 Oct 2011, 9:08 AM
#1628
asiamarinehub avatar

asiamarinehub

New Zenner

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

Re: Simple Google Analytics - Support

I am using v1.3.9h and do a new install SQL. There is no error but no count at google anlaytics. I did a source view and can see the account number. I did several transactions and the count does not move. How do I check if I got the installation correct?

13 Oct 2011, 11:57 AM
#1629
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

What is your url?

13 Oct 2011, 2:15 PM
#1631
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

The analytics code is not on the url. You mentioned installing the sql file. Did you also install and edit the files as mentioned in the readme?

13 Oct 2011, 4:29 PM
#1632
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Is there anyway to paste Microsoft/Bing adCenter conversion code into this mod so the Microsoft backend will track conversions?

econcepts:

Actually, this mod does quite a number of things that are not easily done by just pasting a snippet of code provided by Google into your page.

Just a few of the items are:

  1. Adwords conversion tracking capability
  2. Ecommerce tracking (with dynamic order values not static)
  3. Ability to customize the tracking code easily from the admin to accommodate additional tracking options.

etc...

If you just copy and paste the tracking code Google provides into your page you won't get product level detail 'conversion level ecommerce tracking' nor would you get adwords conversion tracking.

14 Oct 2011, 1:01 AM
#1633
asiamarinehub avatar

asiamarinehub

New Zenner

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

Re: Simple Google Analytics - Support

jeking:

The analytics code is not on the url. You mentioned installing the sql file. Did you also install and edit the files as mentioned in the readme?

This is what i did. I use this installer "Simple_Google_Analytics" http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=412 and copy those files under "admin" and "includes" folders.

In the "readme.txt", i made changes according to the "
Installation Instructions (New Installs ONLY and upgrade from oldest 1.0 version)" and > #### PART A: ####

At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php
Copy and paste the following lines of code (found below) just before the </body> tag:

<?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); } ?>

PART B:

At the bottom of /includes/templates/[your_template]/common/html_header.php
Copy and paste the following lines of code (found below) just before the </head> tag:

<?php /* Begin Simple Google Analytics */ if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,popup_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popup_shipping_estimator')) ) { //Skip outputting the tracking code as this is a pop-up window } else { // Print tracking code to page if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); } } // end if for page determination /* End Simple Google Analytics */ ?>

As I cant find this "html_header.php" in "mytemplate", I copy from the default template and paste it inside "mytemplate" with changes mention above.

After that, i install "googleanalytics-INSTALL" using SQL patches. Under the google language, I only insert three lines that are for "English". There is no error return. I login to MySql and can find the new entries.

I went to the admin page to enter the "Analytics Account".

Please advise me where did I go wrong.

14 Oct 2011, 1:23 AM
#1634
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

In your Zen Admin, under Configuration you do have the option of 'Google Analytics Configuration'?

My guess is that you did not complete Part A and/or Part B correctly. Double check you edited the right files in the right folders. What is the name of your template?

Did you install google_analytics.php into \includes\templates\your_template?

14 Oct 2011, 1:56 AM
#1635
asiamarinehub avatar

asiamarinehub

New Zenner

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

Re: Simple Google Analytics - Support

I have the option of 'Google Analytics Configuration" under Configuration.

I have made changes at /www/mysite/includes/templates/template_my/common/tpl_main_page.php

and

/www/mysite/includes/templates/template_my/common/html_header.php

I copy the whole folder of google_analytics to /www/mysite/includes/templates/template_my/google_analytics

14 Oct 2011, 2:09 AM
#1636
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

What version of Zen Cart are you running?

What you posted is correct, assuming your template is /template_my/. However, looking at your source code again, your template appears to be /template_natural/

What do you show under Configuration>Tools>Template Selection for Template Directory?

14 Oct 2011, 2:31 AM
#1637
asiamarinehub avatar

asiamarinehub

New Zenner

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

Re: Simple Google Analytics - Support

I am using v1.3.9h

Yes, the template is template_natural. The changes are made to the files there. My mistake in earlier post

14 Oct 2011, 7:13 AM
#1638
asiamarinehub avatar

asiamarinehub

New Zenner

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

Re: Simple Google Analytics - Support

I have figured it out. I was selecting dates way before this analytics starts. Thanks for all the help

14 Oct 2011, 4:54 PM
#1639
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Simple Google Analytics - Support

econcepts:

Actually, this mod does quite a number of things that are not easily done by just pasting a snippet of code provided by Google into your page.

Just a few of the items are:

  1. Adwords conversion tracking capability
  2. Ecommerce tracking (with dynamic order values not static)
  3. Ability to customize the tracking code easily from the admin to accommodate additional tracking options.

etc...

If you just copy and paste the tracking code Google provides into your page you won't get product level detail 'conversion level ecommerce tracking' nor would you get adwords conversion tracking.

Looks like I am missing some goodies. Thanks for the clarification!

14 Oct 2011, 5:07 PM
#1640
innovations14 avatar

innovations14

New Zenner

Join Date:
Oct 2011
Posts:
2
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hello,

I am using the Simple Analytics Module, but I have a few questions and concerns.

  1. On the setup page for 'Adwords Conversion Tracking Number' there is XXXXXXXXXXX. When setting up the conversion tracking through adwords, I received a full 19 line code snippet. Should I place that full snipped into the section, or find the number somewhere else?
    The path I followed in adwords was:
    reporting and tools > Conversions > Code

  2. Also, for ecommerce tracking, what snippet should I paste? I guess my concern here is that they need to be dynamically created, and I wasn't sure how that was being generated on the back end for the ecommerce tracking

  3. My last question is about a couple of other modules I am running. Specifically, I am using PayPal checkout and GoogleCheckout option for order processing. Will this effect any of the tracking in this module? If so, is there any fix?

Thanks to anyone who can help!