Skip to content

Commit c51bf37

Browse files
authored
Merge branch 'main' into use-toBeCallableWith
2 parents 13a003d + 8a91703 commit c51bf37

File tree

6 files changed

+115
-80
lines changed

6 files changed

+115
-80
lines changed

packages/use-analytics/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 0.0.11
4+
5+
### Patch Changes
6+
7+
- [#2721](https://github.com/scaleway/scaleway-lib/pull/2721) [`f69cca8`](https://github.com/scaleway/scaleway-lib/commit/f69cca84efec09f88261373d192208d4e9661bf3) Thanks [@philibea](https://github.com/philibea)! - add default analytics thirsd party
8+
39
## 0.0.10
410

511
### Patch Changes

packages/use-analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scaleway/use-analytics",
3-
"version": "0.0.10",
3+
"version": "0.0.11",
44
"description": "A small hook to handle events analytics",
55
"engines": {
66
"node": ">=20.x"

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)