Bug Microsoft Edge/IE - WPMUDev Spirit Theme - Better Analytics plugin

Discussion in 'Better Analytics' started by Brian Becker, Jan 6, 2016.

  1. #1
    I've set up two sites cloned one from the other and in one I activated the Better Analytics plugin.

    http://ripleycountyhealth.com
    http://rchealth.staging.wpengine.com - above site plus plugin activated

    The staging site will not display the large background graphics on the Microsoft Edge or IE browsers.

    Any help would be greatly appreciated.
     
    Brian Becker, Jan 6, 2016 IP
  2. Brian Becker

    Brian Becker Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #2
    The problem is in /wp-content/plugins/better-analytics/js/loader.php

    SCRIPT14: A security problem occurred. - loader.php (5,85)
     
    Brian Becker, Jan 6, 2016 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    It's a not super easy to test on this end since it's been about 15 years since I had a Windows machine...

    But if you open up the better-analytics/js/ba.js file and add this to the very beginning of it:

    if (!window.location.origin) {
        window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
    }
    Code (JavaScript):
    Does that fix it?
     
    digitalpoint, Jan 6, 2016 IP
  4. Brian Becker

    Brian Becker Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4
    No, the security error is still there and the background slider still isn't working...it was at {5,85} so now it has moved down 3 lines to {8,85}

    Brian
     
    Brian Becker, Jan 6, 2016 IP
  5. Brian Becker

    Brian Becker Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    I'm going to use a different plugin. Thanks for the try.
     
    Brian Becker, Jan 6, 2016 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    Okay, no worries. :)
     
    digitalpoint, Jan 7, 2016 IP