Support Home > SDK Integration > SDK – KochavaTracker > Class – KochavaTracker > Instance Method – tracker(_:didRetrieveAttributionDictionary:)

Instance Method – tracker(_:didRetrieveAttributionDictionary:)

  • Instance Method

    tracker(_:didRetrieveAttributionDictionary:)

    Notifies the delegate that attribution information has been retrieved from the server, and provides the information in a dictionary.


    Declaration

    Parameters

    tracker The tracker
    attributionDictionary The attribution information provided by the server, in a dictionary.
    Possible return values:

    • nil: This means that attribution information could not be retrieved. This may mean that attribution has not yet been determined.
    • A dictionary containing a single key/value pair of key “attribution” with a value of false. This represents an organic install. An organic install is one which has not been attributed.
    • A dictionary with a variety of attribution information. This indicates that the install was attributed and the dictionary contains the details.

    Discussion

    The tracker will retrieve attribution information if the kKVAParamRetrieveAttributionBoolKey parameter is passed with a value of true during its configuration. It does this usually within about 10 seconds from the initial launch, although it is subject to a variety of conditions which can cause this time interval to be longer.

    Once attribution information has been retrieved, the result is cached locally. If the KochavaTrackerDelegate instance method tracker(_:didRetrieveAttributionDictionary:) is implemented, it will then also be called. The attribution information is passed as a parameter.

    Requirement(s)

    The kKVAParamRetrieveAttributionBoolKey parameter must be passed with a value of true to the tracker during its configuration.

    The delegate KochavaTrackerDelegate must be configured on the tracker.

     

    Sample Code:

     

    For a detailed explanation of attribution responses, refer to our Attribution Response Examples support documentation.

     

    See Also

    Related Symbols class KochavaTracker

    The class KochavaTracker provides an interface between a host application and Kochava’s Attribution and Analytics Servers. A tracker manages the exchange of data between these two entities, along with the associated tasks and network transactions.

    constant kKVAParamRetrieveAttributionBoolKey

    A constant to be used as a key in a key/value pair, where the corresponding value is a boolean indicating if attribution information should be retrieved from the Kochava Server.

    func attributionDictionary() -> String?

    Gets the attribution dictionary that has already been retrieved by the tracker from the Kochava Server.

  • Instance Method

    tracker(_:didRetrieveAttributionDictionary:)

    Notifies the delegate that attribution information has been retrieved from the server, and provides the information in a dictionary.


    Declaration

    Parameters

    tracker The tracker
    attributionDictionary The attribution information provided by the server, in a dictionary.
    Possible return values:

    • nil: This means that attribution information could not be retrieved. This may mean that attribution has not yet been determined.
    • A dictionary containing a single key/value pair of key “attribution” with a value of false. This represents an organic install. An organic install is one which has not been attributed.
    • A dictionary with a variety of attribution information. This indicates that the install was attributed and the dictionary contains the details.

    Discussion

    The tracker will retrieve attribution information if the kKVAParamRetrieveAttributionBoolKey parameter is passed with a value of true during its configuration. It does this usually within about 10 seconds from the initial launch, although it is subject to a variety of conditions which can cause this time interval to be longer.

    Once attribution information has been retrieved, the result is cached locally. If the KochavaTrackerDelegate instance method tracker(_:didRetrieveAttributionDictionary:) is implemented, it will then also be called. The attribution information is passed as a parameter.

    Requirement(s)

    The kKVAParamRetrieveAttributionBoolKey parameter must be passed with a value of true to the tracker during its configuration.

    The delegate KochavaTrackerDelegate must be configured on the tracker.

     

    Sample Code:

     

    For a detailed explanation of attribution responses, refer to our Attribution Response Examples support documentation.

     

    See Also

    Related Symbols class KochavaTracker

    The class KochavaTracker provides an interface between a host application and Kochava’s Attribution and Analytics Servers. A tracker manages the exchange of data between these two entities, along with the associated tasks and network transactions.

    constant kKVAParamRetrieveAttributionBoolKey

    A constant to be used as a key in a key/value pair, where the corresponding value is a boolean indicating if attribution information should be retrieved from the Kochava Server.

    attributionDictionary

    Gets the attribution dictionary that has already been retrieved by the tracker from the Kochava Server.

 
 

Last Modified: Jul 12, 2018 at 10:06 am