• Resolved adsalkatresz

    (@adsalkatresz)


    Hello,

    If I connect google analytics I get the error message “A tag read consent state before a default was set” in tag assistant, I think because the site kit inserts the tagmanager’s code after the analytics code.

    default consent state is stored in tag manager triggered: consent utilization all pages

    If I disconnedt the google analitycs in Site Kit plugin there is no error message

    Is there any solution for this? Is it possible to change the order of the 2 codes?

    Thank You

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out. While it’s not possible to change the order of the code output by Site Kit, I’d be happy to check this further for you.

    1. Your Site Health information. You can use this form to share privately if preferred.??
    2. Are you looking to enable consent mode within Site Kit, or do you prefer to enable via Tag Manager and/or a third party plugin?

    Note that if you’ve already enabled consent mode in tag manager, you can simply disable the feature within Site Kit if you wish.

    I have similar request.

    As third party developer I need able to modify consent default state.

    Can You add apply_filters to variable $consent_defaults into render_gtag_consent_snippet function?

    I test integration described on this page https://github.com/google/site-kit-wp/issues/8277

    It works fine, but very big problem is that I can not modify default state of ad_personalization, ad_storage, ad_user_data, analytics_storage.

    I can only update state. On timeline is too late. Update is after container is already loaded.

    If user allow cookies, after the next page refresh I need set default state to granted. I can not do this, because I can not modify $consent_defaults.

    Thanks.

    $consent_defaults = array(
    			'ad_personalization' => 'denied',
    			'ad_storage'         => 'denied',
    			'ad_user_data'       => 'denied',
    			'analytics_storage'  => 'denied',
    			// TODO: The value for region should be retrieved from $this->consent_mode_settings->get_regions(),
    			// but we'll need to migrate/clean up the incorrect values that were set from the initial release.
    			// See https://github.com/google/site-kit-wp/issues/8444.
    			'region'             => Regions::EU_USER_CONSENT_POLICY,
    			'wait_for_update'    => 500, // Allow 500ms for Consent Management Platforms (CMPs) to update the consent status.
    		);
    • This reply was modified 7 months, 3 weeks ago by mkdes.
    • This reply was modified 7 months, 3 weeks ago by mkdes.
    Plugin Support James Osborne

    (@jamesosborne)

    @mkdes Thanks for the input. If you’d like to open an individual support topic we can communicate with you from there. Note that in order to modify the default state of personalization, this can be configured via a third party plugin, as per this guide.

    Site Kit should not set consent default state to denied. This is wrong solution. Site Kit should set default state based on user choices.

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update @mkdes. Site Kit doesn’t enable consent mode by default, but it does allow users to enable consent mode in order to comply with Digital Markets Act (DMA) changes, so only visitors who have explicitly given consent are tracked.

    You’ll find more on this here. This is a requirement in some regions, such as the EEU. In order for users to consent to tracking, they will need to use a third party plugin. If you have any further questions on this, such as how consent mode works within Site Kit, feel free to open a support topic.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to?open a new support topic?if you continue to encounter issues, or reopen this topic and we’d be happy to assist.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘A tag read consent state before a default was set’ is closed to new replies.