Re: Simple Google Analytics - Support
I have GA mod installed tracking is fine but when I tried to create a funnel with checkout success as the final page I wasnt getting any successful conversions.
I read something about Jam and GA somewhere but can find the post. I see the Jam script at the bottom of the page but not the GA? Is there a reason. Please get back asap if you can as I am going to be setting up a new company and want to get it right from the start.
thanks
url is www.crafterscafe.com
Re: Simple Google Analytics - Support
I have done everything required to make this mod work, however, I can't get the code to show up in my source. Below is the last section of my tpl_main_page.php file. I am using a template called "classic" and it does not have a common folder in it. I assume it uses the "default_template" for everything it doesn't have, correct? I went ahead and put the google_analytics folder in both the classic folder and the default_template folder just to be safe. The site is www.kikoykiosk.com
Thanks for your help.
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!--eof- banner #6 display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
zackman2002
I have done everything required to make this mod work, however, I can't get the code to show up in my source. Below is the last section of my tpl_main_page.php file. I am using a template called "classic" and it does not have a common folder in it. I assume it uses the "default_template" for everything it doesn't have, correct? I went ahead and put the google_analytics folder in both the classic folder and the default_template folder just to be safe. The site is
www.kikoykiosk.com
Thanks for your help.
I don't see the required bit of 'onload=' code in your opening <body> tag.
From the installation.txt
PHP Code:
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.'"'; ?>>
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
crafterscafe
I have GA mod installed tracking is fine but when I tried to create a funnel with checkout success as the final page I wasnt getting any successful conversions.
I read something about Jam and GA somewhere but can find the post. I see the Jam script at the bottom of the page but not the GA? Is there a reason. Please get back asap if you can as I am going to be setting up a new company and want to get it right from the start.
thanks
url is
www.crafterscafe.com
Yes, the JAM code (because of how it is installed) overrides the code for GA in the footer.
Here is the link to the proper install when using both. (Scroll all the way to the bottom of the page to the July 22 comment I made and you'll see in the comments section the "how to" for JAM integration with GA.)
http://www.zencartoptimization.com/2...-the-workbook/
Let me know if you have any further questions!
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
BassFace
I don't see the required bit of 'onload=' code in your opening <body> tag.
From the installation.txt
PHP Code:
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.'"'; ?>>
It's ok if that is not present (the onload portion). That won't show on most sitess for the most part (even when GA is present). That's because it is php code which activates at run time. Typically the body tag remains as is and the onload is not critical.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
zackman2002
I have done everything required to make this mod work, however, I can't get the code to show up in my source. Below is the last section of my tpl_main_page.php file. I am using a template called "classic" and it does not have a common folder in it. I assume it uses the "default_template" for everything it doesn't have, correct? I went ahead and put the google_analytics folder in both the classic folder and the default_template folder just to be safe. The site is
www.kikoykiosk.com
Thanks for your help.
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!--eof- banner #6 display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>
You likely did not place the code in the correct location to get Google Analytics on the page.
The classic template pulls from the default pages (the classic is directory actually only runs the look of the site.)
What you need to do is make sure you place the "google_analytics.php" reference in the tpl_main_page of the classic template and make sure you copy the directory google_analytics to the correct location for reference as well. It might be best to create your own "common" directory under the classic template to add your own file to as well.
If you send me a private message with your login details I can correct it for you quickly.
Re: Simple Google Analytics - Support
I'm trying to track traffic from other sites especially cpc that comes in to specific product pages.
Can this be done?
When I look for the google analytics code on pages it appears on the home page and category pages BUT not on product pages!!! Is that right?
Re: Simple Google Analytics - Support
Re: Simple Google Analytics - Support
We have installed the latest version of Simple Analytics (v1.2.2) and we still do not have ecommerce tracking showing in Google Analytics.
-We have installed and re-installed, but with no luck in getting ecommerce tracking.
-We have made sure that the profile in Google Analytics has been edited to turn on ecommerce tracking.
-All of the pages on our site have the tracking installed EXCEPT the order confirmation / thank you for your order page. This is where the eCommerce tracking code should be installed as per Google Analytics:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-XXXXX-1");
pageTracker._trackPageview();
pageTracker._addTrans(
"1234", // Order ID
"Mountain View", // Affiliation
"18.28", // Total
"1.29", // Tax
"5", // Shipping
"San Jose", // City
"California", // State
"USA" // Country
);
pageTracker._addItem(
"1234", // Order ID
"DD44", // SKU
"T-Shirt", // Product Name
"Green Medium", // Category
"11.99", // Price
"1" // Quantity
);
pageTracker._trackTrans();
} catch(err) {}</script>
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jamesmcl515
We have installed the latest version of Simple Analytics (v1.2.2) and we still do not have ecommerce tracking showing in Google Analytics.
-We have installed and re-installed, but with no luck in getting ecommerce tracking.
-We have made sure that the profile in Google Analytics has been edited to turn on ecommerce tracking.
-All of the pages on our site have the tracking installed EXCEPT the order confirmation / thank you for your order page. This is where the eCommerce tracking code should be installed as per Google Analytics:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-XXXXX-1");
pageTracker._trackPageview();
pageTracker._addTrans(
"1234", // Order ID
"Mountain View", // Affiliation
"18.28", // Total
"1.29", // Tax
"5", // Shipping
"San Jose", // City
"California", // State
"USA" // Country
);
pageTracker._addItem(
"1234", // Order ID
"DD44", // SKU
"T-Shirt", // Product Name
"Green Medium", // Category
"11.99", // Price
"1" // Quantity
);
pageTracker._trackTrans();
} catch(err) {}</script>
James,
Do you have an affiliate program (like JAM / JROX) installed on your site? This the way this is installed causes it to override the thank you page (footer) of the site and thus renders the Google Analytics Tracking code non-working (it removes it from the page).
If that is the case you can read my post in the link below for installing it with JROX / JAM. Go to the following link and scroll to the bottom of the page (July 22 post). You'll see the instructions for how to do this.
http://www.zencartoptimization.com/2...-the-workbook/
If this does not correct your issue let me know and I can take a look.
Thanks!