Edge/Integrations/Analytics/Google/projectjs.js
// Needs to be customized for specific websites. Defines how we identify if GA is available
Needs to be customized for specific websites. Defines how we identify if GA is available
Needs to be customized for specific websites . Defines how we identify if GA is available
function waitForGaEventApi(method) {
    if (window.ga && window.ga.getByName) {
      optlyHelper.helperLog("Found GA on the site");
      method();
    } else {
      if (waited < maxWait) {
        setTimeout(function () {
          waited = waited + timeoutInterval;
          waitForGaEventApi(method);
        }, timeoutInterval);
      } else {
        optlyHelper.helperLog("failed_to_find_ga");
      }
    }
  }
function waitForGaEventApi ( method ) { if ( window . ga && window . ga . getByName ) { optlyHelper . helperLog ( "Found GA on the site" ) ; method ( ) ; } else { if ( waited < maxWait ) { setTimeout ( function ( ) { waited = waited + timeoutInterval ; waitForGaEventApi ( method ) ; } , timeoutInterval ) ; } else { optlyHelper . helperLog ( "failed_to_find_ga" ) ; } } }
Needs to be customized for specific websites.
Needs to be customized for specific websites .