This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| == Change log == | |
| = 4.0.5 = | |
| * Improvement: separate consenttype for UK | |
| * Improvement: cookie information retrieved from cookiedatabase.org | |
| = 3.2.4 = | |
| * Tweak: Matomo stats script updates | |
| * Improved javascript array merging method | |
| = 3.2.3 = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* styles for the blocked content button and text */ | |
| .cmplz-blocked-content-container .cmplz-blocked-content-notice | |
| { | |
| background-color: #fff; | |
| color: #333; | |
| font-weight: bold; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter('cmplz_known_script_tags', 'cmplz_tidio_live_chat_script'); | |
| function cmplz_tidio_live_chat_script($tags){ | |
| $tags[] = 'document.tidioChatCode'; | |
| return $tags; | |
| } | |
| // You can do the same with iframes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !function(f,b,e,v,n,t,s) | |
| {if(f.fbq)return;n=f.fbq=function(){n.callMethod? | |
| n.callMethod.apply(n,arguments):n.queue.push(arguments)}; | |
| if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; | |
| n.queue=[];t=b.createElement(e);t.async=!0; | |
| t.src=v;s=b.getElementsByTagName(e)[0]; | |
| s.parentNode.insertBefore(t,s)}(window, document,'script', | |
| 'https://connect.facebook.net/en_US/fbevents.js'); | |
| fbq('init', 'your-id'); | |
| fbq('track', 'PageView'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).on("cmplzEnableScripts", myScriptHandler); | |
| function myScriptHandler(consentLevel) { | |
| //your code here | |
| console.log('run enable scripts event ' +consentLevel); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var cmplz_user_data = []; | |
| if (typeof (Storage) !== "undefined" && sessionStorage.cmplz_user_data) { | |
| cmplz_user_data = JSON.parse(sessionStorage.cmplz_user_data); | |
| if (cmplz_user_data.consenttype ==='optin'){ | |
| //do something | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !-- General sitetag (gtag.js) - Google Ads: 123456789 -> | |
| <script class="cmplz-script" type="text/plain" async src="https://www.googletagmanager.com/gtag/js?id=AW-123456789" </script> | |
| <script> | |
| window.dataLayer = window.dataLayer || []; | |
| function gtag(){dataLayer.push(arguments);} | |
| gtag('js', new Date()); | |
| gtag('config', 'AW-123456789'); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script class="cmplz-script" type="text/plain" async> | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !-- General sitetag (gtag.js) - Google Ads: 123456789 -> | |
| <script async src="https://www.googletagmanager.com/gtag/js?id=AW-123456789"> </script> | |
| <script> | |
| window.dataLayer = window.dataLayer || []; | |
| function gtag(){dataLayer.push(arguments);} | |
| gtag('js', new Date()); | |
| gtag('config', 'AW-123456789'); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready( | |
| function($) | |
| { | |
| $(document).on("cmplzCookieWarningLoaded", myScriptHandler); | |
| function myScriptHandler(consentData) { | |
| $('a.cc-link.impressum').text('Privacy Statement'); | |
| } | |
| } | |
| ); |