-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Schema for ad-click attribution pixels (#2892)
* Schema for ad-click attribution pixels * Update pixel-definitions/pixels/ad_click_attribution.json Co-authored-by: Steven Englehardt <[email protected]> --------- Co-authored-by: Steven Englehardt <[email protected]>
- Loading branch information
1 parent
6ea0c3f
commit 26b29af
Showing
2 changed files
with
98 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
{ | ||
"extensionVersion": { | ||
"key": "extensionVersion", | ||
"type": "string", | ||
"description": "", | ||
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$", | ||
"examples": ["2024.10.16"] | ||
}, | ||
"atb": { | ||
"key": "atb", | ||
"type": "string", | ||
"pattern": "v[0-9]{1,3}-[0-7]([a-z]{2})?", | ||
"description": "Add to browser value, corresponding to the users install week and day" | ||
}, | ||
"appVersion": { | ||
"key": "appVersion", | ||
"type": "string", | ||
"description": "Extension version, but sent with 'appVersion' key.", | ||
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$", | ||
"examples": ["2024.10.16"] | ||
}, | ||
"extensionVersion": { | ||
"key": "extensionVersion", | ||
"type": "string", | ||
"description": "Current version of the extension.", | ||
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$", | ||
"examples": ["2024.10.16"] | ||
} | ||
} |
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,84 @@ | ||
{ | ||
"m.ad.click.detected": { | ||
"description": "Fire a pixel at the point the conditional allowlist is registered with the app", | ||
"owners": [ | ||
"dvandyke", | ||
"senglehart" | ||
], | ||
"triggers": [ | ||
"page_load" | ||
], | ||
"suffixes": [ | ||
"extension", | ||
"browser" | ||
], | ||
"parameters": [ | ||
"appVersion", | ||
{ | ||
"key": "domainDetection", | ||
"description": "Whether the SERP-provided domain matches what was heuristically detected.", | ||
"enum": [ | ||
"none", | ||
"matched", | ||
"mismatch", | ||
"serp_only", | ||
"heuristic_only" | ||
] | ||
}, | ||
{ | ||
"key": "heuristicDetectionEnabled", | ||
"description": "if heuristicDetection enabled via config", | ||
"enum": [ | ||
"0", | ||
"1" | ||
] | ||
}, | ||
{ | ||
"key": "domainDetectionEnabled", | ||
"description": "if domainDetection enabled via config", | ||
"enum": [ | ||
"0", | ||
"1" | ||
] | ||
} | ||
] | ||
}, | ||
"m.ad.click.active": { | ||
"description": "Fire a pixel on the first instance an allowlist is \"used\", once per registration.", | ||
"owners": [ | ||
"dvandyke", | ||
"senglehart" | ||
], | ||
"triggers": [ | ||
"page_load" | ||
], | ||
"suffixes": [ | ||
"extension", | ||
"browser" | ||
], | ||
"parameters": [ | ||
"appVersion" | ||
] | ||
}, | ||
"m.pageloads.with.ad.attribution": { | ||
"description": "Aggregate the number of page loads that have had an active exemption over the course of some time period", | ||
"owners": [ | ||
"dvandyke", | ||
"senglehart" | ||
], | ||
"triggers": [ | ||
"page_load" | ||
], | ||
"suffixes": [ | ||
"extension", | ||
"browser" | ||
], | ||
"parameters": [ | ||
{ | ||
"key": "count", | ||
"description": "Number of page loads with an exemption in time period", | ||
"type": "integer" | ||
} | ||
] | ||
} | ||
} |