Title: Google API Console Error
Last modified: June 17, 2019

---

# Google API Console Error

 *  [jmtmurphey](https://wordpress.org/support/users/jmtmurphey/)
 * (@jmtmurphey)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/google-api-console-error-2/)
 * We get the following console error when editing a post on ur news site. If I 
   turn off Seriously Simple Stats, the error goes a way. It causes the edit to 
   be very slow.
 * VM674 post.php:557 Uncaught ReferenceError: google is not defined
    at VM674 post.
   php:557 (anonymous) @ VM674 post.php:557 VM675 post.php:596 Uncaught ReferenceError:
   google is not defined at VM675 post.php:596
 * Below is the code where it errors out.
 *  // Set a callback to run when the Google Visualization API is loaded
    google.
   setOnLoadCallback(draw_chart_5d07e7e0daa08_1116);
 *  // Draw chart using supplied data
    function draw_chart_5d07e7e0daa08_1116() {
 *  // Create the data table
    var data = new google.visualization.DataTable(); data.
   addColumn(‘string’, ‘Sources’); data.addColumn(‘number’, ‘Listens’); data.addRows([[‘
   Audio player’,28,], [‘Other’,8,], [‘iTunes’,30,], [‘Direct download’,1,], ]);
 *  // Set chart options
    var options = { title: ”, width: ‘100%’, height: ‘500’,
   is3D: true , };
 *  // Instantiate and draw the chart
    if( jQuery( ‘#’+’listening-sources’ ).length
   > 0 ){ var chart = new google.visualization.PieChart( document.getElementById(‘
   listening-sources’ ) ); chart.draw( data, options ); } // chart.draw( data, google.
   charts.Line.convertOptions(options) ); }

The topic ‘Google API Console Error’ is closed to new replies.

 * ![](https://ps.w.org/seriously-simple-stats/assets/icon-256x256.png?rev=1286945)
 * [Seriously Simple Stats](https://wordpress.org/plugins/seriously-simple-stats/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seriously-simple-stats/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seriously-simple-stats/)
 * [Active Topics](https://wordpress.org/support/plugin/seriously-simple-stats/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seriously-simple-stats/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seriously-simple-stats/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jmtmurphey](https://wordpress.org/support/users/jmtmurphey/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/google-api-console-error-2/)
 * Status: not resolved