Skip to content

Commit f69cca8

Browse files
authored
feat(analytics): export manual destinations (#2721)
1 parent 5939c18 commit f69cca8

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.changeset/kind-sloths-shave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@scaleway/use-analytics": patch
3+
---
4+
5+
add default analytics thirsd party

packages/use-analytics/src/constants.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
import type { SerializeOptions } from 'cookie'
22

3+
export const THIRD_PARTY_PROVIDERS = [
4+
{
5+
name: 'Amplitude',
6+
displayName: 'Amplitude',
7+
category: 'analytics',
8+
},
9+
{
10+
name: 'Algolia',
11+
displayName: 'Algolia',
12+
category: 'analytics',
13+
},
14+
{
15+
name: 'LinkedIn',
16+
displayName: 'LinkedIn',
17+
category: 'marketing',
18+
},
19+
{
20+
name: 'Google Ads',
21+
displayName: 'Google AdWord',
22+
category: 'marketing',
23+
},
24+
] as const
25+
326
export const CATEGORIES = [
427
'essential',
528
'functional',

packages/use-analytics/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ export {
99
defaultConsentOptions,
1010
} from './analytics/constants'
1111

12+
export {
13+
THIRD_PARTY_PROVIDERS,
14+
CATEGORIES,
15+
} from './constants'
16+
1217
export type {
1318
Analytics,
1419
OnEventError,

0 commit comments

Comments
 (0)