• Resolved Sibbo100

    (@sibbo100)


    Hi Support,

    I’ve just started using this plugin and all is going well, however I’m trying to add some DoubleClick Tracking codes into the Body Section in the Additional Cookies block but once added in it completely breaks my website to a point where all that is shown is the Double Click iframe content.

    I also have a facebook tracking pixel that has a condition around it so it only appears on a specific page, how do I get that into the additional cookies body section as the system doesn’t seem to allow PHP or HTML only Scripts.

    Thank you
    Mr Scott Sibson

Viewing 1 replies (of 1 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @sibbo100,

    Thanks for using our plugins.

    Our plugin supports JavaScript tags in the GDPR settings page, but you can implement complex scripts based on the user preferences by using PHP functions. You can get more details about the available hooks and functions in the GDPR Cookie Compliance -> Help section.
    Please note this tasks might require some development input from your end.

    This is just and example, please align the code before use it!:

    add_action('wp_footer','gdpr_google_double_click_sample');
    function gdpr_google_double_click_sample() {
      if ( function_exists( 'gdpr_cookie_is_accepted' ) ) {
        if ( gdpr_cookie_is_accepted( 'advanced' ) ) {
          echo "GDPR third party ENABLED content";
        } else {
          echo "GDPR third party RESTRICTED content";
        }
      }
    }

    add_action( 'gdpr_force_reload', '__return_true' );

    Hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘DoubleClick Tracking Code and page specific tracking pixels’ is closed to new replies.