-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [vendor-config] Add permutive-ampscript vendor config (#37359)
* adds permutive-ampscript vendor config * format fixes * use https for permutive support link * address markdown link checker 403 error * disable permutive links as well
- Loading branch information
Zeeshan Rasool
committed
Feb 1, 2022
1 parent
89fdad7
commit 14b9309
Showing
3 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
extensions/amp-analytics/0.1/vendors/permutive-ampscript.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters