We have an integration of Apphud with Amplitude. App is iPadOS only.
The release 1.3.12 is OK, but >=1.3.13 are broken.
Screenshot from Apphud with integration enabled.Apphud has it is own server events, that it sends to Amplitude, too.
I am going to speak about our own “trial_started” event and “[Apphud] trial_started”, but the situation is the same with other Apphud events.
Everything was all right with user properties, before one of our releases.
Segmentation chart of event “[Apphud] trial_started” grouped by Amplitude’s Device Type.But after of this release (1.3.13 version) the amount of (none) Device Type’s grew up a lot, and only few users are getting it (they are just using 1.3.12). In the release we moved from using Amplitude’s legacy library, written in Obj-c to new Amplitude-Swift.
Amount of (none) Device Type’s after the releaseWe were using this migration guide and already had few more releases, with some other fixes of Amplitude-Swift bugs, like this one.
May be, we don’t set user properties? But no, if we check the same chart, but with “trial_started” event, everything seems alright.
Segmentation graph with “trial_started” event, grouped by Device Type.Let’s now look a bit closer at some random user and check his User Properties.
“trial_started” event
“[Apphud] trial_started” eventAnd you see the issue. In the server event from Apphud there are missing: OS, Device Family and Device Type, at least. (the Platform is fixed in Amplitude-Swift 0.4.0 version, but now we are using 0.3.2 version)
The strange thing is here, that it doesn’t seem to be the bug of Amplitude-Swift package, because all other events have correct User Properties and as I know they have to be saved for each further event and for the user, but we experienced this issue after the update to Amplitude-Swift.
If you think, that these user properties were set only in “trial_started” event - that’s not true. Here is the proof:
Older events also contain correct User Properties.But, may be Apphud must provide these properties? No, we spoke to Apphud developers and they didn’t change anything in their server events. Let’s proof that.
The same user in Apphud and his trial_started event.
Integration with Amplitude is sucessfullThe request body contains this JSON:
{<br /> "api_key": "API_KEY HIDDEN FOR QUESTION ON FORUM",<br /> "events": [<br /> {<br /> "event_type": "[Apphud] trial_started",<br /> "partner_id": "apphud",<br /> "event_properties": {<br /> "unit": "week",<br /> "offer_type": "trial",<br /> "product_id": "com.momwillbeproud.artworkout.v3.pro.6months",<br /> "units_count": 1,<br /> "family_shared": false<br /> },<br /> "user_properties": {<br /> "[Apphud] total_spent": 0,<br /> "[Apphud] paying": false,<br /> "[Apphud] payments_count": 0,<br /> "[Apphud] status-pro": "trial",<br /> "[Apphud] autorenew-pro": true,<br /> "[Apphud] status-untitled": "none",<br /> "[Apphud] autorenew-untitled": false<br /> },<br /> "user_id": "674435F5-F9CA-422A-907F-5514C69F3BBC",<br /> "time": 1682313198000,<br /> "ip": "IP HIDDEN FOR QUESTION ON FORUM",<br /> "platform": "iOS",<br /> "insert_id": "924b5058-8593-4ef4-a904-57f2395195ba"<br /> }<br /> ]<br />}We see the override of platform property, that’s OK. And they don’t provide any other missing User Properties. May be Apphud were providing them earlier? Let’s check an event from 1.3.12 version, when we had legacy Amplitude-iOS and find the user in Apphud and his trial_started event
{<br /> "api_key": "API_KEY HIDDEN FOR QUESTION ON FORUM",<br /> "events": [<br /> {<br /> "event_type": "[Apphud] trial_started",<br /> "partner_id": "apphud",<br /> "event_properties": {<br /> "unit": "week",<br /> "offer_type": "trial",<br /> "product_id": "com.momwillbeproud.artworkout.v3.pro.6months",<br /> "units_count": 1,<br /> "family_shared": false,<br /> "product_bundle_id": "com.momw"<br /> },<br /> "user_properties": {<br /> "[Apphud] total_spent": 0,<br /> "[Apphud] paying": false,<br /> "[Apphud] payments_count": 0,<br /> "[Apphud] status-pro": "trial",<br /> "[Apphud] autorenew-pro": true,<br /> "[Apphud] status-untitled": "none",<br /> "[Apphud] autorenew-untitled": false<br /> },<br /> "user_id": "ABBFC846-5D14-47F7-B942-4D6D587C776E",<br /> "time": 1676725739000,<br /> "ip": "IP HIDDEN FOR QUESTION ON FORUM",<br /> "platform": "iOS",<br /> "insert_id": "31bc69f4-e625-404f-8b21-91e0a4eba8cd"<br /> }<br /> ]<br />}Almost nothing changed, no user properties provided by Apphud. But the user has User Properties.
“[Apphud] trial_started” event from 1.3.12 Version with old Amplitude package.And they correspond to the JSON and User Properties in out “trial_started” event.
“trial_started” event from 1.3.12 Version with old Amplitude package.As I said, the same is with any other Apphud event. This one for example:
[Apphud] billing_issue
We have no idea what’s going on, we couldn’t figure how to resolve this issue by ourselves. Help
Are we event in the right place to ask for help?