Piwik in Sencha Animator


I’m currently trying to put piwik in an app created with Sencha animator. Everything is working fine if I open the html 5 document that Sencha generate when exporting and then implement the piwik main code. I have some event trackers that I can directly give in the app and it is still working without any error message.

My problem is that I want to have the base code direct in my app, I don’t want to copy-paste it every time in the html 5. And when I do it the following error message appears : Resource interpreted as Image but transferred with MIME type text/html:

Here is a print screen of the error box.