Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema for ad-click attribution pixels #2892

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions pixel-definitions/common_params.json
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"]
}
}
84 changes: 84 additions & 0 deletions pixel-definitions/pixels/ad_click_attribution.json
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": "matching method used",
"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"
}
]
}
}
Loading