Solved

Help understanding the double events to Mixpanel


Badge

Hi,

When I go to Integrations > Mixpanel > scroll down to Integration Events, it looks like there are 2 simultaneous events each time, with different but related payloads. Can someone explain what’s going on? I’m not a dev (anymore :) so it might be obvious. I’ll paste the payloads below in case it’s helpful.

Thanks,
TOM

//

PAYLOAD 1:

{
"event": "Subscription Renewed",
"properties": {
"$insert_id": "a292fb14-49ca-429d-aff5-79ce7b4ce650",
"aliases": [
"01J1SRK36AYY0YE8JZP43XDNPR"
],
"app_id": "appfaa70d11aa",
"currency": "USD",
"distinct_id": "01J1SRK36AYY0YE8JZP43XDNPR",
"entitlement_id": null,
"entitlement_ids": [
"standard"
],
"environment": "SANDBOX",
"expiration_at": "2024-07-06T01:29:12Z",
"offer_code": null,
"original_app_user_id": "01J1SRK36AYY0YE8JZP43XDNPR",
"original_transaction_id": "2000000607884405",
"period_type": "NORMAL",
"presented_offering_id": "default",
"product_id": "s2_standard_1m_699_1m0",
"purchased_at": "2024-07-06T01:24:12Z",
"revenue": 6.99,
"store": "APP_STORE",
"subscriber_attributes": {
"$attConsentStatus": "denied",
"$mixpanelDistinctId": "01J1SRK36AYY0YE8JZP43XDNPR"
},
"time": 1720229052,
"token": "",
"transaction_id": "2000000648950583"
}
}

PAYLOAD 2:

[
{
"$append": {
"$transactions": {
"$amount": 6.99,
"$time": "2024-07-06T01:24:12",
"product_id": "s2_standard_1m_699_1m0",
"store": "APP_STORE"
}
},
"$distinct_id": "01J1SRK36AYY0YE8JZP43XDNPR",
"$ip": "0",
"$token": ""
},
{
"$add": {
"lifetime_spend": 6.99
},
"$distinct_id": "01J1SRK36AYY0YE8JZP43XDNPR",
"$ip": "0",
"$token": ""
},
{
"$distinct_id": "01J1SRK36AYY0YE8JZP43XDNPR",
"$ip": "0",
"$set": {
"app_id": "appfaa70d11aa",
"rc_subscription_status": "active"
},
"$token": ""
}
]

 

icon

Best answer by jeffrey_bunn 11 July 2024, 17:00

View original

2 replies

Userlevel 2
Badge +4

Hi @tomc! We use two different Mixpanel endpoints, Mixpanel Track and Mixpanel Engage, when sending data. The former is for event tracking while the latter is for updating user profiles and user attributes. Please let me know if I can clarify further!

Badge

Ah, interesting and makes sense - thanks for the reply!

Reply