HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

HTTPS issue

This discussion is related to the Google Analytics addon.

Your code won't work over https due to:
ga.src = 'http://www.google-analytics.com/ga.js';

Please change this to:
ga.src = '//www.google-analytics.com/ga.js';
or
ga.src = 'https://www.google-analytics.com/ga.js';

Comments

  • Yes, I faced with same issue. I changed http to https in plugin.

  • edited March 2018

    I replaced

    ga.src = 'https://www.google-analytics.com/ga.js';

    with

    ga.src = (document.location.protocol == "https:" ? "https:" : "http:") + "//www.google-analytics.com/ga.js";

    Maybe will anyone update plugin?

Sign In or Register to comment.