Skip to content

Commit

Permalink
analytics: added TCF note (#3621)
Browse files Browse the repository at this point in the history
Clarification related to #3587
  • Loading branch information
bretg authored Mar 8, 2022
1 parent 76eb807 commit bac8ea0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-docs/integrate-with-the-prebid-analytics-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ The callback will receive an object with the following attributes:
}
```

Note that analytics adapters can read the TCF string directly from the auction object -- look for the gdprConsent object, which contains three attributes:
gdprApplies, consentString, and apiVersion

#### Listening for errors

There are two error events analytics modules may wish to listen for: auctionDebug and adRenderFailed. The former is any error that would be normally logged to console and there can be a great many. The latter may happen for the following reasons: (PREVENT_WRITING_ON_MAIN_DOCUMENT, NO_AD, CANNOT_FIND_AD, EXCEPTION, MISSING_DOC_OR_ADID)
Expand Down

0 comments on commit bac8ea0

Please sign in to comment.