Skip to content

Commit

Permalink
📚 remove old /#/ links
Browse files Browse the repository at this point in the history
  • Loading branch information
actuallymentor committed Apr 3, 2024
1 parent d2230cb commit e82a024
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@ Useful for low-stakes analytics in hobby projects, from README.md files to comma

```bash
# Choose a random namespace for your app
app_namespace="mental-finger-difference-within"
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/mental-finger-difference-within
# 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/?namespace=anything-you-choose)
![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
<img style="display: none;" src="https://unidentifiedanalytics.web.app/touch/?namespace=anything-you-choose" />
<img style="display: none;" src="https://unidentifiedanalytics.web.app/touch/?make-something-up-anything-works" />

// Stats at: https://unidentifiedanalytics.web.app/#/stats/anything-you-choose
// Stats at: https://unidentifiedanalytics.web.app/stats/make-something-up-anything-works
```

**Javascript:**

```javascript
// Choose a random namespace for your app
const app_namespace="mental-finger-difference-within"
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/mental-finger-difference-within
// Stats at: https://unidentifiedanalytics.web.app/stats/make-something-up-anything-works
```

**React:**
Expand All @@ -57,7 +57,7 @@ await fetch( `https://unidentifiedanalytics.web.app/touch/?namespace=${ app_name
import { useEffect } from 'react'

useEffect( () => {
const namespace = 'make-something-up'
const namespace = 'make-something-up-anything-works'
fetch( `https://unidentifiedanalytics.web.app/touch/?namespace=${namespace}`, { mode: 'no-cors' } )
}, [] )
``

0 comments on commit e82a024

Please sign in to comment.