• Resolved Jo4nny8

    (@jo4nny8)


    Im using pixelyoursite plugin for facebook pixel integration on nearly 60 sites. They’ve just released a filter ‘pys_disable_by_gdpr’ (return true to disable the firing event)

    I need some help with integrating this into the plugin. Is there something inside this plugin I can hook into (either by checking the enable cookies slider is checked or not) or a filter you guys have where I can run a conditional

    Any help is much appreciated

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

    (@gasparnemes)

    Hi There,

    Thanks for your comments.

    We have implemented hooks to implement custom scripts, by php based on the user preferences, check the hooks below:

    HOOK to GDPR custom 3RD-PARTY script by php – HEAD

    add_action('moove_gdpr_third_party_header_assets','moove_gdpr_third_party_header_assets');
    function moove_gdpr_third_party_header_assets( $scripts ) {
    	$scripts .= '<script>console.log(“third-party-head”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom 3RD-PARTY script by php – BODY

    add_action('moove_gdpr_third_party_body_assets','moove_gdpr_third_party_body_assets');
    function moove_gdpr_third_party_body_assets( $scripts ) {
    	$scripts .= '<script>console.log(“third-party-body”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom 3RD-PARTY script by php – FOOTER

    add_action('moove_gdpr_third_party_footer_assets','moove_gdpr_third_party_footer_assets');
    function moove_gdpr_third_party_footer_assets( $scripts ) {
    	$scripts .= '<script>console.log(“third-party-footer”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom ADVANCED-PARTY script by php – HEAD

    add_action('moove_gdpr_advanced_cookies_header_assets','moove_gdpr_advanced_cookies_header_assets');
    function moove_gdpr_advanced_cookies_header_assets( $scripts ) {
    	$scripts .= '<script>console.log(“advanced-head”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom ADVANCED-PARTY script by php – BODY

    add_action('moove_gdpr_advanced_cookies_body_assets','moove_gdpr_advanced_cookies_body_assets');
    function moove_gdpr_advanced_cookies_body_assets( $scripts ) {
    	$scripts .= '<script>console.log(“advanced-body”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom ADVANCED-PARTY script by php – FOOTER

    add_action('moove_gdpr_advanced_cookies_footer_assets','moove_gdpr_advanced_cookies_footer_assets');
    function moove_gdpr_advanced_cookies_footer_assets( $scripts ) {
    	$scripts .= '<script>console.log(“advanced-footer”);</script>';
    	return $scripts;
    }

    You can test it with the “pixelyoursite” plugin, but because our plugin loads the script using Javascript and AJAX, I’m not sure if this will work for you. You have to confirm this with your developer, and if is not working, my suggestion is to remove the “pixelyoursite” plugin, and add the Facebook pixel tracking code by javascript.

    I hope this helps.

    Same issues here, did you get it working and if so, show an example what you placed where?
    It’s probably simple but I am lost 🙂

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

The topic ‘Integration With Pixelyoursite plugin’ is closed to new replies.