Hello All,
I’m currently using algolia scout extended extension (and laravel scout), i’m trying to send event and enable personalization for my users but i’m facing some issues, here is the code i’m using to send event:
$insights->user((string)\Auth::user()->getKey())->convertedObjectIDs(
'user_favorite_on_search_page',
'user',
['App\Models\User::'.(string)$user_search->getScoutKey()]
);
The problem is that i can see in the Algolia Dashboard that the ObjectId for an item is for example App\Models\User::100
but in the Insight API Log I’ve this:
{
"eventType": "conversion",
"eventName": "user_favorite_on_search_page",
"index": "users",
"objectIDs": [
"App\\Models\\User:100
],
"userToken": "1"
}
Is that normal that i’ve multiple \\
or is it a rendering issue?
How can i make sure that the event is correctly linked to an object?
Thanks for your help
Christophe