Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Forum: Plugins
    In reply to: [GDPR] poedit

    I have the same problem, although I put the files in the right folders, the translation does not work

    Thread Starter pakino

    (@pakino)

    I apologize, but I solved it. It was my mistake, a plugin was used, MonsterInsight, and therefore did not block cookies. Entering the analytics code directly works perfectly.

    Thanks to the availability

    Thread Starter pakino

    (@pakino)

    to clarify
    I inserti this code in my function.pfp file in child-themes.

    add_action( 'wp_head', 'my_google_opt_out' );
    function my_google_opt_out() {
      if ( ! has_consent( 'statistici' ) || ! is_allowed_cookie( '_ga' ) ) {
        ?>
        <script>
          window['ga-disable-UA-XXXXXXXX-X'] = true; // Don't forget to replace X for your actual UA numbers.
        </script>
        <?php
      }
    
      if ( ! has_consent( 'statistici' ) || ! is_allowed_cookie( '_gali' ) ) {
        ?>
        <script>
          window['gali-disable-UA-XXXXXXXX-X'] = true; // Don't forget to replace X for your actual UA numbers.
        </script>
        <?php
      }
    
     if ( ! has_consent( 'statistici' ) || ! is_allowed_cookie( '_gat' ) ) {
        ?>
        <script>
          window['gat-disable-UA-XXXXXXXX-X'] = true; // Don't forget to replace X for your actual UA numbers.
        </script>
        <?php
      }
    
      if ( ! has_consent( 'statistici' ) || ! is_allowed_cookie( '_gid' ) ) {
        ?>
        <script>
          window['gid-disable-UA-XXXXXXXX-X'] = true; // Don't forget to replace X for your actual UA numbers.
        </script>
        <?php
      }
    
    }
    

    I setting this cookies _ga, _gali, _gat, _gid with name Statistici
    end I create consentse Statistici..

    Forum: Plugins
    In reply to: [GDPR] Facebook Pixel
    Thread Starter pakino

    (@pakino)

    thanks for the reply, I think I will insert manually.

    I would need another help if possible.
    I followed the guide at this link

    https://gdpr-wp.com/knowledge-base/enabling-or-disabling-functionality-based-on-consent-and-cookies/

    to block analytics cookies. When I load the site these are not installed and that’s okay. But when the user accepts using the I Agree button cookies are installed _ga and _gid although they have not been accepted as cookies

    Forum: Plugins
    In reply to: [GDPR] Facebook Pixel
    Thread Starter pakino

    (@pakino)

    Thanks for the reply. I use a plugin, it’s called Pixel Caffeine. By inspecting the code, the script is inserted into the <head>

    @rfmcomposer
    You had a good idea, but I did not understand what you put in the function you put in the child-theme

Viewing 6 replies - 1 through 6 (of 6 total)