This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.json
51 lines (51 loc) · 1.87 KB
/
install.json
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
{
"resources": {
"body": [
{
"type": "script",
"src": "./eager-satismeter.js"
},
{
"type": "script",
"contents": "EagerSatisMeter.init(INSTALL_OPTIONS)"
}
]
},
"options": {
"properties": {
"token": {
"order": 1,
"title": "SatisMeter Token",
"description": "Get this from the Settings: Install page inside the <a href=\"https://app.satismeter.com\" target=\"_blank\" class=\"with-inherited-color more\"><strong>SatisMeter</strong></a>",
"type": "string",
"placeholder": "A1B2C3D4E5F6G7H8"
},
"trackAnonymous": {
"order": 2,
"title": "Show SatisMeter to anonymous visitors",
"type": "boolean",
"default": true
},
"automaticUser": {
"order": 3,
"showIf": {
"trackAnonymous": false
},
"title": "Automatically detect logged in user information",
"description": "<strong>For developers:</strong> This works by iterating through all of the properties on the <code class=\"inline\">window</code> object, looking for any with an <code class=\"inline\">email</code> property. So for example, this detection would work if you had the following somewhere in your app’s code:<pre><code>window.user = {\n id: 'a1b2c3d4',\n email: '[email protected]'\n name: 'First Last'\n created: '2015-09-26T22:49:13.124Z'\n};</code></pre>Uncheck this option to manually specify which exposed property to use.",
"type": "boolean",
"default": true
},
"manuallySpecifiedUser": {
"order": 4,
"showIf": {
"trackAnonymous": false,
"automaticUser": false
},
"title": "Global JavaScript expression which evaluates to the logged in users",
"type": "string",
"placeholder": "window.Eager.auth.currentUser"
}
}
}
}