Support » Plugin: Google Analytics » Incorrect Content-Type

  • Resolved edo888



    The ajax request to load analytics javascript has incorrect Content-Type response header which is set to text/html, it needs to be set to application/javascript, since the loaded content is a javascript.

    This causes issues with GTranslate which is trying to translate the loaded content (javascript code), please set a correct Content-Type to make GTranslate and Google Analytics plugin conflict free.

    Thanks! 🙂

    • This topic was modified 2 years, 3 months ago by edo888.
Viewing 1 replies (of 1 total)
  • Hi,

    To fix the issue we have added

    header('Content-Type: application/javascript');

    Into /wp-content/plugins/googleanalytics/class/controller/Ga_Frontend_Controller.php line 11.

    Please include this change in future updates.

    Thanks! 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Incorrect Content-Type’ is closed to new replies.