All Projects → egoist → Vue Ga

egoist / Vue Ga

Licence: mit
Google Analytics for Vue.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Ga

Googleanalyticsforxamarinforms
Google Analytics Plugin for Xamarin Forms
Stars: ✭ 65 (-53.9%)
Mutual labels:  google-analytics
Angular Gtag
🔖 Google Analytics gtag.js for Angular
Stars: ✭ 95 (-32.62%)
Mutual labels:  google-analytics
Hugo Nederburg Theme
Nederburg is a fast and secure hugo theme and is a port of the Tracks WP theme
Stars: ✭ 107 (-24.11%)
Mutual labels:  google-analytics
As3 Universal Analytics
Google Universal Analytics for AS3
Stars: ✭ 73 (-48.23%)
Mutual labels:  google-analytics
Google Analytics Plugin
Cordova Google Analytics Plugin for Android & iOS
Stars: ✭ 90 (-36.17%)
Mutual labels:  google-analytics
Nothing Private
Do you think you are safe using private browsing or incognito mode?. 😄 👿 This will prove that you're wrong.
Stars: ✭ 1,375 (+875.18%)
Mutual labels:  google-analytics
Google Measurement Php Client
PHP Client to send analytics data over the Google Measurement Protocol to Google Analytics
Stars: ✭ 52 (-63.12%)
Mutual labels:  google-analytics
Cloudflare Workers Async Google Analytics
☁️ The Cloudflare Workers implementation of an async Google Analytics
Stars: ✭ 135 (-4.26%)
Mutual labels:  google-analytics
Middleman Google Analytics
📈 A @middleman plugin to handle generating your Google Analytics tracking code.
Stars: ✭ 91 (-35.46%)
Mutual labels:  google-analytics
Crmint
Reliable data integration & processing for advertisers
Stars: ✭ 106 (-24.82%)
Mutual labels:  google-analytics
Meteor Iron Router Ga
Google analytics for Iron Router
Stars: ✭ 76 (-46.1%)
Mutual labels:  google-analytics
Newspaper
An aggregated newspaper app containing news from 10+ local news publishers in Hong Kong. Made with ❤
Stars: ✭ 82 (-41.84%)
Mutual labels:  google-analytics
Appmetrics.js
A small (< 1kb) library for measuring things in your web app and reporting the results to Google Analytics.
Stars: ✭ 1,383 (+880.85%)
Mutual labels:  google-analytics
React Router Ga
Google Analytics component for React Router
Stars: ✭ 66 (-53.19%)
Mutual labels:  google-analytics
React G Analytics
React google analytics with support for react-router
Stars: ✭ 116 (-17.73%)
Mutual labels:  google-analytics
Kindmetrics
Kind metrics analytics for your website
Stars: ✭ 57 (-59.57%)
Mutual labels:  google-analytics
Web Analytics
监测分析、异常监测、广告验证、访客唯一标识
Stars: ✭ 97 (-31.21%)
Mutual labels:  google-analytics
Laravel Analytics Event Tracking
Laravel package to easily send events to Google Analytics
Stars: ✭ 137 (-2.84%)
Mutual labels:  google-analytics
Curatedseotools
Best SEO Tools Stash
Stars: ✭ 128 (-9.22%)
Mutual labels:  google-analytics
Instantanalytics
DEPRECATED Instant Analytics brings full Google Analytics support to your Twig templates and automatic Craft Commerce integration with Google Enhanced Ecommerce.
Stars: ✭ 103 (-26.95%)
Mutual labels:  google-analytics

vue-ga

NPM version NPM downloads Build Status donate

Simple Google Analytics binding for Vue.js apps, 534 bytes gzipped.

Install

yarn add vue-ga

Usage

vue-router

// ./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

non vue-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')

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].