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

The Mixpanel API response time is delayed, taking around 2 to 3 seconds to complete. #78

Open
appringerPrateek opened this issue Oct 16, 2024 · 0 comments

Comments

@appringerPrateek
Copy link

appringerPrateek commented Oct 16, 2024

<?php

namespace App\Services;

use Mixpanel;

class MixpanelService
{
    protected $mixpanel;

    public function __construct()
    {
        $this->mixpanel = new Mixpanel(env('MIXPANEL_TOKEN'));
    }

    public function track($event, $properties = [])
    {
        $this->mixpanel->track($event, $properties);
    }

    public function identify($distinctId)
    {
        $this->mixpanel->identify($distinctId);
    }

    public function peopleSet($distinctId, $properties)
    {
        $this->mixpanel->people->set($distinctId, $properties);
    }
}

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

1 participant