WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics for WordPress
code error (2 posts)

  1. Dwenaus
    Member
    Posted 1 year ago #

    line 600 of class-frontend.php is:
    . "'.$Purchase->country.'"; // Country
    but it should probably be :
    . "'" . $Purchase->country . "'"; // Country

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

  2. Dwenaus
    Member
    Posted 1 year ago #

    it's probably minor, but this will also fail in google analytics due to default for number_format outputting the thousand separator as comma which GA will interpret as a period. 1,234.56 will get interpreted as 1.23:
    number_format( $Purchase->total, 2 )

    Google analytics would prefer:
    number_format( $Purchase->total, 2, '.', '')

    who is using this to make thousand dollar purchases, probably not many, but still.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.