# Adding Analytics to your app

**URL:** <https://forums.knack.com/t/adding-analytics-to-your-app/16095>\
**Category:** API & Custom Code\
**Created:** [April 25, 2024, 7:00am UTC](https://forums.knack.com/t/adding-analytics-to-your-app/16095 "2024-04-25T07:00:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Callum.Boase](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/callum.boase/32/5729_2.png) [@Callum.Boase](https://forums.knack.com/u/Callum.Boase)\
**Post date:** [April 25, 2024, 7:00am UTC](https://forums.knack.com/t/adding-analytics-to-your-app/16095/1 "2024-04-25T07:00:12Z")

</div>

In this video series, we show how to add analytics to a Knack app using a tiny bit of custom-code, a [Make.com](http://Make.com) scenario, Google Sheets and Google Looker Studio.

Why use this method?

I’ve found that Google Analytics (& similar) does not play well with Knack because:

- The code snippets provided by the software don’t register individual page views
- Knack app URLs are not human-readable

Instead of customising Google analytics to work with Knack (which can get VERY complicated) I developed this alternative solution that is simple but effective. It can be easily customised to your needs.

**Prerequisites**

- A Knack app
- A free [Make.com](http://Make.com) account
- A google account (with access to Google Sheets and Google Looker Studio)

Video 1: recording page view data to Google sheets

[![](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/e/e8a0d79c0cd9f6f8372a31533e96f25cb4feea27.jpeg "Analytics for your Knack app | 1 of 2: Saving page view data!") ](https://www.youtube.com/watch?v=IpmR-LnLEFc)

Code to copy-paste into your Knack JS area: [public-knack-snippets/analytics-for-knack-app/code-for-knack-js-area.js at main · CallumBoase/public-knack-snippets · GitHub](https://github.com/CallumBoase/public-knack-snippets/blob/main/analytics-for-knack-app/code-for-knack-js-area.js)

Video 2 coming soon.
