Skip to content

Commit 91d96f6

Browse files
committed
wip
1 parent 0348d50 commit 91d96f6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/signals/signals-example/src/lib/analytics.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ const isStage =
6262
storage.getStorage().stage === 'true' || process.env.STAGE === 'true'
6363
const writeKey = storage.getStorage().writeKey || process.env.WRITEKEY
6464

65+
console.log('Query params allowed:', JSON.stringify(Object.values(queryParams)))
66+
6567
if (!writeKey) {
66-
throw new Error('No writekey provided.')
68+
throw new Error(
69+
`No writekey provided. please add ?${queryParams.WRITE_KEY_NAME}=<writekey> to the URL`
70+
)
6771
}
6872

69-
console.log('Query params allowed:', JSON.stringify(Object.values(queryParams)))
70-
7173
export const analytics = new AnalyticsBrowser()
7274

7375
const processSignalExample: ProcessSignal = (

0 commit comments

Comments
 (0)