Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing with umami main branch #1

Merged
merged 223 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
4c88a97
added error message when db connection check fails
IvanGnusarkov Jun 18, 2024
84e6708
Update Chinesi(zh-CN) translations
ccbikai Jun 24, 2024
43f231e
Updated start-env with new NextStartOptions
mho22 Jun 25, 2024
e6d4c53
Update ca-ES.json
gerardnll Jun 27, 2024
5fc596f
Update ca-ES.json
gerardnll Jun 27, 2024
6a7dac3
Merge pull request #2813 from mho22/patch-1
mikecao Jun 28, 2024
f3df2da
Merge pull request #2818 from gerardnll/patch-2
mikecao Jun 28, 2024
768f53e
Merge branch 'master' into dev
mikecao Jun 28, 2024
dd35542
Merge branch 'dev' of https://github.com/umami-software/umami into dev
mikecao Jun 28, 2024
94b854f
Merge pull request #2808 from ccbikai/master
mikecao Jun 28, 2024
ea1263f
Merge branch 'dev' of https://github.com/umami-software/umami into dev
mikecao Jun 28, 2024
c1cddc3
Merge pull request #2786 from IvanGnusarkov/db-check-error-msg
mikecao Jun 28, 2024
2729b22
Merge branch 'dev' of https://github.com/umami-software/umami into dev
mikecao Jun 28, 2024
caaa87c
Updated packages and lang files.
mikecao Jun 28, 2024
0142e0f
Fixed typo.
mikecao Jun 29, 2024
490d51b
Update pl-PL.json
RikoDEV Jun 29, 2024
512603d
Whoops
RikoDEV Jun 29, 2024
8777920
Update zh-CN.json
mobeicanyue Jun 30, 2024
d95e212
Add German translation for v2.12.0
konstantintutsch Jun 30, 2024
001dbba
Revert "Add German translation for v2.12.0"
konstantintutsch Jul 1, 2024
9bb06d8
Update German translation for v2.12
konstantintutsch Jul 1, 2024
05894df
replace count(distinct with uniq for session / visits
franciscao633 Jul 1, 2024
20b3a3e
replace count(distinct with uniq for session / visits
franciscao633 Jul 1, 2024
5289c27
replace count(distinct with uniq for session / visits
franciscao633 Jul 1, 2024
9118f24
Merge branch 'dev' of https://github.com/umami-software/umami into dev
mikecao Jul 3, 2024
d501410
Fixed console command. Updated packages.
mikecao Jul 4, 2024
9bf34bd
Support Clickhouse insert without Kafka.
mikecao Jul 5, 2024
26462cf
Support clickhouse for save session data.
mikecao Jul 5, 2024
72b3b61
Changed kafka method signature.
mikecao Jul 5, 2024
082a751
Should allow non http referrers. Closes #2831
mikecao Jul 5, 2024
db36c37
Updated session and events queries. Added sessions page.
mikecao Jul 8, 2024
bfd5c5f
update dashboard queries to use mv
franciscao633 Jul 8, 2024
ba85417
Merge branch 'dev' into dev
mikecao Jul 9, 2024
456665d
Merge pull request #2825 from konstantintutsch/dev
mikecao Jul 9, 2024
9f0d2b1
Merge branch 'dev' into patch-6
mikecao Jul 9, 2024
f02c3c3
Merge pull request #2824 from mobeicanyue/patch-6
mikecao Jul 9, 2024
625178f
Merge branch 'dev' into patch-1
mikecao Jul 9, 2024
970e9e0
Merge pull request #2823 from RikoDEV/patch-1
mikecao Jul 9, 2024
62f3566
Fixed funnel chart.
mikecao Jul 9, 2024
4494665
Updated date output for Clickhouse.
mikecao Jul 9, 2024
ec08244
Merge branch 'dev' of https://github.com/umami-software/umami into dev
mikecao Jul 9, 2024
374faae
Updated lang files.
mikecao Jul 9, 2024
44ccb66
Updated IP regex to work with IPv6.
mikecao Jul 9, 2024
f518066
refactor views and queries for dashboard
franciscao633 Jul 10, 2024
d6a4eea
Update and fill missing translation for khmer lang
Manethpak Jul 10, 2024
d270031
fix: typo, update wording and fill missing words/sentence
Manethpak Jul 10, 2024
b59c6c1
Merge branch 'dev' into Manethpak/update-kh-lang
mikecao Jul 12, 2024
0582964
Merge pull request #2839 from Manethpak/Manethpak/update-kh-lang
mikecao Jul 12, 2024
eda5adf
replace vh with dvh
Cuzart Jul 13, 2024
4f113bc
fix website header wrapping and height
Cuzart Jul 14, 2024
60d4d8d
fix: Compatible with browsers that do not support ES2019
eagleon Jul 15, 2024
5eead0e
improve german translation
Feuerhamster Jul 16, 2024
3a4cefe
update event/pageview metrics
franciscao633 Jul 19, 2024
77fcdc0
Merge branch 'dev' of https://github.com/umami-software/umami into fe…
franciscao633 Jul 19, 2024
829a45b
Added sessions table.
mikecao Jul 23, 2024
faffa8b
Merge remote-tracking branch 'origin/dev' into dev
mikecao Jul 23, 2024
5299e9f
resolve entry / exit queries
franciscao633 Jul 23, 2024
6d0ae13
add back exclude domain logic
franciscao633 Jul 23, 2024
9957080
Merge branch 'feat/clickhouse-mv' into dev
franciscao633 Jul 23, 2024
7ec845d
fix undefined datasets
franciscao633 Jul 23, 2024
9f3138e
Update translations and fix typos
Jul 23, 2024
e5d1765
Merge branch 'dev' into update-es-translations-and-fix-typo
israelozarate7 Jul 23, 2024
038ecdb
fix pkey for stats tables
franciscao633 Jul 23, 2024
174b9e4
only use hourly table, remove daily table logic, fix updatechart unde…
franciscao633 Jul 24, 2024
3205b4f
fix realtime queries for stats
franciscao633 Jul 24, 2024
161da58
reorder CH stats index
franciscao633 Jul 24, 2024
2742f17
remove sessions link
franciscao633 Jul 25, 2024
cd0f185
remove revenue report
franciscao633 Jul 25, 2024
3494ae4
Merge branch 'dev' of https://github.com/umami-software/umami into an…
franciscao633 Jul 25, 2024
ac60d08
Sessions page.
mikecao Jul 29, 2024
c3c3b46
Updated session profile page. Added TypeIcon component. Added useRegi…
mikecao Jul 29, 2024
f32bf0a
Session details screen.
mikecao Jul 30, 2024
b3e6e52
Added session data display.
mikecao Jul 31, 2024
10f65ca
Responsive styles for session page.
mikecao Jul 31, 2024
1e5616a
chore: fix comment
beforetech Jul 31, 2024
cb4368e
template multiple queries for filtering
franciscao633 Jul 31, 2024
9882ff2
route dashboard queries based on filters selected
franciscao633 Aug 1, 2024
61dfa13
add projection code
franciscao633 Aug 1, 2024
57a23ba
fix hourly order by
franciscao633 Aug 1, 2024
3207b0c
revert AggregatingMergeTree order by
franciscao633 Aug 1, 2024
9c32057
Redo events tab to show all events.
mikecao Aug 2, 2024
3262ea0
Updated avatar colors and events table.
mikecao Aug 2, 2024
d02dc6f
remove parse session filters
franciscao633 Aug 2, 2024
2c18cca
Merge pull request #2870 from umami-software/feat/clickhouse-performance
franciscao633 Aug 2, 2024
7582670
fix retention report invalid date
franciscao633 Aug 2, 2024
dc52449
Merge branch 'analytics' of https://github.com/umami-software/umami i…
franciscao633 Aug 2, 2024
9d35132
Updated session link.
mikecao Aug 2, 2024
a88fda0
Merge branch 'dev' of https://github.com/umami-software/umami into dev
mikecao Aug 2, 2024
1195695
Upgrade next.
mikecao Aug 3, 2024
eda18d3
Fixed website details page not rendering.
mikecao Aug 3, 2024
4e7e101
feat: Update be-BY translations
lsvs Aug 3, 2024
440db17
Added created date to session data save.
mikecao Aug 4, 2024
0988808
Allow team managers to transfer websites to teams
RayeEvtuch Aug 5, 2024
1190f5f
Merge pull request #2871 from lsvs/feat/update-by-lang
mikecao Aug 5, 2024
f8ce85c
Merge branch 'improve-de-translation' of https://github.com/Feuerhams…
mikecao Aug 5, 2024
4e83fcc
Merge branch 'Feuerhamster-improve-de-translation' into dev
mikecao Aug 5, 2024
a48866a
Merge pull request #2855 from israelozarate7/update-es-translations-a…
mikecao Aug 5, 2024
9722a76
Merge pull request #2868 from beforetech/master
mikecao Aug 5, 2024
bcc712a
Merge pull request #2841 from Cuzart/fix/mobile-dvh-and-dashboard-web…
mikecao Aug 5, 2024
e473381
Merge pull request #2842 from eagleon/master
mikecao Aug 5, 2024
36663bd
Merge pull request #2873 from RayeEvtuch/website-transfer-permissions
mikecao Aug 5, 2024
3fd9d6b
limit contain filters on country, region, city
franciscao633 Aug 5, 2024
b9068c0
Added metrics bar and date range to sessions.
mikecao Aug 7, 2024
3a97bfe
Merge remote-tracking branch 'origin/dev' into dev
mikecao Aug 7, 2024
c6b8114
Updated events page.
mikecao Aug 8, 2024
60d5338
remove revenue report
franciscao633 Aug 8, 2024
166b704
fix transfer website button disable logic
franciscao633 Aug 8, 2024
f135e4f
Moved events components to events page. Updated map data loading.
mikecao Aug 8, 2024
4703ba6
Merge remote-tracking branch 'origin/dev' into dev
mikecao Aug 8, 2024
10c438d
Fixed components build.
mikecao Aug 8, 2024
8ee37d1
New event data screen.
mikecao Aug 9, 2024
67874a6
Update event property styles.
mikecao Aug 9, 2024
840c1c0
Fixed type icons.
mikecao Aug 9, 2024
5feae93
Fixed share page.
mikecao Aug 9, 2024
c7d39a3
Fixed session properties.
mikecao Aug 9, 2024
4c0d7d9
Fixed empty logic.
mikecao Aug 9, 2024
a1c0ec9
update getSessionActivity / getWebsiteSession
franciscao633 Aug 9, 2024
3646039
Merge branch 'dev' of https://github.com/umami-software/umami into dev
franciscao633 Aug 9, 2024
136dd67
update websitesession, add session duration
franciscao633 Aug 10, 2024
22333a1
remove event from website stats. doesnt work with view
franciscao633 Aug 10, 2024
1e52eeb
Updated header nav.
mikecao Aug 10, 2024
78728b8
Fixed event search. Removed session time from profile.
mikecao Aug 12, 2024
b11b2e3
Display correct date for events/sessions.
mikecao Aug 13, 2024
9b005e1
Created formatDate function for rendering dates in correct timezone.
mikecao Aug 13, 2024
af64602
Added map to sessions page.
mikecao Aug 13, 2024
fc75874
Fixed date display for session profile.
mikecao Aug 13, 2024
f9c7129
implement visit duration
franciscao633 Aug 13, 2024
ae3888c
fix loading spinner / no results bug
franciscao633 Aug 13, 2024
7ae53e2
fix event property format, fix realtime date format
franciscao633 Aug 13, 2024
3805a0b
limit event/session table to 1000 for performance
franciscao633 Aug 13, 2024
0bd57bb
Added display of session properties.
mikecao Aug 14, 2024
04de691
Removed custom date format. Use ISO string everywhere.
mikecao Aug 14, 2024
aaf9ada
add event name to properties table
franciscao633 Aug 14, 2024
db25f24
clean up session properties / values
franciscao633 Aug 14, 2024
c79720a
update session data schema
franciscao633 Aug 15, 2024
439377f
add final keyword to session data queries
franciscao633 Aug 15, 2024
deb9dd6
Render UTC dates in sessions.
mikecao Aug 16, 2024
fc1fc58
Session properties.
mikecao Aug 17, 2024
53d8548
Weekly session data.
mikecao Aug 17, 2024
25d002c
Merge branch 'dev' into analytics
mikecao Aug 17, 2024
b6b1488
Updated packages.
mikecao Aug 18, 2024
ffa954e
Updated data query limits.
mikecao Aug 18, 2024
7add059
Updated weekly session labels.
mikecao Aug 18, 2024
12bebdd
Merge branch 'dev' into analytics
mikecao Aug 18, 2024
e853ed7
Updated weekly session styles.
mikecao Aug 18, 2024
56f6bee
Merge branch 'dev' into analytics
mikecao Aug 18, 2024
ceacc25
Fixed session weekly rendering bug.
mikecao Aug 18, 2024
e98bc3b
Changed session weekly to dots.
mikecao Aug 18, 2024
89313e7
Merge branch 'dev' into analytics
mikecao Aug 18, 2024
a058552
add sessionstats query for performance, countries, events values
franciscao633 Aug 19, 2024
66510fd
Merge branch 'analytics' of https://github.com/umami-software/umami i…
franciscao633 Aug 19, 2024
7ae3c79
fix relational queries for new screens
franciscao633 Aug 19, 2024
8d92509
Fixed queries.
mikecao Aug 19, 2024
07576be
Merge remote-tracking branch 'origin/dev' into dev
mikecao Aug 19, 2024
dc9b1dc
Rolled back Prisma to 5.17.
mikecao Aug 19, 2024
10239fe
Fixed docker build for Prisma.
mikecao Aug 19, 2024
5aba9ac
Fixed date value for properties.
mikecao Aug 20, 2024
da28fe8
Fixed some styles.
mikecao Aug 20, 2024
eb05e2a
fix getDateWeeklySQL
franciscao633 Aug 20, 2024
8ee4fc3
fix css console errors
franciscao633 Aug 20, 2024
a1b7b90
Merge branch 'dev' of https://github.com/umami-software/umami into dev
mikecao Aug 20, 2024
adc65e4
fix websiteEvent query
franciscao633 Aug 20, 2024
17e2658
Merge branch 'dev' of https://github.com/umami-software/umami into dev
mikecao Aug 20, 2024
511fec2
Fixed timezone date format.
mikecao Aug 20, 2024
caa9da9
Removed junk.
mikecao Aug 20, 2024
04e0b33
Updated Clickhouse number handling. Removed number formatting.
mikecao Aug 20, 2024
0220091
add paging for relational raw query
franciscao633 Aug 21, 2024
e35c11c
Updated realtime data fetch.
mikecao Aug 21, 2024
2c0ba65
Merge remote-tracking branch 'origin/dev' into dev
mikecao Aug 21, 2024
917916c
update queries for event / session properties and values screens
franciscao633 Aug 21, 2024
7bc5635
fix websiteSession screens
franciscao633 Aug 21, 2024
db7d705
fix getwebsiteevent search
franciscao633 Aug 21, 2024
9b88611
Fixed search field disappearing when results are empty. Closes #2879.
mikecao Aug 22, 2024
9311f0a
Merge remote-tracking branch 'origin/dev' into dev
mikecao Aug 22, 2024
cfb3fca
fix: a small type error
wjsoj Aug 22, 2024
fb67f44
Merge pull request #2891 from wjsoj/master
mikecao Aug 22, 2024
647dcb5
Fixed realtime chart for relational. Removed getDateArray. Added char…
mikecao Aug 22, 2024
82f7663
Merge remote-tracking branch 'origin/dev' into dev
mikecao Aug 22, 2024
5e5b61d
Revert "Fixed realtime chart for relational. Removed getDateArray. Ad…
mikecao Aug 22, 2024
8f934d2
Reapply "Fixed realtime chart for relational. Removed getDateArray. A…
mikecao Aug 22, 2024
60f1b7b
Revert session stats change.
mikecao Aug 22, 2024
d1eabaf
Merge pull request #2892 from umami-software/dev
mikecao Aug 23, 2024
0ef936e
Update ja-JP.json
err931 Aug 23, 2024
a600da1
Merge pull request #2894 from err931/err931-patch-1
mikecao Aug 23, 2024
8500669
Updated lang.
mikecao Aug 23, 2024
47a6170
Merge pull request #2895 from umami-software/dev
mikecao Aug 23, 2024
b9f8647
Update ca-ES.json
gerardnll Aug 23, 2024
004ccdc
fix order by and revert getDateSQL
franciscao633 Aug 23, 2024
a15d0ca
fix UTC issues
franciscao633 Aug 24, 2024
ff6a090
Merge pull request #2900 from gerardnll/patch-2
mikecao Aug 24, 2024
2c4d7f1
Updated lang.
mikecao Aug 24, 2024
bba584a
Bump version.
mikecao Aug 24, 2024
5d37810
Merge pull request #2903 from umami-software/dev
mikecao Aug 24, 2024
c480a97
Update German translation
konstantintutsch Aug 24, 2024
633b263
Fix use of Website and Webseite in German translation
konstantintutsch Aug 24, 2024
50bdc23
Remove occasional informal address from German translation
konstantintutsch Aug 24, 2024
e033438
Fix various errors in German translation
konstantintutsch Aug 24, 2024
83cfc65
Update ca-ES.json
gerardnll Aug 24, 2024
a219f5d
pass timezone in stats CH query
franciscao633 Aug 26, 2024
0f93f18
Update ko-KR.json
quiple Aug 26, 2024
8776af9
OS strings in visitorLog
quiple Aug 27, 2024
248722e
Fix name of KakaoTalk
quiple Aug 27, 2024
a92fa26
Update RealtimeLog.tsx
quiple Aug 27, 2024
b1caf6e
fix monthly and all time charts
franciscao633 Aug 27, 2024
291c64f
Updated initialization process.
mikecao Aug 27, 2024
1341f44
Merge remote-tracking branch 'origin/dev' into dev
mikecao Aug 27, 2024
981a655
fix mindate logic
franciscao633 Aug 27, 2024
a5e2242
Merge branch 'analytics' of https://github.com/umami-software/umami i…
franciscao633 Aug 27, 2024
bcb05f6
Merge pull request #2914 from quiple/string
mikecao Aug 27, 2024
35f7930
Merge pull request #2910 from quiple/ko-kr
mikecao Aug 27, 2024
ed0d778
Merge branch 'master' into dev
mikecao Aug 27, 2024
23648ed
Merge pull request #2905 from gerardnll/patch-3
mikecao Aug 27, 2024
fc9ec26
Merge pull request #2904 from konstantintutsch/dev
mikecao Aug 27, 2024
ab050e5
Fix tooltip label, retention report for mysql, pass minDate into even…
franciscao633 Aug 27, 2024
398a665
Merge branch 'dev' of https://github.com/umami-software/umami into dev
franciscao633 Aug 27, 2024
8925760
Show stats changes on dashboard page. Closes #2840
mikecao Aug 27, 2024
d310066
Merge branch 'dev' of https://github.com/umami-software/umami into dev
mikecao Aug 27, 2024
178f9dc
Updated lang files.
mikecao Aug 27, 2024
ed5ff81
Bump version v2.13.2.
mikecao Aug 27, 2024
b89fb0a
Fix autofocus on events page
franciscao633 Aug 27, 2024
ef98cea
Merge branch 'dev' of https://github.com/umami-software/umami into dev
franciscao633 Aug 27, 2024
ff0c825
fix retention report dates and days
franciscao633 Aug 28, 2024
e881735
Merge pull request #2918 from umami-software/dev
mikecao Aug 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN adduser --system --uid 1001 nextjs

RUN set -x \
&& apk add --no-cache curl \
&& yarn add npm-run-all dotenv prisma semver
&& yarn add npm-run-all dotenv semver prisma@5.17.0

# You only need to copy next.config.js if you are NOT using the default configuration
COPY --from=builder /app/next.config.js .
Expand Down
143 changes: 134 additions & 9 deletions db/clickhouse/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ CREATE TABLE umami.website_event
created_at DateTime('UTC'),
job_id Nullable(UUID)
)
engine = MergeTree
ORDER BY (website_id, session_id, created_at)
SETTINGS index_granularity = 8192;
ENGINE = MergeTree
PARTITION BY toYYYYMM(created_at)
ORDER BY (toStartOfHour(created_at), website_id, session_id, visit_id, created_at)
PRIMARY KEY (toStartOfHour(created_at), website_id, session_id, visit_id)
SETTINGS index_granularity = 8192;

CREATE TABLE umami.event_data
(
Expand All @@ -48,9 +50,9 @@ CREATE TABLE umami.event_data
created_at DateTime('UTC'),
job_id Nullable(UUID)
)
engine = MergeTree
ORDER BY (website_id, event_id, data_key, created_at)
SETTINGS index_granularity = 8192;
ENGINE = MergeTree
ORDER BY (website_id, event_id, data_key, created_at)
SETTINGS index_granularity = 8192;

CREATE TABLE umami.session_data
(
Expand All @@ -64,6 +66,129 @@ CREATE TABLE umami.session_data
created_at DateTime('UTC'),
job_id Nullable(UUID)
)
engine = MergeTree
ORDER BY (website_id, session_id, data_key, created_at)
SETTINGS index_granularity = 8192;
ENGINE = ReplacingMergeTree
ORDER BY (website_id, session_id, data_key)
SETTINGS index_granularity = 8192;

-- stats hourly
CREATE TABLE umami.website_event_stats_hourly
(
website_id UUID,
session_id UUID,
visit_id UUID,
hostname LowCardinality(String),
browser LowCardinality(String),
os LowCardinality(String),
device LowCardinality(String),
screen LowCardinality(String),
language LowCardinality(String),
country LowCardinality(String),
subdivision1 LowCardinality(String),
city String,
entry_url AggregateFunction(argMin, String, DateTime('UTC')),
exit_url AggregateFunction(argMax, String, DateTime('UTC')),
url_path SimpleAggregateFunction(groupArrayArray, Array(String)),
url_query SimpleAggregateFunction(groupArrayArray, Array(String)),
referrer_domain SimpleAggregateFunction(groupArrayArray, Array(String)),
page_title SimpleAggregateFunction(groupArrayArray, Array(String)),
event_type UInt32,
event_name SimpleAggregateFunction(groupArrayArray, Array(String)),
views SimpleAggregateFunction(sum, UInt64),
min_time SimpleAggregateFunction(min, DateTime('UTC')),
max_time SimpleAggregateFunction(max, DateTime('UTC')),
created_at Datetime('UTC')
)
ENGINE = AggregatingMergeTree
PARTITION BY toYYYYMM(created_at)
ORDER BY (
website_id,
event_type,
toStartOfHour(created_at),
cityHash64(visit_id),
visit_id
)
SAMPLE BY cityHash64(visit_id);

CREATE MATERIALIZED VIEW umami.website_event_stats_hourly_mv
TO umami.website_event_stats_hourly
AS
SELECT
website_id,
session_id,
visit_id,
hostname,
browser,
os,
device,
screen,
language,
country,
subdivision1,
city,
entry_url,
exit_url,
url_paths as url_path,
url_query,
referrer_domain,
page_title,
event_type,
event_name,
views,
min_time,
max_time,
timestamp as created_at
FROM (SELECT
website_id,
session_id,
visit_id,
hostname,
browser,
os,
device,
screen,
language,
country,
subdivision1,
city,
argMinState(url_path, created_at) entry_url,
argMaxState(url_path, created_at) exit_url,
arrayFilter(x -> x != '', groupArray(url_path)) as url_paths,
arrayFilter(x -> x != '', groupArray(url_query)) url_query,
arrayFilter(x -> x != '', groupArray(referrer_domain)) referrer_domain,
arrayFilter(x -> x != '', groupArray(page_title)) page_title,
event_type,
if(event_type = 2, groupArray(event_name), []) event_name,
sumIf(1, event_type = 1) views,
min(created_at) min_time,
max(created_at) max_time,
toStartOfHour(created_at) timestamp
FROM umami.website_event
GROUP BY website_id,
session_id,
visit_id,
hostname,
browser,
os,
device,
screen,
language,
country,
subdivision1,
city,
event_type,
timestamp);

-- projections
ALTER TABLE umami.website_event
ADD PROJECTION website_event_url_path_projection (
SELECT * ORDER BY toStartOfDay(created_at), website_id, url_path, created_at
);

ALTER TABLE umami.website_event MATERIALIZE PROJECTION website_event_url_path_projection;

ALTER TABLE umami.website_event
ADD PROJECTION website_event_referrer_domain_projection (
SELECT * ORDER BY toStartOfDay(created_at), website_id, referrer_domain, created_at
);

ALTER TABLE umami.website_event MATERIALIZE PROJECTION website_event_referrer_domain_projection;
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const trackerScriptName = process.env.TRACKER_SCRIPT_NAME;

const contentSecurityPolicy = [
`default-src 'self'`,
`img-src *`,
`img-src * data:`,
`script-src 'self' 'unsafe-eval' 'unsafe-inline'`,
`style-src 'self' 'unsafe-inline'`,
`connect-src 'self' api.umami.is cloud.umami.is`,
Expand Down
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "umami",
"version": "2.12.1",
"version": "2.13.2",
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
"author": "Umami Software, Inc. <hello@umami.is>",
"license": "MIT",
Expand Down Expand Up @@ -64,9 +64,12 @@
".next/cache"
],
"dependencies": {
"@clickhouse/client": "^1.0.2",
"@clickhouse/client": "^1.4.1",
"@date-fns/utc": "^1.2.0",
"@dicebear/collection": "^9.2.1",
"@dicebear/core": "^9.2.1",
"@fontsource/inter": "^4.5.15",
"@prisma/client": "5.14.0",
"@prisma/client": "5.17",
"@prisma/extension-read-replicas": "^0.3.0",
"@react-spring/web": "^9.7.3",
"@tanstack/react-query": "^5.28.6",
Expand All @@ -81,7 +84,6 @@
"cross-spawn": "^7.0.3",
"date-fns": "^2.23.0",
"date-fns-tz": "^1.1.4",
"dateformat": "^5.0.3",
"debug": "^4.3.4",
"del": "^6.0.0",
"detect-browser": "^5.2.0",
Expand All @@ -93,18 +95,18 @@
"is-ci": "^3.0.1",
"is-docker": "^3.0.0",
"is-localhost-ip": "^1.4.0",
"isbot": "^5.1.1",
"isbot": "^5.1.16",
"kafkajs": "^2.1.0",
"maxmind": "^4.3.6",
"md5": "^2.3.0",
"moment-timezone": "^0.5.35",
"next": "14.2.3",
"next": "14.2.5",
"next-basics": "^0.39.0",
"node-fetch": "^3.2.8",
"npm-run-all": "^4.1.5",
"prisma": "5.14.0",
"prisma": "5.17",
"react": "^18.2.0",
"react-basics": "^0.123.0",
"react-basics": "^0.125.0",
"react-beautiful-dnd": "^13.1.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.4",
Expand All @@ -117,7 +119,7 @@
"thenby": "^1.3.4",
"uuid": "^9.0.0",
"yup": "^0.32.11",
"zustand": "^4.3.8"
"zustand": "^4.5.5"
},
"devDependencies": {
"@formatjs/cli": "^4.2.29",
Expand Down Expand Up @@ -175,6 +177,6 @@
"tar": "^6.1.2",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.1",
"typescript": "^5.4.3"
"typescript": "^5.5.3"
}
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading