• 7esse

    (@7esse)


    Hi, I need to implement https://www.iubenda.com/it/help/27154-google-consent-mode but I must add consent code for example

    // Default consent mode is "denied" for both ads and analytics, but delay for 2 seconds until the Cookie Solution is loaded
        gtag("consent", "default", {
            ad_storage: "denied",
            analytics_storage: "denied",
            wait_for_update: 2000 // milliseconds
        });
        // Improve ad click measurement quality (optional)
        gtag('set', 'url_passthrough', true);
        // Further redact your ads data (optional)
        gtag("set", "ads_data_redaction", true);

    how can I add this code?

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    There are several additional codes that needs to be added based the documentation you linked. You need to work with your developer who will most probably add the codes into your child theme.

    The GTM container code will be handled by this plugin, all other codes will be handled by your site dev.

    Thread Starter 7esse

    (@7esse)

    thanks Thomas, we can add this code use some hooks but would it be better to insert hooks inside your plugin so you can insert the code as per the guide? Or add to plugin options like
    ad_storage
    analytics_storage
    url_passthrough
    etc?

    With this solution we can instantiate GTM with the default options that also ask other cookie banner managers

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ad_storage, analytics_storage and others’ is closed to new replies.