Jump to content

Analytics and Livehelp in Footer?


Recommended Posts

Hello,

 

How to get Google Analytics and Livehelp Javascripts in the footer template?

 

Even if it is written in the documentation that both thos scripts will be outputted in the Smarty {$footeroutput} variable, they are actually not! They are rather outputted in the {$headoutput} variable.

The only suggestion from WHMCS support was to move the {$headoutput} variable into the footer template (No comment!).

This is absolutely not an option because other addons need this variable in the header to place there META keys for SEO purposes.

Of course, hook files of Analytics and Livehelp modules are encrypted (was it really necessary?) and we can't edit anything to get this javascripts at their right place...

 

Does anyone have an idea or a suggestion?

Edited by Webdomain.com
Link to comment
Share on other sites

  • WHMCS Technical Analyst
Of course, hook files of Analytics and Livehelp modules are encrypted

 

The hook file for the WHMCS Live Chat Add-on is not encrypted. Take a look at the file /includes/hooks/livehelp.php and you should be able to see the code and change the hook point there.

 

-Eddy

Link to comment
Share on other sites

Thank you very much Eddy. Anyhow I was looking for the wrong file.

It resolved the issue with the Livehelp Javascript.

 

A question though. It is possible to write an customized Hooks to overwrite the current Google Analytics hook and place the javascript into the footer?

Link to comment
Share on other sites

  • WHMCS Technical Analyst

I've checked with the development team and we don't think it would be possible to prevent the analytics code being output in the header from another hook. However a case has been opened to look at moving the Google Analytics output from the header to the footer.

 

-Eddy

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated