Created
March 2, 2021 17:19
-
-
Save dnicolson/9e1c5c5ee4ca10c0f19d6b19e6edc156 to your computer and use it in GitHub Desktop.
Simulates TCF consent for Google ads
This file contains hidden or 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
window.__tcfapi = (command, parameter, callback) => { | |
if (command === 'checkConsent') { | |
callback(true); | |
} | |
if (command === 'addEventListener') { | |
callback({eventStatus: 'tcloaded', gdprApplies: false}, true); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment