chore(docs): updated readme

This commit is contained in:
Timothy Stewart 2021-10-16 17:21:12 -05:00
parent b0a7423bdf
commit b08e18d9a2

View File

@ -8,8 +8,9 @@ It takes the same simple approach to a link page and hosts it within a NodeJS se
# 📍 Supported Links & Buttons
Check the [config](https://github.com/techno-tim/littlelink-server/blob/master/src/config.js) file for all supported buttons!
# 📈 Google Analytics Support
# 📈 Analytics Support
## Google Analytics
See [Getting Started with Analytics](https://support.google.com/analytics/answer/1008015?hl=en). After getting your GA Tracking Id, use your tracking Id as environment variable like `GA_TRACKING_ID=G-XXXXXXXXXX` (See the example below)
All buttons clicked will be tracked automatically if `GA_TRACKING_ID` exists.
@ -19,8 +20,7 @@ Sample event for YouTube button.
```javascript
window.gtag('event', 'youtube-button');
```
# 📈 Umami Analytics Support
## Umami
See [Adding a website & Collecting data](https://umami.is/docs/collect-data) page to add and generate your tracking code.