-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamplitude.browser.yml
112 lines (112 loc) · 2.63 KB
/
amplitude.browser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
settings:
platform: Browser
language: TypeScript
sdk: "@amplitude/amplitude-browser"
output: ./amplitude
outputFileName: browser
typedAnchorName: typed
environments:
development:
experiment:
apiKey: my-deployment-key
analytics:
apiKey: my-api-key
production:
experiment:
apiKey: my-deployment-key
analytics:
apiKey: my-api-key
user:
description: Collection of user properties
required:
- referralSource
properties:
referralSource:
description: How the user was brought to the app
enum:
- facebook
- twitter
- other
favoriteSongCount:
description: Total number of favorited songs
type: integer
analytics:
events:
Add To Cart:
description: An item was added to the cart
Checkout:
description: The user completed their purchase
Event With Array:
description: An Event with Array props
properties:
arrayProp:
type: array
items:
type: string
Event With Const:
description: An Event with only Const props
properties:
constProp:
description: Constant value shouldn't be settable
const: true
required:
- constProp
Song Favorited:
description: A song was added to a user's favorites
properties:
aConstant:
description: Constant values shouldn't be settable
const: true
songId:
description: The song unique identifier
type: string
optionalProp:
description: An optional value
type: string
required:
- aConstant
- songId
Song Played:
description: A song was played
properties:
songId:
description: The song unique identifier
type: string
songFavorited:
description: If the song is a favorite
type: boolean
required:
- songId
User Logged In:
description: The user logged in
properties:
method:
enum:
- email
- facebook
- google
required:
- method
User Signed Up:
description: A user signed up
properties:
referralSource:
description: How the user was brought to the app
enum:
- facebook
- twitter
- other
experiment:
flags:
Flag Codegen Enabled:
variants:
? on
A Multi Variate Experiment:
payload:
description: An array of strings
type: array
items:
type: string
variants:
? generic
? ampli