-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📚🐛 add docs and migrate nvmrc in functions to 20
- Loading branch information
1 parent
5a4f627
commit 3a457e0
Showing
8 changed files
with
82 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,63 @@ | ||
# unidentified-analytics | ||
# 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. | ||
|
||
## Example usage: | ||
|
||
**Shell script:** | ||
|
||
```bash | ||
# Choose a random namespace for your app | ||
app_namespace="mental-finger-difference-within" | ||
|
||
# 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/mental-finger-difference-within | ||
``` | ||
|
||
**Markdown:** | ||
|
||
```markdown | ||
// Load the tracking url as an image on any markdown document | ||
![Privacy friendly user statistics pixel](https://unidentifiedanalytics.web.app/touch/?namespace=anything-you-choose) | ||
|
||
// Load the tracking url as an image on any page | ||
<img style="display: none;" src="https://unidentifiedanalytics.web.app/touch/?namespace=anything-you-choose" /> | ||
|
||
// Stats at: https://unidentifiedanalytics.web.app/#/stats/anything-you-choose | ||
``` | ||
|
||
**Javascript:** | ||
|
||
```javascript | ||
// Choose a random namespace for your app | ||
const app_namespace="mental-finger-difference-within" | ||
|
||
// Call the endpoint | ||
await fetch( `https://unidentifiedanalytics.web.app/touch/?namespace=${ app_namespace }` ) | ||
|
||
// Stats at: https://unidentifiedanalytics.web.app/#/stats/mental-finger-difference-within | ||
``` | ||
|
||
**React:** | ||
|
||
```js | ||
import { useEffect } from 'react' | ||
|
||
useEffect( () => { | ||
const namespace = 'make-something-up' | ||
fetch( `https://unidentifiedanalytics.web.app/touch/?namespace=${namespace}`, { mode: 'no-cors' } ) | ||
}, [] ) | ||
`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters