Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

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.