Filipe Lourenco : Statistics and Consent Functionality Test

Steps:

  1. Open an incognito browser window

  2. Go to the website https://flourenco.webnode.page

  3. Open application -> Cookies

  4. Check if there is a cookie called “Monsido”

  5. If there is clear the cookies/ If not go to next step

  6. Accept the cookies in the banner

  7. Reload the website

  8. Check if the “Monsido” cookie is present

<script type="text/javascript">
        window._monsido = window._monsido || {
            token: "hBS1WokQ1sBR1XECQ8v8bA",
            statistics: {  enabled: false, track_pageviews_on_load: false },
            pageAssistV2: { enabled: false },
            heatmap: { enabled: false },
        };
        window._monsidoConsentManagerConfig = window._monsidoConsentManagerConfig || {
            token: "hBS1WokQ1sBR1XECQ8v8bA",
            privacyRegulation: "ccpa",
            settings: {
                manualStartup: false,
                hideOnAccepted: false,
                perCategoryConsent: true,
                explicitRejectOption: false,
                hasOverlay: false,
            },
            i18n: {
                languages: ["en_US"],
                defaultLanguage: "en_US"
            },
            theme: {
                buttonColor: "#783CE2",
                buttonTextColor: "#ffffff",
                iconPictureUrl: "cookie",
                iconShape: "circle",
                position: "bottom-right",
            },
            links: {
                cookiePolicyUrl: "",
                optOutUrl: "",
            },
        };
    </script>
    <script type="text/javascript" async src="https://app-script.monsido.com/v2/monsido-script.js"></script>
    <script type="text/javascript" src="https://monsido-consent.com/v1/mcm.js"></script>


    <script type="text/javascript">
        window.addEventListener('MonsidoCookieRunEssentialScripts', (e) => {
            // window.monsido_functions.enableHeatmaps();
        });
        window.addEventListener('MonsidoCookieRunBasicScripts', (e) => {
            // Execute scripts that requires basic consent here
        });
        window.addEventListener('MonsidoCookieRunMarketingScripts', (e) => {
            // Execute scripts that requires marketing consent here
        });
        window.addEventListener('MonsidoCookieRunAnalyticsScripts', (e) => {
            if (window.monsido_functions?.enableStatistics ) {
                window.monsido_functions.enableStatistics();
            } else {
                window.addEventListener('mon-script-loaded', (e) => {
                    window.monsido_functions.enableStatistics();
                });
            }
        });
        window.addEventListener('MonsidoCookieRunPersonalisationScripts', (e) => {
            if (window.monsido_functions?.enablePageAssistV2 ) {
                window.monsido_functions.enablePageAssistV2();
            } else {
                window.addEventListener('mon-script-loaded', (e) => {
                    window.monsido_functions.enablePageAssistV2();
                });
            }
        });
    </script>