FirebaseAnalytics Framework Reference

FIRAnalytics(OnDevice)

Undocumented

  • Initiates on-device conversion measurement given a user email address. Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op.

    Declaration

    Swift

    class func initiateOnDeviceConversionMeasurement(emailAddress: String)

    Parameters

    emailAddress

    User email address. Include a domain name for all email addresses (e.g. gmail.com or hotmail.co.jp).

  • Initiates on-device conversion measurement given a phone number in E.164 format. Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op.

    Declaration

    Swift

    class func initiateOnDeviceConversionMeasurement(phoneNumber: String)

    Parameters

    phoneNumber

    User phone number. Must be in E.164 format, which means it must be limited to a maximum of 15 digits and must include a plus sign (+) prefix and country code with no dashes, parentheses, or spaces.

  • Initiates on-device conversion measurement given a sha256-hashed user email address. Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op.

    Declaration

    Swift

    class func initiateOnDeviceConversionMeasurement(hashedEmailAddress: Data)

    Parameters

    hashedEmailAddress

    User email address as a UTF8-encoded string normalized and hashed according to the instructions at https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3.

  • Initiates on-device conversion measurement given a sha256-hashed phone number in E.164 format. Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op.

    Declaration

    Swift

    class func initiateOnDeviceConversionMeasurement(hashedPhoneNumber: Data)

    Parameters

    hashedPhoneNumber

    UTF8-encoded user phone number in E.164 format and then hashed according to the instructions at https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3.