# Displaying external analytics data in CloudCannon

**URL:** <https://community.cloudcannon.com/t/displaying-external-analytics-data-in-cloudcannon/655>\
**Category:** General\
**Tags:** analytics, tooling\
**Created:** [October 28, 2026, 9:06pm UTC](https://community.cloudcannon.com/t/displaying-external-analytics-data-in-cloudcannon/655 "2026-10-28T21:06:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Richardson](https://community.cloudcannon.com/user_avatar/community.cloudcannon.com/tom_richardson/32/194_2.png) [@Tom\_Richardson](https://community.cloudcannon.com/u/Tom_Richardson)\
**Post date:** [October 28, 2026, 9:06pm UTC](https://community.cloudcannon.com/t/displaying-external-analytics-data-in-cloudcannon/655/1 "2026-10-28T21:06:49Z")

</div>

I recently whipped up a demo for how to display analytics from an external source (like Google Analytics) inside of CloudCannon’s editing interface. The goal was that editors could see this data inside of CloudCannon and other team members with the site password could view it - without end-users visiting the site having access to it.

The demo is publicly available on GitHub [here](https://github.com/tomrcc/analytics-poc).

The README on that repo goes into detail, but at a high level:

- Two CloudCannon sites; one is an editing site (staging) and one is the production site (main)

- During the build process, fetch data from GA and save it into a JSON file

- On the editing site, we build an /analytics/ page with all of the data we’ve fetched turned into a nice dashboard for our editors

- On each individual page in the Visual Editor on the editing site, we can filter down the fetched GA data to per-page info, and display a toggle button for showing GA stats for a page

- On the production site, we don’t build the /analytics/ page, fetch the data, or display per-page analytics in the visual editor. You can control this behavior by looking for an env variable, and if not found, run the prod build rather than a build with all of this analytics stuff in it.

Happy to answer any questions. Also keen to hear if anyone else has built anything like this, or has any ideas for cool things to try build in future.

Tom

---

<div class="post-metadata">

**Author:** ![Rosemary\_Lynch](https://community.cloudcannon.com/user_avatar/community.cloudcannon.com/rosemary_lynch/32/242_2.png) [@Rosemary\_Lynch](https://community.cloudcannon.com/u/Rosemary_Lynch)\
**Post date:** [November 3, 2026, 4:17am UTC](https://community.cloudcannon.com/t/displaying-external-analytics-data-in-cloudcannon/655/2 "2026-11-03T04:17:41Z")

</div>

Very cool!
