-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
permutive-ampscript.json
45 lines (45 loc) · 1.08 KB
/
permutive-ampscript.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
{
"transport": {
"amp-script": true
},
"requests": {
"onPageLoad": "amp-script:permutiveSdk.savePageContext",
"onScroll": "amp-script:permutiveSdk.trackScrollEvent",
"onInterval": "amp-script:permutiveSdk.trackEngagedTime"
},
"triggers": {
"trackPageLoad": {
"on": "ini-load",
"request": "onPageLoad"
},
"trackScroll": {
"on": "scroll",
"scrollSpec": {
"verticalBoundaries": [
5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90,
95, 100
]
},
"request": "onScroll"
},
"trackTimeOnPage": {
"on": "timer",
"timerSpec": {
"interval": 5,
"immediate": false,
"maxTimerLength": 600
},
"request": "onInterval"
}
},
"extraUrlParams": {
"type": "amp",
"title": "${title}",
"domain": "${canonicalHost}",
"url": "${canonicalUrl}",
"referrer": "${documentReferrer}",
"user_agent": "${userAgent}",
"pageHeight": "${scrollHeight}",
"verticalScrollBoundary": "${verticalScrollBoundary}"
}
}