-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor tracker into importable TS module (#143)
* Move makeRequest to helper fn * Add instrument.ts, make XHR requests * First attempt migrate to library * move body wait code into init script * Add autotrack pageviews * Remove unnecessary utils.ts * Build tracker as both module and loader script * Tag beta version v2.5.0-beta.1 * Remove prerender doc state check * Export types, add "autoTrackPateviews" init option * Add playwright-report to .gitignore * Add vitest + some initial unit tests * Add cleanup script for browser instrumentation * Generate coverage for tracker unit tests * Omit files from coverage * autoTrack test should use pushState * Prep for packaging * Add Access-Control-Allow: * to /collect for CORS access * Change API to use a global instance * Rename initialize to init * Document module API in readme * Loader should use public API * Disable Firefox from Playwright tests (for now) ...
- Loading branch information
1 parent
e2558aa
commit 0749c9c
Showing
22 changed files
with
2,464 additions
and
376 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,13 +1,15 @@ | ||
node_modules | ||
|
||
.cache | ||
.wrangler | ||
build | ||
dist | ||
public/build | ||
.env | ||
dist | ||
|
||
.cache | ||
.env | ||
.wrangler | ||
.dev.vars | ||
.turbo | ||
|
||
coverage | ||
.turbo | ||
playwright-report | ||
__screenshots__ |
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
Oops, something went wrong.