-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Capture user agent and referrer analytics (#2349)
* feat: Capture user agent analytics * feat: Add referrer to analytics * fix: GraphQL types
- Loading branch information
1 parent
c97f0f4
commit a9db181
Showing
6 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...migrations/1698350858952_alter_table_public_analytics_logs_add_column_user_agent/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE "public"."analytics" DROP COLUMN "referrer" | ||
|
||
ALTER TABLE "public"."analytics" DROP COLUMN "user_agent" |
5 changes: 5 additions & 0 deletions
5
...k/migrations/1698350858952_alter_table_public_analytics_logs_add_column_user_agent/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
alter table "public"."analytics" add column "user_agent" jsonb | ||
null default '{}'; | ||
|
||
alter table "public"."analytics" add column "referrer" text | ||
null; |