preact-hn
preact-hn copied to clipboard
Tracking
https://github.com/lukeed/ganalytics/blob/master/src/index.js
- Modify to use per-browser builds
- Use Object.assign since it's polyfilled for fallbacks.
The library now ships with Object.assign
👍
Nice! Will try to take a look this week.
Work ongoing: https://github.com/kristoferbaxter/preact-hn/tree/typescript
Was a lack of something keeping you from using it directly?
https://github.com/kristoferbaxter/preact-hn/blob/typescript/src/core/analytics.ts
Three items –
- Wanted to add some type safety
- Use Browser based builds to check DNT per platform
- Leverage URL/URLSearchParams directly (since they're polyfilled for devices without support).