• Resolved markussss

    (@markussss)


    Hey,

    I am trying to better understand – I am coming from solutions (e.g. Borlabs Cookie, Real Cookie Banner) that require to add the GA4 ID or tracking script directly via the Cookie plugin settings. That means the cookie plugin is in charge to tell if the script should be loaded or be blocked.

    I think, If I was adding the GA4 script directly via functions.php or with some other plugin e.g. Site Kit, SEOPress or any other plugin that can do that, then those “traditional” cookie banner & consent management solutions would not be able to block it. GA would probably be loaded no matter whether the user has given consent.

    It seems CookieYes works quite differently here. It’s blocking (or not loading) the GA tracking script no matter how it is added. At least I can observe that when using Site Kit. When GA is added via the Site Kit plugin, CookieYes seems to be able to understand that. Same goes for SEOPress, if I add the GA via SEOPress, CookieYes seems to understand this and is able to block when consent is not given.

    In general, do I have to check for compatibility between the approach of how the GA code is added and CookieYes, or are you always able to spot how it’s added and block the GA script when consent is not given?

    Also, is my overall observation and understanding correct?

    Traditional cookie plugins like Borlabs / Real Cookie Banner → GA code and other tracking codes must be added via the plugin otherwise it will not be able to block the script when consent is not given

    CookieYes → does not matter how the GA code or other tracking code is added, however, as there are endless approaches, compatibility must be tested

    Thanks in advance
    Markus

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @markussss,

    Greetings from CookieYes!

    In CookieYes, there is an option to add the “Script URL pattern” against each cookies and the scripts with these patterns will be blocked prior to consent.

    Thread Starter markussss

    (@markussss)

    Basically I just try to figure out how CookieYes works differently than the other plugins I know, e.g. Borlabs Cookie, Real Cookie Banner (I call them the traditional cookie plugins, that are installed on site and work on site only)

    With those traditional plugins I must add the tracking code / Google Analytics ID directly via the cookie plugin. If I would add it with Site Kit, it would perhaps not know about it and therefore can’t block it.

    But CookieYes can block it, even though the script is added not directly to CookieYes. Does it mean you recognize GA and other scripts no matter how it is added? Or is CookieYes only supporting some popular plugins e.g. Site Kit

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @markussss,

    As we have mentioned in the previous reply, CookieYes detects the GA scripts from the “Script URL pattern” you added to the GA cookies. So you can use any methods to add GA scripts to your site but make sure to mention the “Script URL pattern” correctly against each cookie.

    HI Mark @markussss

    I read your article on simple history, I am trying to change the settings so only me “the admin” can see the user history log, how do i do this, I tried replying to the thread but it was closed, thank you so much!

    I see this code, but do not know what to do with it.

    // Allow only the users specified in $allowed_users to show the history page, the history widget on the dashboard, or the history settings page

    add_filter( ‘simple_history/show_dashboard_page’, ‘function_show_history_dashboard_or_page’ );

    add_filter( ‘simple_history/show_dashboard_widget’, ‘function_show_history_dashboard_or_page’ );

    add_filter( ‘simple_history/show_settings_page’, ‘function_show_history_dashboard_or_page’ );

    function function_show_history_dashboard_or_page( $show ) {    }

    • This reply was modified 1 year, 1 month ago by subagh.
    Thread Starter markussss

    (@markussss)

    @subagh have a look at my profile, my personal email address is listed there. I don’t want to use this thread here for it. Short answer: add it to functions.php – long answer via email if you reach out

    @markussss I don’t see it on your profile anywhere, so here is mine

    [email protected]

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @markussss,

    This thread has been inactive for a bit, so we are going to mark it as resolved now. Please feel free to open a new thread or follow-up if you have any further questions or still need help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘GA Code is not added via CookieYes – how do you recognize it?’ is closed to new replies.