Webdomain.com Posted June 29, 2016 Share Posted June 29, 2016 (edited) 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 June 29, 2016 by Webdomain.com 0 Quote Link to comment Share on other sites More sharing options...
Webdomain.com Posted June 29, 2016 Author Share Posted June 29, 2016 I've just opened a request: https://requests.whmcs.com/topic/javascripts-in-footeroutput-variable 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst WHMCS Edward Posted June 29, 2016 WHMCS Technical Analyst Share Posted June 29, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
Webdomain.com Posted June 29, 2016 Author Share Posted June 29, 2016 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? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst WHMCS Edward Posted June 29, 2016 WHMCS Technical Analyst Share Posted June 29, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
Webdomain.com Posted June 29, 2016 Author Share Posted June 29, 2016 Thank you very much Eddy. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.