-
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.
add AppsFlyer as amp-analytics vendor (#35610)
* add analytics vendor appsflyer * added amp.appsflyer.com and amp.onelink.me dns * added appsflyer analytics vendor * update doc link, params * add OWNERS file * add analytics vendor appsflyer * added amp.appsflyer.com and amp.onelink.me dns * added appsflyer analytics vendor * update doc link, params * add OWNERS file * fix test * Update extensions/amp-analytics/0.1/vendors/OWNERS Co-authored-by: Alan Orozco <[email protected]> Co-authored-by: Alan Orozco <[email protected]>
- Loading branch information
1 parent
5fa2ca7
commit f062e8d
Showing
5 changed files
with
141 additions
and
0 deletions.
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
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
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,15 @@ | ||
// For an explanation of the OWNERS rules and syntax, see: | ||
// https://github.com/ampproject/amp-github-apps/blob/main/owners/OWNERS.example | ||
{ | ||
rules: [ | ||
// Vendor file for appsflyer | ||
{ | ||
pattern: 'appsflyer.json', | ||
owners: [ | ||
{name: 'ampproject/wg-components'}, | ||
{name: 'AppsFlyer'}, | ||
{name: 'fredsh2k'}, | ||
], | ||
}, | ||
], | ||
} |
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,62 @@ | ||
{ | ||
"transport": { | ||
"useBody": true, | ||
"beacon": true | ||
}, | ||
"requests": { | ||
"onelink": "https://amp.onelink.me/amp/v1/onelink?webAppId=${webAppId}&afWebUserId=${afWebUserId}&-afUserId=${amp-afUserId}&-afRefUserId=${amp-afRefUserId}", | ||
"event": "https://amp.appsflyer.com/amp/v1/events?webAppId=${webAppId}&afWebUserId=${afWebUserId}&-afUserId=${amp-afUserId}&-afRefUserId=${amp-afRefUserId}" | ||
}, | ||
"triggers": { | ||
"onelink": { | ||
"on": "visible", | ||
"request": "onelink", | ||
"extraUrlParams": { | ||
"data": { | ||
"eventType": "LOAD" | ||
}, | ||
"meta": { | ||
"referrer": "${documentReferrer}", | ||
"timestamp": "${timestamp}", | ||
"userAgent": "${userAgent}", | ||
"locationHref": "${ampdocUrl}" | ||
} | ||
} | ||
}, | ||
"event": { | ||
"on": "visible", | ||
"request": "event", | ||
"extraUrlParams": { | ||
"data": { | ||
"eventType": "LOAD" | ||
}, | ||
"meta": { | ||
"referrer": "${documentReferrer}", | ||
"timestamp": "${timestamp}", | ||
"userAgent": "${userAgent}", | ||
"locationHref": "${ampdocUrl}" | ||
} | ||
} | ||
} | ||
}, | ||
"linkers": { | ||
"enabled": true, | ||
"proxyOnly": false, | ||
"linker": { | ||
"ids": { | ||
"afRefUserId": "CLIENT_ID(amp-afUserId)" | ||
} | ||
} | ||
}, | ||
"cookies": { | ||
"enabled": true, | ||
"amp-afRefUserId": { | ||
"value": "LINKER_PARAM(linker, afRefUserId)" | ||
} | ||
}, | ||
"vars": { | ||
"afWebUserId": "COOKIE(afUserId)", | ||
"amp-afUserId": "CLIENT_ID(amp-afUserId)", | ||
"amp-afRefUserId": "COOKIE(amp-afRefUserId)" | ||
} | ||
} |
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