1.0.0 • Published 4 years ago
vue-shynet v1.0.0
vue-shynet
A Vue.js plugin for Shynet, a self-hosted ethical analytics service.
...
This is technically just a glorified JavaScript file loader, but whatever.
Using
import { Shynet } from 'vue-shynet'
Vue.use(Shynet, 'your js file link here')
Once the plugin is registered you can call Vue.shynet.enableAnalytics()
wherever you need to load the file.
If you want to disable the script simply call Vue.shynet.disableAnalytics()
License
MIT