Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actuallymentor/unidentified-analytics
https://github.com/actuallymentor/unidentified-analytics
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/actuallymentor/unidentified-analytics
- Owner: actuallymentor
- License: mit
- Created: 2023-02-07T19:32:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T14:34:39.000Z (7 months ago)
- Last Synced: 2024-04-14T23:01:27.567Z (7 months ago)
- Language: JavaScript
- Size: 196 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unidentified Analytics
The most basic tracking you have ever seen:
- tracks amount of times a namespace was called and displays hits per ip address
- no cookies, no sessions, no user tracking
- no account creation, no login, no password> `[GET]` the endpoint `/touch/?namespace=ANYTHING`, and then see how many times and from how many ips that namespace was `[GET]` called.
Useful for low-stakes analytics in hobby projects, from README.md files to command lines to webapps.
[Click here to open Unidentified Analytics](https://unidentifiedanalytics.web.app/).
## Example usage:
**Shell script:**
```bash
# Choose a random namespace for your app
app_namespace="make-something-up-anything-works"# Call the endpoint
curl "https://unidentifiedanalytics.web.app/touch/?namespace=$app_namespace"# OR call the endpoint silently and in the background
nohup curl "https://unidentifiedanalytics.web.app/touch/?namespace=$app_namespace" > /dev/null 2>&1# Stats at: https://unidentifiedanalytics.web.app/stats/make-something-up-anything-works
```**Markdown:**
```markdown
// Load the tracking url as an image on any markdown document
![Privacy friendly user statistics pixel](https://unidentifiedanalytics.web.app/touch/?make-something-up-anything-works)// Load the tracking url as an image on any page
// Stats at: https://unidentifiedanalytics.web.app/stats/make-something-up-anything-works
```**Javascript:**
```javascript
// Choose a random namespace for your app
const app_namespace="make-something-up-anything-works"// Call the endpoint
await fetch( `https://unidentifiedanalytics.web.app/touch/?namespace=${ app_namespace }` )// Stats at: https://unidentifiedanalytics.web.app/stats/make-something-up-anything-works
```**React:**
```js
import { useEffect } from 'react'useEffect( () => {
const namespace = 'make-something-up-anything-works'
fetch( `https://unidentifiedanalytics.web.app/touch/?namespace=${namespace}`, { mode: 'no-cors' } )
}, [] )
``