• class-frontend.php doesn’t take into account names with apostrophes when building the javascript to output to the header. These names cause javascript errors and then obviously aren’t recorded in the analytics.

    The easiest fix is to change the line in str_clean to do a quick check and replace for apostrophes and remove them e.g.

    Line: 119 changes to:
    return remove_accents( str_replace( '---', '-', str_replace( ' ', '-', str_replace( "'", '', strtolower( html_entity_decode( $val ) ) ) ) ) );

    http://wordpress.org/plugins/google-analytics-for-wordpress/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cv_authorname output doesn't check for apostrophes in names’ is closed to new replies.