Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi, did anyone try the Analytics embed API?
https://developers.google.com/analytics/devguides/reporting/embed/v1/getting-started#overview

It looks great but I'm having trouble to run it. I tought it would be nice to show it in the backend via an Iframe. I guess I'm doing something wrong with client ID and authorisation. Any tips or good tutorials out there? The things i found were mostly outdated and the google ui changed in the meantime.

The google descriptions are are quite confusing too.
For all who are interested to integrate some analytics chart in the backend of our nice cms. Google relased a while ago the data studio https://datastudio.google.com.

There you can make your own reports and import them as iframe into your backend. I get it working yesterday at least in google chrome and edge. Firefox for some reason shows only a blank site.

Code: Select all
<cms:template title='Statistik' order='15'  icon='bar-chart'>

    <cms:editable name='stats' type='message'>
        <div class="embed-container">
        <iframe width="600" height="540" src="https://datastudio.google.com/embed/reporting/xxxxxx" frameborder="0" style="border:0" allowfullscreen>
        </iframe>
        </div>
        <style>
            .embed-container {
              position: relative;
              padding-bottom: 70%;
              height: 0;
              overflow: hidden;
              width: 100%;
              height: auto;
            }
            .embed-container iframe {
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
            }
        </style>
    </cms:editable>

</cms:template>
2 posts Page 1 of 1

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 1 guest