Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

davodesign84 / react-native-mixpanel is not working fine. #270

Open
chetan-sharma-newput opened this issue Jan 20, 2021 · 0 comments
Open

Comments

@chetan-sharma-newput
Copy link

davodesign84 / react-native-mixpanel is not working fine or maybe I am doing some mistake in my code,

registerSuperPropertyMixPanel(option) {
        MixPanel.registerSuperProperties(option.properties)
    }

registerUserOnMixPanel(peopleData) {
        MixPanel.createAlias(peopleData.uuid)
        MixPanel.identify(peopleData.uuid);
        MixPanel.setOnce(peopleData)
        this.registerSuperPropertyMixPanel({
            "properties": {
                "app": getConstant().PILOT_NAME,
                "pilotId": getConstant().PILOT_ID,
                "uuid": peopleData.uuid
            }
        })
        this.trackView("app.home")
    }

This is what I am doing when the user does login. In my app, there is no option for sign up for the user.

Now what I want? - I want to track all the anonymous activity of my user before his login and after his logout.

Now What I achieved? - my code is able to track the anonymous activity of my user before his login and after login, but when the user logs out from the app, I am unable to track his activity.
On the Mixpanel database sometimes it creates a duplicate user profile, sometimes it does not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant