utm tracking in db (#574)

* utm tracking in db

* fix array key bug
This commit is contained in:
Favour Olayinka
2024-09-18 17:50:04 +01:00
committed by GitHub
parent 7f6c21408c
commit a057045ef6
8 changed files with 44 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ class OAuthController extends Controller
"message" => "OAuth service failed to authenticate: " . $e->getMessage()
]);
}
$user = $this->findOrCreateUser($provider, $driverUser);
if (!$user) {
@@ -116,6 +117,7 @@ class OAuthController extends Controller
'name' => $socialiteUser->getName(),
'email' => $email,
'email_verified_at' => now(),
'utm_data' => json_decode(request()->utm_data, true)
]);
// Create and sync workspace