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?
Printable View
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?ma...roducts_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)" andAs I cant find this "html_header.php" in "mytemplate", I copy from the default template and paste it inside "mytemplate" with changes mention above.Quote:
#### 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,pop up_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popu p_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 */
?>
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.
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\?
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
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?
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
I have figured it out. I was selecting dates way before this analytics starts. Thanks for all the help
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!