-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add status column to pageviews event and table
- Loading branch information
Showing
12 changed files
with
203 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>404 - Page Not Found</title> | ||
<script src="http://prisme.localhost:8000/static/wa.js" data-status="404" defer></script> | ||
</head> | ||
|
||
<body> | ||
<h1>Page Not Found</h1> | ||
<a href="/">Go to Home page</a> | ||
</body> | ||
|
||
</html> |
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,17 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>404 - Page Not Found</title> | ||
</head> | ||
|
||
<body> | ||
<h1>Page Not Found</h1> | ||
<img src="http://prisme.localhost:8000/api/v1/noscript/events/pageviews?status=404" crossorigin="" | ||
style="position:fixed;top:-1px" /> | ||
<a href="/">Go to Home page</a> | ||
</body> | ||
|
||
</html> |
Empty file.
16 changes: 16 additions & 0 deletions
16
pkg/embedded/ch_migrations/20241101202405_add_status_to_pageviews_table.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,16 @@ | ||
ALTER TABLE sessions ADD COLUMN exit_status UInt16 DEFAULT 200 AFTER utm_content; | ||
ALTER TABLE pageviews ADD COLUMN status UInt16 DEFAULT 200 AFTER session_uuid; | ||
|
||
DROP TABLE pageviews_mv; | ||
|
||
CREATE MATERIALIZED VIEW pageviews_mv TO pageviews AS | ||
SELECT | ||
exit_timestamp AS timestamp, | ||
domain, | ||
exit_path AS path, | ||
visitor_id, | ||
session_uuid, | ||
exit_status AS status | ||
FROM sessions | ||
WHERE sign = 1; | ||
|
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
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
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
Oops, something went wrong.