Jump to content

Google analytics module not loading header.tpl?


zeki893
 Share

Recommended Posts

I'm running the latest version of google analytics module 2.1.1 and was modifying the header.tpl in the module foler to get adwords to work. The adwords code was not loading at all.  After many order attempts I checked ganalytics.php.

 

All it does is this:

public function hookHeader()
        {
                if (Configuration::get('GA_ACCOUNT_ID'))
                {
                        $this->context->controller->addJs($this->_path.'views/js/GoogleAnalyticActionLib.js');
                        return $this->_getGoogleAnalyticsTag();
                }
        }

What happened to hooking the header.tpl? Why is header.tpl even there if it's not being used.

[email protected]:/usr/share/nginx/html/modules/ganalytics# grep -ri header.tpl
[email protected]:/usr/share/nginx/html/modules/ganalytics#

It doesn't return anything

 
 

Am I understanding something wrong?

Edited by zeki893 (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More