Switasお問い合わせ

無料 Consent v2 ジェネレーター

通知バナーを選択
同意の種類
カラーパレット

コンプライアンスをかんたんに

Switas Consent Widget v2 は、ウェブサイト上のユーザーの同意を管理するための究極のソリューションです。無料のオープンソースウィジェットで、プライバシー法を遵守しながら、スムーズなユーザー体験を提供できます。

ウェブサイトに無料の Cookie 同意を組み込む方法

  1. 上記のステップ 3 で生成されたコードをコピーして、ウェブサイトに追加します。
  2. 使用している JavaScript の <script> に、type="text/javascript" を type="text/plain" に変更してタグ付けします。
  3. タグ付けした各 <script> に、対応する同意レベルを追加します:
    • data-cookie-consent="strictly-necessary": ユーザーの選択にかかわらず読み込まれる、厳密に必要なスクリプト用
    • data-cookie-consent="functionality": 言語設定スクリプトなど、機能性スクリプト用
    • data-cookie-consent="tracking": Google Analytics 4 など、トラッキングスクリプト用
    • data-cookie-consent="targeting": Google 広告のリマーケティング、Meta Pixel など、ターゲティングスクリプト用

使用例

<!-- Login Cookies -->
<script type="text/plain" src="/js/login-session.js"></script>
<!-- Google Analytics -->
<script type="text/plain">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', GOOGLE_PROPERTY_ID_GOES_HERE, 'auto');
ga('send', 'pageview');
</script>

Switas Consent Widget v2 を選ぶ理由

  • 無料で利用可能: 常に無料でご利用いただけます。連携についてもお気軽にお問い合わせください。Github をご覧ください: https://github.com/switaslabs/switas-consent-v2
  • かんたんな導入: わかりやすい手順で、数分でウェブサイトに追加できます。
  • カスタマイズ可能なデザイン: サイトのルック&フィールに合わせてウィジェットを調整できます。
  • 使いやすいインターフェース: ユーザーが同意を与えたり撤回したりするための明確な選択肢を提供します。
  • 規制に対応: GDPR、CCPA、その他の主要なプライバシー法に準拠しています。

主な機能

  • かんたんなセットアップ: 迅速でシンプルなインストール手順。
  • 柔軟なカスタマイズ: ブランドに合わせて色、フォント、テキストを調整できます。
  • レスポンシブデザイン: あらゆるデバイスでシームレスに動作します。
  • アナリティクス連携: ユーザーの同意と設定を追跡します。
  • 多言語対応: 複数の言語オプションで、グローバルなオーディエンスに対応します。

ユーザーの同意を管理

ユーザーが簡単にプライバシー設定を承諾、拒否、またはカスタマイズできるようにします。最新のプライバシー規制への準拠を確保します。このウィジェットのアイデアと実装は、Free Cookie Consent ツールに基づいています

お困りですか?

詳しい手順やトラブルシューティングのヒントについては、ドキュメントをご覧ください。ご不明な点がありましたら、お気軽にお問い合わせください。

Switas について

Switas は、企業がデジタル環境で成長し発展することを後押しする革新的なソリューションの提供に力を注いでいます。プライバシーとユーザー体験への取り組みが、強力でありながら使いやすいツールを生み出す原動力となっています。

