Title: (Hotjar) external script non loading
Last modified: August 16, 2018

---

# (Hotjar) external script non loading

 *  Resolved [Marco](https://wordpress.org/support/users/markwalls/)
 * (@markwalls)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/hotjar-external-script-non-loading/)
 * Hi!
 * when AO is active, the Hotjar script is not loading. (It is correctly placed 
   in the header and I can see it in the page source.)
 * Why does this happen?! Can I fix it inside AO?
 * Thanks in advance,
    Marco

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/hotjar-external-script-non-loading/#post-10595301)
 * I have no idea Marco, but I can give you some pointers;
 * 1. does this happen when JS optimization is off?
    2. do you see JS errors on 
   the browser console? 3. do you see the hotjar JS when AO is active? if not have
   you tried excluding it?
 * For generic info on troubleshooting in AO (including how to exclude) do have 
   a look at [the AO FAQ](https://wordpress.org/plugins/autoptimize/#faq).
 *  Thread Starter [Marco](https://wordpress.org/support/users/markwalls/)
 * (@markwalls)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/hotjar-external-script-non-loading/#post-10595572)
 * Hi,
    thanks for the super-quick response!
 * 1) Yes, with AO active, even if JS optimization is off Hotjar script is NOT loaded
   
   2) No JS error in the console: Hotjar script simply does not appear amongst the
   js scripts (ma it does appear in the page source: <script async=” src=’[https://static.hotjar.com](https://static.hotjar.com)……
   >) 3) Sorry, excluding it from what? From AO? How to…it’s an external script (
   this is not my strong suit…).
 * Looks like I need a little more advice, please.
 * Best,
    Marco
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/hotjar-external-script-non-loading/#post-10595651)
 * > 1) Yes, with AO active, even if JS optimization is off Hotjar script is NOT
   > loaded
 * well, next up; re-enable JS optimization and disable CSS or HTML optimization?
   🙂
 *  Thread Starter [Marco](https://wordpress.org/support/users/markwalls/)
 * (@markwalls)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/hotjar-external-script-non-loading/#post-10595715)
 * Oh…disabling HTML optimization worked :-O
 * Couldn’t figure it out by myself?!
 * Thanks…and sorry for bothering you 😛
 * Marco
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/hotjar-external-script-non-loading/#post-10596325)
 * no problem Marco! feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘(Hotjar) external script non loading’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [external js](https://wordpress.org/support/topic-tag/external-js/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/hotjar-external-script-non-loading/#post-10596325)
 * Status: resolved