Forum Replies Created

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

    (@rcaboni)

    Unfortunately this beautiful plug-in integrate the 3th party script with an ajax call that don’t execute well the Albacross script I need to run:

    <script type=”text/javascript”>
    (function(a,l,b,c,r,s){
    _nQc=c,r=a.createElement(l),s=a.getElementsByTagName(l)[0];
    r.async=1;
    r.src=l.src=(“https:”==a.location.protocol?”https://&#8221;:”http://&#8221;)+b;
    s.parentNode.insertBefore(r,s);})
    (document,”script”,”serve.albacross.com/track.js”,”XXXXXXX”);
    </script>
    I obfuscated the Albacross Client ID with XXXXXX for my privacy.

    I solved changed the footer.php checking the cookie for third_party_scripts and output the script code manually:
    <?php
    $gdpr_default_content = new Moove_GDPR_Content();
    $option_name = $gdpr_default_content->moove_gdpr_get_option_name();
    $modal_options = get_option( $option_name );
    $gdpr_cookie = json_decode(stripslashes($_COOKIE[“moove_gdpr_popup”]),true);
    $third_party_scripts = isset( $modal_options[‘moove_gdpr_third_party_body_scripts’] ) && $modal_options[‘moove_gdpr_third_party_body_scripts’] ? maybe_unserialize( $modal_options[‘moove_gdpr_third_party_body_scripts’] ) : ”;
    if ($gdpr_cookie[“thirdparty”]==1 && $third_party_scripts) {
    echo $third_party_scripts;
    }

    ?>

    Thread Starter rcaboni

    (@rcaboni)

    Hi @vovi,
    I’m not using Google Analytics in 3th Part Cookies but another service.
    I need to check the code in View-Source to see if it correct, my problem is the service feel like it not received the call with from the script.

    I tried to put the script code in HEADER,BODY or FOOTER, but in every case i never find it in the source page.
    I saved the whole page locally and it looking for in all page files (html,js,etc.) , but i never find my script.

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