diff --git a/api/event.js b/api/event.js index 88bc2543..6fa8f22a 100644 --- a/api/event.js +++ b/api/event.js @@ -17,7 +17,7 @@ export default async (request, context) => { if (ns) { const id = crypto.createHash('md5').update(`${context['ip']}${context['geo']['city']}`).digest('hex'); const ids = getStore('ids') - if (!ids.get(id)) ids.set(id, '') + if (!ids.get(id)) ids.set(id, id) const idVal = ids.get(id) url = `https://cdn.usefathom.com/?h=${encodeURIComponent(page)}&sid=CWSVCDJC&cid=${idVal}` } else {