Skip to content

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

@appringerPrateek

Description

@appringerPrateek
<?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);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions