コード例 #1
0
    internal void InitializeTracker()
    {
        Debug.Log("Initializing Google Analytics iOS Tracker.");
        handler = new GAIHandler();
        handler._setDispatchInterval(dispatchPeriod);
        handler._setDryRun(dryRun);
        handler._setTrackUncaughtExceptions(true);
        SetLogLevel(logLevel);
        handler._getTrackerWithTrackingId(trackingCode);

        handler._setSampleFrequency(sampleFrequency);
        SetTrackerVal(Fields.APP_NAME, appName);
        SetTrackerVal(Fields.APP_ID, bundleIdentifier);
        SetTrackerVal(Fields.APP_VERSION, appVersion);

        if (adIdCollection)
        {
            handler._enableIDFACollection();
        }

        if (anonymizeIP)
        {
            handler._anonymizeIP();
        }
    }
コード例 #2
0
  internal void InitializeTracker () {
    Debug.Log ("Initializing Google Analytics iOS Tracker.");
    handler = new GAIHandler();
    handler._setDispatchInterval(dispatchPeriod);
    handler._setDryRun(dryRun);
    handler._setTrackUncaughtExceptions(true);
    SetLogLevel(logLevel);
    handler._getTrackerWithTrackingId(trackingCode);

    handler._setSampleFrequency(sampleFrequency);
    SetTrackerVal(Fields.APP_NAME, appName);
    SetTrackerVal(Fields.APP_ID, bundleIdentifier);
    SetTrackerVal(Fields.APP_VERSION, appVersion);
    if(anonymizeIP) {
      handler._anonymizeIP();
    }
  }