Skip to content

Instantly share code, notes, and snippets.

@kjtolsma
Created August 10, 2023 11:10
Show Gist options
  • Save kjtolsma/6943589bd8c4240cfae1c648965e6947 to your computer and use it in GitHub Desktop.
Save kjtolsma/6943589bd8c4240cfae1c648965e6947 to your computer and use it in GitHub Desktop.
<script>
( function() {
if ( typeof __tcfapi !== 'function' ) {
return;
}
__tcfapi(
'addEventListener',
2,
( tcData, success ) => {
if ( ! success ) {
return;
}
if ( tcData.eventStatus !== 'tcloaded' ) {
return;
}
console.log( tcData );
}
);
} )();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment