simonepelagatti

instillaGDPR

Jan 31st, 2020
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. var privacyEvent = function(event) {
  3. var privacySettings = instilla.privacy.getPrivacySettings();
  4. dataLayer.push({
  5. event: privacySettings.statisticsAndMarketing?"page_view":"privacy_not_accepted",
  6. statisticsAndMarketingPrivacySettings: privacySettings.statisticsAndMarketing,
  7. preferencesPrivacySettings: privacySettings.preferences
  8. });
  9. }
  10.  
  11. instilla.privacy.initialize({
  12. acceptAllButtonStyle: "color: #ffffff;background: #ff9600!important;border-radius: 30px;font-size: 15px;padding: 12px 24px;font-weight: 600;box-shadow: none;border: none;",
  13. advancedPrivacySettingsPanelStyle: "color: #fff;",
  14. bannerOverlay: true,
  15. bannerWrapperStyle: "font-size: 1.5vh;",
  16. bannerStyle: "background-color: transparent;box-shadow: none;border: none;text-align: center;padding: 40px 20px;font-size: 16px;",
  17. cookiePolicyButtonStyle: "background: transparent;border: 1px solid #fff;text-transform: initial;padding: 10px 20px;border-radius: 28px;color: #fff;margin: 10px auto;text-align: center; display: block; margin: 10px auto;",
  18. cookiePolicyLink: "<<COOKIE-POLICY-PAGE-LINK>>",
  19. lang: "it-it",
  20. mandatoryConsent: true,
  21. showAdvancedPrivacySettings: true,
  22. showAdvancedPrivacySettingsButtonStyle:"background: transparent;text-transform: initial;padding: 10px 20px;color: #fff;margin: 10px auto;text-align: center;border: none; text-decoration:underline;",
  23. advancedPrivacySettingsPanelStyle:"background: #fff;box-shadow: none;color: black;line-height: 22px;text-align: left; padding: 25px;",
  24. advancedPrivacySettingsNoConsentButtonStyle:"font-weight: 400;background: transparent;text-transform: initial;padding: 10px 20px;border-radius: 28px;",
  25. advancedPrivacySettingsSaveButtonStyle: "font-weight: 400;background: transparent;text-transform: initial;padding: 10px 20px;border-radius: 28px;",
  26. advancedPrivacySettingsUpdateButtonStyle: "font-weight: 400;background: transparent;text-transform: initial;padding: 10px 20px;border-radius: 28px;",
  27. }, privacyEvent, privacyEvent);
  28.  
  29.  
  30. </script>
RAW Paste Data