Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rymcu/rymcu-tracing
rymcu custom buried point project, copy from https://github.com/M-cheng-web/web-tracing
https://github.com/rymcu/rymcu-tracing
Last synced: 8 days ago
JSON representation
rymcu custom buried point project, copy from https://github.com/M-cheng-web/web-tracing
- Host: GitHub
- URL: https://github.com/rymcu/rymcu-tracing
- Owner: rymcu
- License: mit
- Created: 2024-02-23T05:44:33.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-07T08:56:23.000Z (8 months ago)
- Last Synced: 2024-05-21T02:18:15.865Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.2 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rymcu-tracing
copy from https://github.com/M-cheng-web/web-tracing
# Why?
summary rymcu website self's pv
# How to use?
- clone
```bash
git clone [email protected]:rymcu/rymcu-tracing.git
```
- build
```bash
yarn && yarn build
```
- copy dist folder to your project
- see template `index.html`
```html
window.onload = function () {
var script = document.createElement("script");
// change this import
script.src = "../dist/@rymcu/tracing/umd/index.js";
script.onload = function () {
if (window.RYMCUTracing) {
window.RYMCUTracing.run({
// request to `dsn/pv`
dsn: "https://rymcu.com/tracing",
// validate params
appName: "rymcu_website",
appCode: "rymcu_website",
sdkID: "12bebce2-3194-45ff-93e7-02237385c3a4",
debug: true,
// disable
disablePV: false,
disablePerformance: true,
disableError: true,
disableEvent: true,
});
}
};
document.head.appendChild(script);
};
```
- if you want to publish
after build the dist fold will create `package.json`,then you can change the package.json's name and version, then publish to npm