Skip to content

Error: Argument 'distinct_id' must not be blank. #11

@mikebronner

Description

@mikebronner

Using Laravel 4.2.* I keep getting the above error, despite trying different ways of writing the code. Here is what I have:

            $result = Trakio::identify([
                'distinct_id' => Auth::user()->email,
                'properties' => [
                    'email' => Auth::user()->email,
                    'first_name' => Auth::user()->profile->first_name,
                    'last_name' => Auth::user()->profile->last_name,
                ],
            ]);
            Trakio::track('Logged In');

Based on the code in the package, it should keep the distinct_id set, but it doesn't appear to be. I have the token set in the config file, not sure if I need to put anything in the config array or not (it's empty as of now).

$result also shows success if I remove the track() call.

Any suggestions? Everything works just fine using JS implementation, of course its not as clean. :)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions