Post by vorl » Thu Dec 24, 2009 7:27 am

Cool thanks. Looks like though I will be getting your PRO version soon...

Newbie

Posts

Joined
Tue Jul 07, 2009 10:18 pm

Post by slickcoder » Wed Jan 13, 2010 12:12 pm

Hi imagetech,

I'm really new to opencart and would like to find out how to fix the bug on google analytics of opencart v1.4.0?
you pointed me to http://forum.opencart.com/viewtopic.php?f=31&t=9376 but have no clue to where to edit / include that.

thanks in advance.

Newbie

Posts

Joined
Wed Jan 13, 2010 9:02 am

Post by imaginetech » Wed Jan 13, 2010 12:27 pm

Hi Slick,

Open:

catalog/controller/common/footer.php

Find this section (Line 33):

Code: Select all

if ($this->config->get('google_analytics_status')) {
    $this->data['google_analytics'] = $this->config->get('google_analytics_code');
} else {
    $this->data['google_analytics'] = '';
}
Change to:

Code: Select all

if ($this->config->get('google_analytics_status')) {
   $this->data['google_analytics'] = html_entity_decode($this->config->get('google_analytics_code'), ENT_QUOTES);
} else {
    $this->data['google_analytics'] = '';
}
Hope that helps.

Image
www.opencartstore.com
Get OpenCart Templates and OpenCart Modules.


User avatar
Active Member

Posts

Joined
Fri Sep 04, 2009 12:25 pm
Location - Darwin, Australia

Post by datacon » Wed Feb 10, 2010 7:01 am

Hi imaginetech,

Thanks for your contribution! Just FYI - I just downloaded 1.3.4 from your site today, and I think there are a few missing files in the catalog directory. I get this error on my site:
Warning: fopen(C:\Inetpub\vhosts\httpdocs\_test\catalog/view/theme/default/template/module/googleanalytics.tpl) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\vhosts\httpdocs\_test\catalog\controller\module\googleanalytics.php on line 17Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\httpdocs\_test\catalog\controller\module\googleanalytics.php on line 18Warning: fclose(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\httpdocs\_test\catalog\controller\module\googleanalytics.php on line 19Error: Could not load template C:\Inetpub\vhosts\httpdocs\_test\catalog/view/theme/default/template/module/googleanalytics.tpl!
And What is ecommerce tracking, and how much better is it compared to sticking the analytics code at bottom of every page? I will invest in your PRO module if I can see what more it will do. Thanks for your advice.

New member

Posts

Joined
Tue Nov 17, 2009 11:10 am

Post by imaginetech » Wed Feb 10, 2010 8:10 am

Hi,

Check your permissions on the catalog/view/theme/YOURTHEME/template/module/ directory as the script is unable to create the required template file from those errors.

Frankly, ecommerce tracking is a must.

1. I stand to be corrected but I'm pretty sure the inbuilt Opencart report "Purchased Products" is inaccurate. If your using an offsite payment gateway, when a customers hits confirm in the order process a purchase is recorded. However if the customer does not complete the purchase at the offsite gateway and proceeds to leave then the purchase is still recorded even though it did not complete. The GA PRO mod tracks the sale and sends the data to GA only when the confirmation page is reached.

2. Valuable data. For every report in GA such as traffic sources etc you can click on an ecommerce tab and see exactly how much revenue is being brought in by those sources, visitors etc. For instance on my site I can tell how much revenue is being brought in via referrals from this forum or by search engines which allows me to effectively target my advertising and avoid wasting advertising dollars and effort on non productive sources.

3. When ecommerce tracking is turned on you also receive a completley new category aptly named ecommerce. With this you can look at total revenue, conversion rates, product performace, days to order, visits to order, etc etc. A full overview is here: http://www.google.com/support/googleana ... swer=60124.

In summary you cant run a business without knowing whats working and what isn't. Whether its Google ecommerce tracking or another solution (there are plenty) my advice is get one.

Now, this is where I'm going to be upfront and let you know that the GA PRO v1.3.4 module is very fragile and can have a lot of problems if your store has been modified in any way not including template changes.. I completely re-wrote the module for v1.4 and it's a lot more robust and should work regardless of the store configuration but the 1.3.4 version isn't half as robust.

Image
www.opencartstore.com
Get OpenCart Templates and OpenCart Modules.


User avatar
Active Member

Posts

Joined
Fri Sep 04, 2009 12:25 pm
Location - Darwin, Australia
Who is online

Users browsing this forum: No registered users and 83 guests