Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

maxpaj/vue-keen-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-keen-tracking

Vue plugin built on keen-tracking.js.

Install

import VueKeen from "vue-keen-tracking"; const keenOptions = { projectId: "<KEEN_PROJECT_ID>", writeKey: "<KEEN_WRITE_KEY>" }; Vue.use(VueKeen, keenOptions); 

You can then access the KeenTracking object through this.$keen in any of your components/views.

Extend event properties

API reference

const user = await fetchUser(); this.$keen.extendEvents({ user }) 

Record an event

API reference

this.$keen.recordEvent("purchases", { item: "avocado" }); 

About

📈 Vue plugin for Keen.io tracking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published