Tracker
this is a javascript error tracker
Install / Use
/learn @victor0210/TrackerREADME
Tracker.js
tracker.js is a samll component for uploading front-end-error.
Usage
First import tracker.js to head
<head>
<script src="tracker.js" type="text/javascript"></script>
</head>
Then init tracker instance in the front of all script
<script>
ErrorTracker.init(opts);
</script>
Options
Options is a json object with these params configuration
params | type | default | description ---- | --- | --- | --- report_url | String | null | report request server url method | String | post | report request method headers | Object | { 'Content-Type':'application/json' } | request headers callbackSuccess | Function | null | callback after upload success callbackFailed | Function | null | callback after upload fail
Enjoy
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tracker.js</title>
<script src="tracker.js" type="text/javascript"></script>
</head>
<body>
<script>
ErrorTracker.init({
report_url: 'http://www.abc.com'
});
var f = window.testErrorTracker();
</script>
</body>
</html>
Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.1kCommit, push, and open a PR
