
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
vue-mouseflow
Advanced tools
📈 Vue.js plugin for Mouseflow tracking
npm install --save vue-mouseflow
VueMouseflow.install(Vue, options)
Vue
<Object>
: a Vue instancetracking_key
<String>
: The Mouseflow tracking key you want to useInstall the plugin using the Vue.use
method:
import Vue from 'vue';
import VueMouseflow from 'vue-mouseflow';
Vue.use(VueMouseflow, { tracking_key: 'your-tracking-key' });
VueMouseflow.push([commandName, argument1, argument2, …]);
This acts as a wrapper for the _mfq
object. Check https://js-api-docs.mouseflow.com/#the-_mfq-object for more information.
VueMouseflow.logRouteChange(route[, options])
route
<Object>
: a VueRouter route objectoptions
<Object>
:
includeRouteParams
<Boolean>
: Set to false to remove all user-entered URL params. Useful if there is sensitive data in the URL which you do not want to track. Defaults to true
.// router.js
import VueRouter from 'vue-router';
import VueMouseflow from 'vue-mouseflow';
const router = new VueRouter({
routes: [
/* some routes */
]
});
router.afterEach(to => {
VueMouseflow.logRouteChange(to, { includeRouteParams: false });
});
this.$mf
VueMouseflow
is also added to your Vue prototype when installed. The above two methods are exposed on the this.$mf
namespace.
This can be useful for event logging within components:
const MyApp = new Vue({
...,
methods: {
buttonPressed(evt) {
this.$mf.push('addedToCart', Date.now());
}
}
})
FAQs
Vue.js plugin to add Mouseflow tracking to your application
The npm package vue-mouseflow receives a total of 53 weekly downloads. As such, vue-mouseflow popularity was classified as not popular.
We found that vue-mouseflow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.