Bernard
Bernard

Reputation: 73

is there a node.js package to embed Google Analytics charts into a web page

I am building a Node.js Analytics dashboard that includes internally generated data, and would like to add Charts from our Google Analytics. 1/ What is the right Google Analytics API to do so 2/ Is there a node.js package to embed the chart itself (rather than retrieving the data from GA and then having to build the chart myself)?

Upvotes: 0

Views: 1460

Answers (3)

Pier-Luc Gendreau
Pier-Luc Gendreau

Reputation: 13814

While not specifically Node.js, this is now possible with client-side JavaScript and Google's Embed API. That page also has well documented tutorials for building a basic dashboard, interactive charts and more.

Upvotes: 1

M Schenkel
M Schenkel

Reputation: 6364

Check out EmbeddedAnalytics.

While not a node.js solution, we are a 3rd party solution (using the Core Reporting) designed specifically so that you can avoid the heavy lifting of "retrieving the data from GA and then having to build the chart myself" as you have said yourself.

The process is very simple.

  1. Grant us authorization to access your GA Data via the API.
  2. Design your chart (all kinds of formatting are available).
  3. Embed an <iframe> tag where the chart is to display.

Upvotes: 0

Greg
Greg

Reputation: 781

You'll want to use the Core Reporting API to pull data, and you could try Google Chart Tools for creating your graphs.

Upvotes: 0

Related Questions