
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Simple Google Analytics binding for Vue.js apps, 534 bytes gzipped.
yarn add vue-ga
// ./router/index.js
import VueRouter from 'vue-router'
import ga from 'vue-ga'
Vue.use(VueRouter)
const router = new VueRouter()
ga(router, 'UA-XXXXX-Y')
export default router
It works with all SPA, even in non-Vue apps, just invoke the collect
function after route changes, for example:
ga(collect => {
// when hash changes
window.onhashchange = () => {
collect(location.pathname + location.hash)
}
}, 'UA-XXXXX-Y')
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
vue-ga © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin
FAQs
Google Analytics for Vue.js
The npm package vue-ga receives a total of 79 weekly downloads. As such, vue-ga popularity was classified as not popular.
We found that vue-ga demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.