antonioribeiro / antonioribeiro/tracker
How to store query parameter with manual tarackVisit method
- Dominant language
- PHP
- Stars
- 2.9k
- Forks
- 594
- PR merge metrics
- No merged PRs in 30d
Description
I would like to track visit of login but with different types, like user login from our page or directed from 3rd part type, I was thinking that I could achieve that by query parameters like ?type=direct or ?type=facebook
so at the end I could show the unique logins of users depends on types.
to login we are using Auth::loginUsingId() method of laravel since user is authenticated from third party
below is the code I tried but I am unable to pass parameters and its also not mentioned in docs.
Tracker::trackVisit(
[
'name' => 'login',
'action' => 'Auth\LoginController@login'
],
['path' => 'login']
);
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Tracker::trackVisit call shown in the issue and the Laravel authentication flow using Auth::loginUsingId(). Check the tracker documentation and implementation to determine whether query parameters can be recorded. Done means defining and documenting a supported way to distinguish login visits by type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- analytics, authentication, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100