MCPcopy
hub / github.com/umami-software/umami / getExcludeBounceQuery

Function getExcludeBounceQuery

src/lib/prisma.ts:206–223  ·  view source on GitHub ↗
(filters: Record<string, any>)

Source from the content-addressed store, hash-verified

204}
205
206function getExcludeBounceQuery(filters: Record<string, any>) {
207 if (filters.excludeBounce !== true) {
208 return '';
209 }
210
211 return `join
212 (select distinct session_id, visit_id
213 from website_event
214 where website_id = {{websiteId}}
215 and created_at between {{startDate}} and {{endDate}}
216 and event_type = 1
217 group by session_id, visit_id
218 having count(*) > 1
219 ) excludeBounce
220 on excludeBounce.session_id = website_event.session_id
221 and excludeBounce.visit_id = website_event.visit_id
222 `;
223}
224
225function getDateQuery(filters: Record<string, any>) {
226 const { startDate, endDate } = filters;

Callers 1

parseFiltersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected