WordPress.org

Ready to get started?Download WordPress

Forums

Tracking Code
stripcslashes (2 posts)

  1. Klaus Schwarzkopf
    Member
    Posted 2 years ago #

    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']);
            }
  2. roibot
    Member
    Posted 2 years ago #

    Thanks, I too had noticed this plug-in breaks Piwik tracking due to slashes. This fix should do it. Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic