Skip to content

Commit

Permalink
add gtag debug mode (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
wirekang committed Feb 14, 2024
1 parent 92f90f3 commit c560e6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,5 +504,9 @@ async function copyText(v: string, msg: string) {
}

function setupGtag() {
GtagUtils.init({ dialect: D.state.dialect, version: D.state.kysely?.name });
const params = { dialect: D.state.dialect, version: D.state.kysely?.name } as any;
if (DEBUG) {
params.debug_mode = true;
}
GtagUtils.init(params);
}

0 comments on commit c560e6f

Please sign in to comment.