Mixpanel SDK 연동

참고:
본 연동 전 일부 데이터 사용에 관한 요건을 확인하시기 바랍니다.

이 가이드에 나온 설명에 따라 Mixpanel SDK와 Adjust SDK를 연동할 수 있습니다.

시작에 앞서

본 기능을 사용하려면 우선 플랫폼에 대한 Adjust SDK를 다운로드하고 설정해야 합니다. 아래 링크된 설명서를 참조하시기 바랍니다.

⚙️ iOS / Android

가이드

Mixpanel API는 "super properties"를 등록할 수 있도록 해줍니다. 이러한 속성은 모든 활동과 함께 전송될 수 있습니다. 자세한 정보는 Mixpanel의 문서를 참조하시기 바랍니다.

Adjust SDK와 Mixpanel SDK를 연동하려면, "super properties"를 등록해야 합니다: 해당 정보는 Adjust 백엔드로부터 응답을 받은 후 전송해야 합니다. 이를 위해 플랫폼별 어트리뷰션 콜백 가이드에 나온 단계를 수행하시기 바랍니다.

예시

Mixpanel API를 사용하기 위해 콜백 메서드를 다음과 같이 변경합니다:

Objective-C
Swift
Java
- (void)adjustAttributionChanged:(ADJAttribution *)attribution {
    Mixpanel *mixpanel = [Mixpanel sharedInstance];

    // The adjust properties will be sent
    // with all future track calls.
    if (attribution.network != nil)
        [mixpanel registerSuperProperties:@{@"[Adjust]Network":  attribution.network}];
    if (attribution.campaign != nil)
        [mixpanel registerSuperProperties:@{@"[Adjust]Campaign": attribution.campaign}];
    if (attribution.adgroup != nil)
        [mixpanel registerSuperProperties:@{@"[Adjust]Adgroup":  attribution.adgroup}];
    if (attribution.creative != nil)
        [mixpanel registerSuperProperties:@{@"[Adjust]Creative": attribution.creative}];
}