Cookie 同意をプレビュー
Cookie 同意をプレビュー
"use strict"; var _BASE_URL = ''; var script_config = void 0, user_scripts = [], use_php = !0, php_result_path = _BASE_URL + "consent-preview.php", properties_changed = document.createEvent("Event"); function create_demo(b) { for (var c = document.querySelectorAll("iframe"), a = 0; a < c.length; a++) { var d = c[a]; !0 === use_php ? (d.src = php_result_path + "?data=" + b64EncodeUnicode(b)) : (d.src = _BASE_URL + "result/" + b64EncodeUnicode(b)); } } function b64EncodeUnicode(a) { return btoa( encodeURIComponent(a).replace(/%([0-9A-F]{2})/g, function (b, a) { return String.fromCharCode("0x" + a); }) ); } function clean_script_code_types(a) { return (a = (a = a.replace(new RegExp(" type=('|\")(.*?)('|\")", "g"), "")).replace(new RegExp("=('|\")(.*?)('|\")", "g"), "")); } function prepare_script_code(a, b) { return a.replace(new RegExp("" + d.type + ")"; var c = document.createElement("button"); c.classList.add("btn"), c.classList.add("btn-primary"), (c.innerHTML = "Delete"), b.appendChild(e), b.appendChild(c), a.appendChild(b), c.addEventListener("click", function () { delete user_scripts[f], display_scripts(), document.dispatchEvent(properties_changed); }); }); } properties_changed.initEvent("properties_changed", !0, !0), document.addEventListener("properties_changed", function () { var a = JSON.stringify(script_config), b = _BASE_URL.replace("http:", ""); b = b.replace("https:", ""); var c = compile_user_scripts(); (document.querySelector("#user_code").innerHTML = '\n<\/script>\n\ndocument.addEventListener(\'DOMContentLoaded\', function () {\ncookieconsent.run(' + a + ");\n});\n<\/script>" + c + '\n\nUpdate cookies preferences\n'), create_demo(a); }), (function () { script_config = { notice_banner_type: "headline", consent_type: "express", palette: "dark", language: "en", page_load_consent_levels: ["strictly-necessary"] }; var d = document.querySelector("#website_name"); d.addEventListener("input", function () { (script_config.website_name = d.value), document.dispatchEvent(properties_changed); }); var e = document.querySelectorAll('[name="notice_banner"]'); [].forEach.call(e, function (a) { a.addEventListener("change", function () { (script_config.notice_banner_type = a.value), document.dispatchEvent(properties_changed); }); }); var f = document.querySelectorAll('[name="consent_type"]'); [].forEach.call(f, function (a) { a.addEventListener("change", function () { (script_config.consent_type = a.value), "implied" == a.value ? (script_config.page_load_consent_levels = ["strictly-necessary", "functionality", "tracking", "targeting"]) : "express" == a.value && (script_config.page_load_consent_levels = ["strictly-necessary"]), document.dispatchEvent(properties_changed); }); }); var b = document.querySelectorAll('input[name="palette"]'); for (let a = 0; a < b.length; a++) { let g = b[a]; g.addEventListener("click", function () { (script_config.palette = g.value), document.dispatchEvent(properties_changed); }); } var h = document.querySelector('[name="language"]'); h.addEventListener("change", function () { (script_config.language = h.value), document.dispatchEvent(properties_changed); }); var i = document.querySelector("#include_privacy_policy"), j = document.querySelector("#privacy_policy_link"), k = document.querySelector("#privacy_policy_link_input"); (j.style.display = "none"), i.addEventListener("change", function () { !0 === i.checked ? ((j.style.display = "block"), (k.value = "")) : (delete script_config.website_privacy_policy_url, document.dispatchEvent(properties_changed), (j.style.display = "none")); }), k.addEventListener("input", function () { (script_config.website_privacy_policy_url = k.value), document.dispatchEvent(properties_changed); }); var c = document.querySelector("#addUserScript"); c && c.addEventListener("click", function () { var c = document.querySelector('[name="script_name"]'), a = c.value, b = document.querySelector('[name="script_type"]:checked'), d = "strictly-necessary"; d = null !== b ? b.value || "strictly-necessary" : (b = document.querySelector('[name="script_type"]')).value; var e = document.querySelector('[name="script_code"]'), f = e.value, h = f.indexOf(" -1) { (g.innerHTML = ""), a.length < 1 && (a = "Unnamed script"); var i = clean_script_code_types(f); user_scripts.push({ name: a, type: d, code: i }), (c.value = ""), (e.value = ""), display_scripts(), document.dispatchEvent(properties_changed); } else g.innerHTML = "Invalid code error"; }), (script_config.notice_banner_reject_button_hide = !1), (script_config.preferences_center_close_button_hide = !1), (script_config.page_refresh_confirmation_buttons = !1), document.dispatchEvent(properties_changed); })(); document.getElementById('user-code-copy-button').addEventListener('click', function(e) { var clipboard = new ClipboardJS('#user-code-copy-button', { text: function(trigger) { return document.getElementById('user_code').value; } }); clipboard.on('success', function(e) { alert('Copied.'); }); });

その他の無料ツール

すべてのツール →

一緒に創りましょう、 次の一件を。

お問い合わせ