Cuda:
I have been working to get your script working perfectly. All was going great. And I see my google account number at the bottom of the source code. And analytics is showing visits to the "cart" directory.
But when I place an item in my cart, and move thru main_page=shopping_cart, click "go to check out" where I arrive at main_page=login, then I get an "errors on page" at the bottom of the browser. I assume this is a javasript error, but I am not sure. It is a yellow triangle with an exclamation point.
One interesting note:
I was trying to find the problem, so I deleted the <?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?> at the bottom of tpl_main_page, verified on the server source code that it was gone, but I still saw the error. I am quite certain there were not any errors before installing the analytics script, because I was keeping a close eye on that. Do you know why this would be? I have since put the code back into tpl_main_page. Perhaps this is not related to the script. But it seems like it is. Sorry for the long email.
Any advice?
I would greatly appreciate it.