Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sending events to Live view in Mixpanel #83

Open
AngelaBinogi opened this issue Oct 30, 2020 · 1 comment
Open

Not sending events to Live view in Mixpanel #83

AngelaBinogi opened this issue Oct 30, 2020 · 1 comment

Comments

@AngelaBinogi
Copy link

While working on a simple event with user properties and one event specific property sometimes I get the event in the Live view in Mixpanel and sometimes not. The unit tests pass for it and there is no error logged in.
The event is something like this:

$this->mixPanelClient->identify($userId);
$superProperties = [ {some properties go here}]
$this->mixPanelClient->registerAll($superProperties);
$this->mixPanelClient->people->set($userId, $superProperties);
   $this->mixPanelClient->track(
                "Test event",
                [
                    'Test property' => 'random value',
                ]
            );
@moijafcor
Copy link
Contributor

//Laravel Framework 8.31.0
//Does not work
$mixPanel = app('mixpanel'); // using app helper
$mixPanel->track('Dashboard');
//Works
$mixPanel = Mixpanel::getInstance(config('services.mixpanel.token'));
$mixPanel->track('Dashboard');

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

No branches or pull requests

2 participants