Google Analytics by Yoast
code error (2 posts)

  1. Dwenaus
    Posted 2 years ago #

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


  2. Dwenaus
    Posted 2 years 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

  • Google Analytics by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.