Demo version of Google Embed API. Window.google.load is not a function

I follow the tutorial here: https://developers.google.com/analytics/devguides/reporting/embed/v1/devguide

I am sure I added Client Id and Javascript Origin correctly.

But the chart does not appear, and I get this error:

Uncaught TypeError: window.google.load is not a function

It seems like every time I run the execute() function

Anyone else run into this issue?

+5
source share
1 answer

After long throws and a turn, I finally got an answer, all I had to do was add

  <script type="text/javascript" src="https://www.google.com/jsapi"></script> 

to application.html.erb file

+20
source

All Articles