Re: Simple Google Analytics - Support
Quote:
Originally Posted by
srigari
I have SGA installed and was working fine for some time. Now it is not working - i.e., my stats show '0' all the time.
http:// www. salevalley .com
Can someone familiar with this module help me how to go about it.
Thanks
It does not look like you are using this module by your source code. You have this
Quote:
<script type="text/javascript">
<!--
var GOOGLE_ANALYTICS_TRACKING_OUTBOUND_LINKS_PREFIX = "/outgoing/";
//-->
</script>
<script type="text/javascript" src="includes/templates/iC_AthemeV1.3/jscript/googleanalytics_outgoing.js"></script>
</head>
<body id="indexBody" onload="googleanalytics_outgoing_init();">
Look total different
Quote:
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
Re: Simple Google Analytics - Support
Ok I've followed the instructions in the readme but I still don't get Google to show up under Admin - Configuration. Does anyone know why? I added the following code to the end of tpl_main_page.tpl (the other code was already there), reuploaded that file along with the files in admin & includes and applied the install patch. I am using the template_default. Any suggestions????
Re: Simple Google Analytics - Support
Re: Simple Google Analytics - Support
Hi! How do I uninstall Simple Google Analytics? Sorry, but I am a noob, so would appreciate a step by step instruction. thank you!
Re: Simple Google Analytics - Support
i thought there was unistall sql file -
----- googleanalytics-UNINSTALL.sql ------
-----------------------------------------------
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4 AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @t4 AND configuration_group_id != 0;
DROP TABLE IF EXISTS google_analytics_languages;
------
hope this helps.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
noobuser
i thought there was unistall sql file -
----- googleanalytics-UNINSTALL.sql ------
-----------------------------------------------
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4 AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @t4 AND configuration_group_id != 0;
DROP TABLE IF EXISTS google_analytics_languages;
------
hope this helps.
That just drops it from your store configurations. You will have to go to your phpMyAdmin database to get rid of everything that deals with google analytics.
Re: Simple Google Analytics - Support
Hi,
Ive just installed this also but im not getting anything in the admin area?
Any ideas?
Cheers
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Wilkesy
Hi,
Ive just installed this also but im not getting anything in the admin area?
Any ideas?
Cheers
If you are just uploading the googleanalytics-INSTALL.sql file thats not the way to do it. You have to copy and past it into your store admin/tools Install SQL Patches. I'm not saying that is what you are doing, but if it is copy and past it.
Re: Simple Google Analytics - Support
Hi,
Thanks for the reply.
i did copy and paste the entire text file into the 'Install SQL pateches' box. i have tried doing it again and still no joy.
Cheers
Paul
Re: Simple Google Analytics - Support
Here are the instruction to install this module. Hope it helps you who are having problems.
Quote:
Installation Instructions (New Installs ONLY and upgrade from oldest 1.0 version)
-----------------------------------------------------------------------------------
NOTE 1: Follow these set of instructions ONLY if you have never had any of the Simple Google Analytics Modules installed.
If you have had any other version (1.0 or 1.1) prior to this, then follow the upgrade instructions for your version.
NOTE 2: Where ever you see the words "your_template" (in either these instructions, or the file folders included with the install)
you should REPLACE that with the directory name that yoru template is running from. So for example, if you are running a
custom template and the directory that you decided to keep those template files in is called "mycustomtemplate" then, where ever
you see the words "your_template", you would change it to "mycustomtemplate".
If you are using the default template provided with zen cart, then you would replace each instance of "your_template" with the
following: "template_default"
HINT: If you don't know what the directory name is you are using, then you can find it out by following these steps:
1) Login to your Zen Cart admin
2) Go to "Tools > Template Selection" from the menu
3) From the screen that shows, look under the column that is titled "Template Directory". The name you find under that column is the
name of the directory that your zen cart site design is running in. This EXACT name is the one that you will use to replace
each instance of "your_template".
1. After you have identified the directory that your template is running from and determined where you will be uploading the files to,
upload the included install files and directories to your zen cart site.
2. Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
includes this code (if not see trouble shooting below it is not neccassary but an addition
to your template needs to be made):
**** HELPFUL HINT: ****
If you are runnning any of the 1.3.x versions of Zen Cart, this line is already
included with those installs and you can safely skip this step. You may need to check earlier
versions for it though.
***********************
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
3. 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
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
4. If this is a BRAND NEW install, you will need to update your database with the googleanalytics.sql file.
If you are upgrading (from the oldest 1.0 version), you will need to use the SQL file that is called googleanalytics-UPGRADE.sql
In your site admin go to Tools->Install Sql Patches and apply the googleanalytics.sql patch included.
NOTE to those upgrading from version 1.1
========================================
If you are upgrading from the previous 1.1 version, then follow the upgrade instructions included for that version located
in the abvoe section. Do not use these instructions.
NOTE to those upgrading from version 1.0
========================================
The new "ga.js" version of tracking does not need one bit of JavaScript that was included in the previous "urchin.js"
versions. You will need to DELETE this line from your code.
includes/modules/pages/checkout_success/on_load_main.js
REMOVE the following line from that file "javascript:__utmSetTrans();"
If that is the ONLY line you see in the file, than it is safe to completely DELETE the file. If this is not the only
line found in that file, then delete only that line, and save the file. Re-upload the new version to your site.
Keeping this line in when using the new ga.js tracking code can causee JavaScript errors to pop up on your site (since
the new code does not refer to this function anymore).
------------------------------------------------------
How to use this module
------------------------------------------------------
1. Once you have completed a successful install or upgrade, login to your Zen Cart admin and go to configuration->google analytics configuration and set your google
analytics account number and any of the other settings as you see fit.
2. Login to your Google Analytics account and make sure your site is set to "receiving data"
or "waiting for data" (this means you have sucessfully installed the analytics code on your
site.)
3. To take advantage of Google Analytics E-Commerce Tracking, you must login to your Google
Analytics account after installing this contribution and enable e-commerce reporting as follows:
a. Log in to your account.
b. Click "Edit" next to the profile you'd like to enable.
c. On the Profile Settings page, click "edit" next to Main Website Profile Information.
d. Change the E-Commerce Website radio button from No to Yes.
e. Save your changes