Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Vue plugin for Segment.io analytics.js

License

Notifications You must be signed in to change notification settings

Kapiche/vue-segment-analytics

Repository files navigation

downloads npm CI CII Best Practices

vue-segment-analytics

Vue plugin for Segment.io Analytics

Requirements

Vue ^2.0.0

TL;DR

npm install --save-dev vue-segment-analytics
import Vue from 'vue'
import VueSegmentAnalytics from 'vue-segment-analytics'

Vue.use(VueSegmentAnalytics, {
  id: 'XXXXX',
  router // Optional
})

🚀 Segment Vue Quickstart

Interested in writing analytics code once? With Segment, you can collect customer data from any source (web, mobile, server, CRM, etc.) and send it to over 250+ destinations (Google Analytics, Amplitude, Mixpanel, etc.) via the Segment dashboard. Follow the tailored guide for Vue to get setup.