site-vigil-visitors 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/bin/init.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ export function App() {
|
|
|
34
34
|
return (
|
|
35
35
|
<Tracking
|
|
36
36
|
siteId="my-site"
|
|
37
|
-
endpoint="https://
|
|
37
|
+
endpoint="https://t.site-vigil.com"
|
|
38
38
|
/>
|
|
39
39
|
)
|
|
40
40
|
}
|
|
@@ -47,7 +47,7 @@ import { createTracker } from 'site-vigil-visitors'
|
|
|
47
47
|
|
|
48
48
|
const tracker = createTracker({
|
|
49
49
|
siteId: 'my-site',
|
|
50
|
-
endpoint: 'https://
|
|
50
|
+
endpoint: 'https://t.site-vigil.com',
|
|
51
51
|
})
|
|
52
52
|
|
|
53
53
|
tracker.start()
|
|
@@ -60,7 +60,7 @@ import { createTracker } from 'site-vigil-visitors'
|
|
|
60
60
|
|
|
61
61
|
const tracker = createTracker({
|
|
62
62
|
siteId: 'my-site',
|
|
63
|
-
endpoint: 'https://
|
|
63
|
+
endpoint: 'https://t.site-vigil.com',
|
|
64
64
|
})
|
|
65
65
|
|
|
66
66
|
tracker.start()
|
|
@@ -77,7 +77,7 @@ export function App() {
|
|
|
77
77
|
<>
|
|
78
78
|
<Tracking
|
|
79
79
|
siteId="my-site"
|
|
80
|
-
endpoint="https://
|
|
80
|
+
endpoint="https://t.site-vigil.com"
|
|
81
81
|
/>
|
|
82
82
|
<main>Hello world</main>
|
|
83
83
|
</>
|
|
@@ -97,7 +97,7 @@ export default function App() {
|
|
|
97
97
|
<div>
|
|
98
98
|
<Tracking
|
|
99
99
|
siteId="demo-site"
|
|
100
|
-
endpoint="https://
|
|
100
|
+
endpoint="https://t.site-vigil.com"
|
|
101
101
|
/>
|
|
102
102
|
|
|
103
103
|
<h1>Visit Tracker Demo</h1>
|
|
@@ -120,7 +120,7 @@ import { createTracker } from 'site-vigil-visitors'
|
|
|
120
120
|
|
|
121
121
|
const tracker = createTracker({
|
|
122
122
|
siteId: 'demo-site',
|
|
123
|
-
endpoint: 'https://
|
|
123
|
+
endpoint: 'https://t.site-vigil.com',
|
|
124
124
|
})
|
|
125
125
|
|
|
126
126
|
tracker.trackEvent('button_click', { button: 'hero-cta' })
|
|
@@ -139,7 +139,7 @@ export default function TrackingClient() {
|
|
|
139
139
|
return (
|
|
140
140
|
<Tracking
|
|
141
141
|
siteId="next-app"
|
|
142
|
-
endpoint="https://
|
|
142
|
+
endpoint="https://t.site-vigil.com"
|
|
143
143
|
/>
|
|
144
144
|
)
|
|
145
145
|
}
|
|
@@ -155,7 +155,7 @@ Then include it in your app layout or page.
|
|
|
155
155
|
|
|
156
156
|
const tracker = createTracker({
|
|
157
157
|
siteId: 'marketing-site',
|
|
158
|
-
endpoint: 'https://
|
|
158
|
+
endpoint: 'https://t.site-vigil.com',
|
|
159
159
|
})
|
|
160
160
|
|
|
161
161
|
tracker.start()
|
package/bin/init.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { createInterface } from 'node:readline'
|
|
|
3
3
|
import { readFile, writeFile, access } from 'node:fs/promises'
|
|
4
4
|
import { join } from 'node:path'
|
|
5
5
|
|
|
6
|
-
const ENDPOINT = 'https://
|
|
6
|
+
const ENDPOINT = 'https://t.site-vigil.com'
|
|
7
7
|
|
|
8
8
|
const CANDIDATES = [
|
|
9
9
|
'src/App.tsx',
|
|
@@ -111,7 +111,7 @@ Done! Added <Tracking /> to ${found.rel}.
|
|
|
111
111
|
|
|
112
112
|
To verify:
|
|
113
113
|
1. Start your dev server
|
|
114
|
-
2. Open DevTools → Network, filter for "
|
|
114
|
+
2. Open DevTools → Network, filter for "t.site-vigil.com"
|
|
115
115
|
3. Reload — you should see a POST with status 200
|
|
116
116
|
|
|
117
117
|
Note: make sure "${siteId}" is registered in your Supabase websites table (tracking_id column).
|