VirtueMart 1.1.x [ Old version - no longer supported ] > Mambots, Plugins VM 1.1
Is there a working Google Analytics/Virtuemart
mapri:
--- Quote from: mronayne on March 29, 2010, 05:42:22 AM ---Just a thought... I am by no means a PHP expert but I noticed that when curly brackets are not used the ":" is added to an if/elsif block to terminate the if/elseif" condition statements in the PHP Manual? Could it be that your script isn't executing due to the echo statement being blocked because it's evaluated inside the if/elseif block?
According to the PHP manual the following would be the proper syntax - note the ":"
--- Code: ---if (file_exists('phpcipher.bin')): return include('phpcipher.bin');
elseif (file_exists('../phpcipher.bin')): return include('../phpcipher.bin');
elseif (file_exists('../../phpcipher.bin')): return include('../../phpcipher.bin');
elseif (file_exists('../../../phpcipher.bin')): return include('../../../phpcipher.bin');
elseif (file_exists('../../../../phpcipher.bin')): return include('../../../../phpcipher.bin');
else: print 'A required file <b>phpcipher.bin</b> was not found.';
--- End code ---
If this doesn't work I also believe you can move the GA script outside the PHP block and eliminate the "echo" and just use a straight <script></script> block? I haven't tested it this way but I see no reason why this wouldn't work as well.
--- End quote ---
To give an update and a heads-up in case there is someone using ccIdeal and thus with the same problem.
using the : as suggested above crashes your iDeal. If u want analytics to work you have to contact the maker of ccIdeal and request an unencrypted version of checkout.thankyou.php and store.payment_method_list.php You can then successfully use the above guide!
bobysolo:
There is a FREE plugin for basic E-commerce tracking here - http://www.ccomca.com/en/community/item/379-janalyticsvirtuemart.html
For tracking also pages of the ordering pages and the ability to setup Goals and Funnels - 8,99€ - http://www.barg-it.de/en/Modules-for-Joomla-15/BIT-Virtuemart-Google-Analytics.html
Navigation
[0] Message Index
[*] Previous page
Go to full version