Skip to content

Commit

Permalink
configure google ad blocking recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshanRukantha committed Feb 8, 2024
1 parent b40bdfc commit d875bf9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,31 @@
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8130213317723668"
crossorigin="anonymous"
></script>
<!-- Google Ad Blocking Recovery -->
<script
async
src="https://fundingchoicesmessages.google.com/i/pub-8130213317723668?ers=1"
nonce="KH1_Y6X33KnkZyGiS1cDxg"
></script>
<script nonce="KH1_Y6X33KnkZyGiS1cDxg">
(function () {
function signalGooglefcPresent() {
if (!window.frames["googlefcPresent"]) {
if (document.body) {
const iframe = document.createElement("iframe");
iframe.style =
"width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;";
iframe.style.display = "none";
iframe.name = "googlefcPresent";
document.body.appendChild(iframe);
} else {
setTimeout(signalGooglefcPresent, 0);
}
}
}
signalGooglefcPresent();
})();
</script>
<!-- Google tag (gtag.js) -->
<script
async
Expand Down

0 comments on commit d875bf9

Please sign in to comment.