Closed madassdev closed 2 months ago
[!NOTE] Currently processing new changes in this PR. This may take a few minutes, please wait...
Commits
Files that changed from the base of the PR and between e1ba784692cb9990a6295002418833b848b1def0 and 1952301ec05333fd886784ea65bf0876764c9260.Files selected for processing (1)
* api/app/Http/Controllers/Auth/RegisterController.php (2 hunks)___________________________________________________________________________________________________________________________ < If programmers were electricians, parallel programmers would be bomb disposal experts. Both cut wires. - Bartosz Milewski > --------------------------------------------------------------------------------------------------------------------------- \ \ \ \ /\ ( ) .( o ).
The changes involve the introduction of a new field, utm_data
, across multiple components in the application. This field captures UTM parameters during user registration and OAuth callback processes, enhancing the tracking of user origins and marketing effectiveness. The modifications span the OAuth and Register controllers, the User model, a migration script for the database, and several client-side components, including Vue files and configuration settings for Nuxt.js.
Files | Change Summary |
---|---|
api/app/Http/Controllers/Auth/OAuthController.php |
Added utm_data field to findOrCreateUser method for capturing UTM parameters. |
api/app/Http/Controllers/Auth/RegisterController.php |
Introduced utm_data as an optional field in validation and user creation processes. |
api/app/Models/User.php |
Added utm_data to $fillable and defined it as an array in casts . |
api/database/migrations/2024_09_18_091846_add_utm_data_to_users_table.php |
Created migration to add utm_data column as JSON type in the users table. |
client/components/pages/auth/components/RegisterForm.vue |
Enhanced registration form to include utm_data from the Nuxt context. |
client/nuxt.config.ts |
Integrated nuxt-utm module for handling UTM parameters in the application. |
client/package.json |
Added nuxt-utm dependency to manage UTM parameters. |
client/pages/oauth/callback.vue |
Modified OAuth callback to include utm_data in the opnFetch function call. |
sequenceDiagram
participant User
participant RegisterForm
participant RegisterController
participant UserModel
participant Database
User->>RegisterForm: Fill out registration form
RegisterForm->>RegisterController: Submit form with utm_data
RegisterController->>UserModel: Create user with utm_data
UserModel->>Database: Store user data with utm_data
sequenceDiagram
participant User
participant OAuthCallback
participant OAuthController
User->>OAuthCallback: Initiate OAuth flow
OAuthCallback->>OAuthController: Handle callback with utm_data
OAuthController->>ExternalService: Send request with utm_data
🐇 In fields of code where rabbits play,
New data hops in, brightening the day.
UTM whispers, tracking our trails,
Marketing magic in digital gales.
With every click, our stories unfold,
In the world of data, adventures bold! 🌼
[!TIP]
You can generate walkthrough in a markdown collapsible section to save space.
Enable the `reviews.collapse_walkthrough` setting in your project's settings in CodeRabbit to generate walkthrough in a markdown collapsible section.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
nuxt-utm
module for improved analytics related to marketing campaigns.Bug Fixes
Documentation