Skip to content

Commit

Permalink
Fix undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed Mar 6, 2024
1 parent d26abcd commit 20ff3ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions tarteaucitron.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,13 @@ var tarteaucitron = {

// allow gtag/googleads by default if consent mode is on
window.addEventListener('tac.root_available', function() {
tarteaucitron_block.unblock(/www\.googletagmanager\.com\/gtag\/js/);
tarteaucitron_block.unblock(/www\.googleadservices\.com\/pagead\/conversion/);
tarteaucitron_block.unblock(/AW-/);
tarteaucitron_block.unblock(/google-analytics\.com\/analytics\.js/);
tarteaucitron_block.unblock(/google-analytics\.com\/ga\.js/);
if (tarteaucitron_block !== undefined) {
tarteaucitron_block.unblock(/www\.googletagmanager\.com\/gtag\/js/);
tarteaucitron_block.unblock(/www\.googleadservices\.com\/pagead\/conversion/);
tarteaucitron_block.unblock(/AW-/);
tarteaucitron_block.unblock(/google-analytics\.com\/analytics\.js/);
tarteaucitron_block.unblock(/google-analytics\.com\/ga\.js/);
}
});
}

Expand Down
2 changes: 1 addition & 1 deletion tarteaucitron.min.js

Large diffs are not rendered by default.

0 comments on commit 20ff3ae

Please sign in to comment.