-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom conversion ID patterns for Verifiable Advertiser Conversions
To increase adoption of Verifiable Advertiser Conversions we provide a mechanism to extract a conversion ID from an advertiser's conversion site w/o the need to modify its DOM. To this end a regex pattern can be configured via the conversions resource to extract the ID from either the URL or the DOM. The default pattern has been made configurable via griffin.
- Loading branch information
Moritz Haller
committed
Apr 26, 2021
1 parent
1a0d5c4
commit 978142a
Showing
16 changed files
with
641 additions
and
37 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
15 changes: 15 additions & 0 deletions
15
vendor/bat-native-ads/data/test/resources/nnqccijfhvzwyrxpxwjrpmynaiazctqb
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 @@ | ||
{ | ||
"locale": "us", | ||
"version": 1, | ||
"timestamp": "2021-04-26 09:00:00", | ||
"conversion_id_patterns": { | ||
"https://brave.com/foobar": { | ||
"id_pattern": "<div.*id=\"conversion-id\".*>(.*)<\/div>", | ||
"search_in": "html" | ||
}, | ||
"https://brave.com/foobar?conversion_id=*": { | ||
"id_pattern": "conversion_id\\=(.*)", | ||
"search_in": "url" | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.