diff --git a/README.md b/README.md index a603dc7..e1af3bc 100644 --- a/README.md +++ b/README.md @@ -112,3 +112,30 @@ FROM ( ) AS time ) AS g; ``` + +### Stats +```sql +SELECT DATE_TRUNC('MONTH', time) AS month, + COUNT(*) AS views, + COUNT(DISTINCT (user_id)) AS users +FROM profile_hourly_views_stats +GROUP BY 1 +ORDER BY 1; + +``` +| Month | Views | Users | +|------------|-------|-------| +| 2023-01-01 | 15 | 3 | +| 2023-02-01 | 438 | 18 | +| 2023-03-01 | 951 | 32 | +| 2023-04-01 | 1110 | 36 | +| 2023-05-01 | 2191 | 43 | +| 2023-06-01 | 3433 | 57 | +| 2023-07-01 | 3331 | 54 | +| 2023-08-01 | 4539 | 69 | +| 2023-09-01 | 4519 | 77 | +| 2023-10-01 | 4473 | 78 | +| 2023-11-01 | 4919 | 96 | +| 2023-12-01 | 5525 | 115 | +| 2024-01-01 | 11130 | 231 | + diff --git a/internal/templates/v2/instruction.qtpl b/internal/templates/v2/instruction.qtpl index 88911a5..92a5dbb 100644 --- a/internal/templates/v2/instruction.qtpl +++ b/internal/templates/v2/instruction.qtpl @@ -504,7 +504,7 @@

- View and analyze view statistics for your GitHub profile + View and analyze views statistics for your GitHub profile

You can also see referral registration statistics from your profile diff --git a/internal/templates/v2/instruction.qtpl.go b/internal/templates/v2/instruction.qtpl.go index 0026ed0..0d9a0c9 100644 --- a/internal/templates/v2/instruction.qtpl.go +++ b/internal/templates/v2/instruction.qtpl.go @@ -615,7 +615,7 @@ func streaminstruction(qw422016 *qt422016.Writer, currentPageProfile ProfileView

- View and analyze view statistics for your GitHub profile + View and analyze views statistics for your GitHub profile

You can also see referral registration statistics from your profile diff --git a/internal/templates/v2/models.go b/internal/templates/v2/models.go index ca4c8c1..9491e30 100644 --- a/internal/templates/v2/models.go +++ b/internal/templates/v2/models.go @@ -7,7 +7,7 @@ import ( ) const ( - appVersion = 1 + appVersion = 2 ) type ProfileView struct { diff --git a/public/design/v2/index-auth.html b/public/design/v2/index-auth.html index 6996ef3..04a2b31 100644 --- a/public/design/v2/index-auth.html +++ b/public/design/v2/index-auth.html @@ -676,7 +676,7 @@

- View and analyze view statistics for your GitHub profile + View and analyze views statistics for your GitHub profile

You can also see referral registration statistics from your profile diff --git a/public/design/v2/index.html b/public/design/v2/index.html index 4942e7b..e37d2fd 100644 --- a/public/design/v2/index.html +++ b/public/design/v2/index.html @@ -622,7 +622,7 @@

- View and analyze view statistics for your GitHub profile + View and analyze views statistics for your GitHub profile

You can also see referral registration statistics from your profile diff --git a/public/design/v2/profile-auth.html b/public/design/v2/profile-auth.html index 45a3d79..f505538 100644 --- a/public/design/v2/profile-auth.html +++ b/public/design/v2/profile-auth.html @@ -769,7 +769,7 @@

- View and analyze view statistics for your GitHub profile + View and analyze views statistics for your GitHub profile

You can also see referral registration statistics from your profile diff --git a/public/design/v2/profile.html b/public/design/v2/profile.html index e29be10..b847670 100644 --- a/public/design/v2/profile.html +++ b/public/design/v2/profile.html @@ -677,7 +677,7 @@

- View and analyze view statistics for your GitHub profile + View and analyze views statistics for your GitHub profile

You can also see referral registration statistics from your profile