first commit
This commit is contained in:
79
plugins/CookieNoticePro/index.html
Normal file
79
plugins/CookieNoticePro/index.html
Normal file
@@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!-- Google consent mode v2 initialisation -->
|
||||
<script>
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
|
||||
// Set default consent to 'denied' as a placeholder
|
||||
gtag('consent', 'default', {
|
||||
'ad_storage': 'denied',
|
||||
'ad_user_data': 'denied',
|
||||
'ad_personalization': 'denied',
|
||||
'analytics_storage': 'denied'
|
||||
});
|
||||
</script>
|
||||
<!-- Google consent mode v2 initialisation -->
|
||||
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'TAG_ID');
|
||||
</script> -->
|
||||
<!-- End Google tag (gtag.js) -->
|
||||
|
||||
|
||||
<!-- jQuery Import -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
||||
|
||||
<!-- Cookie Notice Pro -->
|
||||
<link rel="stylesheet" href="./cookienoticepro.style.css">
|
||||
<script src="./cookienoticepro.script.js"></script>
|
||||
<script>
|
||||
/* Initialize cookie consent banner */
|
||||
$(document).ready(function() {
|
||||
cookieNoticePro.init();
|
||||
});
|
||||
|
||||
/* IMPORTANT: Remove the function below if not showing the Cookie Preferences Menu */
|
||||
/* Start of injectScripts function */
|
||||
const injectScripts = () => {
|
||||
// Injects Google Analytics scripts if analytics preference is accepted
|
||||
if (cookieNoticePro.isPreferenceAccepted("analytics") === true) {
|
||||
console.log("Analytics Scripts Running....");
|
||||
}
|
||||
|
||||
// Injects marketing scripts (e.g., Google AdWords, DoubleClick, Remarketing pixels, Social Media cookies) if marketing preference is accepted
|
||||
if (cookieNoticePro.isPreferenceAccepted("marketing") === true) {
|
||||
console.log("Marketing Scripts Running....");
|
||||
}
|
||||
|
||||
// Injects scripts for user preferences (e.g., remember password, language) if preference is accepted
|
||||
if (cookieNoticePro.isPreferenceAccepted("preferences") === true) {
|
||||
console.log("Preferences Scripts Running....");
|
||||
}
|
||||
}
|
||||
/* End of injectScripts function */
|
||||
|
||||
</script>
|
||||
<!-- End Cookie Notice Pro -->
|
||||
|
||||
<title>Cookie Notice Pro | Advanced jQuery Cookie Consent Plugin</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user