• Christian

    (@visualframeworks)


    Hi there,

    I need your help.
    For the GDPR I need to wrap the output code (header script) of ga itself like this:

    if ( is_allowed_cookie( ‘google-analytics’ ) {
    // Run the google analytics tracking code here.
    }

    Where can I do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Christian

    (@visualframeworks)

    Or like this:

    if ( window.is_allowed_cookie( ‘google-analytics’ ) ) {

    //then google analytics code here

    }

    Thread Starter Christian

    (@visualframeworks)

    Yeah, I managed it with javascript:gaOptout() in a smart way to use the opt-out cookie. THX.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to wrap The output code of ga’ is closed to new replies.