Support » Plugin: Tracking Code » [Plugin: Tracking Code] stripcslashes

  • Klaus Schwarzkopf

    (@klaus-schwarzkopf)


    add stripcslashes to the plugin Trackin Code http://wordpress.org/extend/plugins/tracking-code/

    function wpHead(){
                $data = get_option('tracking_code');
                if( isset( $data['tracking_head']['enable'] ) )
                    echo stripcslashes($data['tracking_head']['code']);
            }
    
            function wpFooter(){
                $data = get_option('tracking_code');
                if( isset( $data['tracking_footer']['enable'] ) )
                    echo stripcslashes($data['tracking_footer']['code']);
            }
Viewing 1 replies (of 1 total)
  • Thanks, I too had noticed this plug-in breaks Piwik tracking due to slashes. This fix should do it. Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Tracking Code] stripcslashes’ is closed to new replies.