Cookie Consent: Tracking everyone except Europe

Legal Monster: Cookie Consent Manager

  • Free cookie widget
  • Up to 100 pages scanned
  • 1 domain
  • Cookie scan interval: 14 days
  • Audit Trail
  • Supports multiple languages (Danish, German, Dutch, English)
  • Do Not Track support
  • Free Cookie Policy template

The problem with free cookie consent managers

The free cookie consent manager with location detection

The code

<!-- Legal Monster Consent non-EU bypass by AsadZulfahri.com -->
<script>
userTZ = Intl.DateTimeFormat().resolvedOptions().timeZone;
checkTZ = userTZ.indexOf('Europe');
if (checkTZ !== -1) {
console.log("User is in Europe. Activating Legal Monster!");
document.write('\x3Cscript>!function(){var i,e,t,s=window.legal=window.legal||[];if(s.SNIPPET_VERSION=\'3.0.0\',i=\'https:\/\/widgets.legalmonster.com\/v1\/legal.js\',!s.__VERSION__)if(s.invoked)window.console&&console.info&&console.info(\'legal.js: The initialisation snippet is included more than once on this page, and does not need to be.\');else{for(s.invoked=!0,s.methods=[\'cookieConsent\',\'document\',\'ensureConsent\',\'handleWidget\',\'signup\',\'user\'],s.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);return e.unshift(t),s.push(e),s}},e=0;e<s.methods.length;e++)t=s.methods[e],s[t]=s.factory(t);s.load=function(e,t){var n,o=document.createElement(\'script\');o.setAttribute(\'data-legalmonster\',\'sven\'),o.type=\'text\/javascript\',o.async=!0,o.src=i,(n=document.getElementsByTagName(\'script\')[0]).parentNode.insertBefore(o,n),s.__project=e,s.__loadOptions=t||{}},s.widget=function(e){s.__project||s.load(e.widgetPublicKey),s.handleWidget(e)}}}(); legal.widget({ type: \'cookie\', widgetPublicKey: \'YOUR-WIDGET-KEY-HERE\', });\x3C/script>');
console.log("Legal Monster activated!");
}
else {
console.log("User not in Europe. Tracking enabled!");
}
</script>
<!-- END Legal Monster Consent non-EU bypass AsadZulfahri.com -->

Freelance Technical SEO Consultant. Previously @Zapier @Monster. Internet ninja. Food lover. Certified introvert. Music advocate. World Traveler.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Discover & Attack Services on Web Apps or Networks with Sparta

Beware of Levitrares.com

Assessing U.S Military Cyber Operational Capabilities to Counter Pro-ISIS Internet Infrastructure

{UPDATE} Word Generate Hack Free Resources Generator

Pteria to be added on Hardware wallet Hashwallet

TON is officially supported in Samsung Blockchain Wallet [EN/KR]

Polkapet World Expands Partnership with SpiderDao Introducing ‘LAU’

{UPDATE} Frontline Drone Combat Hack Free Resources Generator

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Asad Zulfahri

Asad Zulfahri

Freelance Technical SEO Consultant. Previously @Zapier @Monster. Internet ninja. Food lover. Certified introvert. Music advocate. World Traveler.

More from Medium

FINRA’s April 2022 Disciplinary and Other Actions

What is a Single Lens Reflex Camera and Why Should I Use One?

Notes #4: Sailing through discovery & real life meet-ups & a new home📍

My China Covid Zero Lockdown Asshole