All Projects → vchaptsev → vue-yandex-metrika

vchaptsev / vue-yandex-metrika

Licence: MIT license
Vue plugin for Yandex Metrika

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-yandex-metrika

yametrikapy
Python library for Yandex Metrika API
Stars: ✭ 20 (-68.75%)
Mutual labels:  yandex, yandex-metrika
artefactory-connectors-kit
ACK is an E(T)L tool specialized in API data ingestion. It is accessible through a Command-Line Interface. The application allows you to easily extract, stream and load data (with minimum transformations), from the API source to the destination of your choice.
Stars: ✭ 34 (-46.87%)
Mutual labels:  yandex
docker-machine-driver-yandex
Yandex.Cloud driver for Docker Machine
Stars: ✭ 21 (-67.19%)
Mutual labels:  yandex
Yandex.Music.Api
Client Yandex.Music.Api for Yandex.Music
Stars: ✭ 53 (-17.19%)
Mutual labels:  yandex
robots-txt-parser
PHP class for parse all directives from robots.txt files according to specifications
Stars: ✭ 38 (-40.62%)
Mutual labels:  yandex
appmetrica-logsapi-loader
A tool for automatic data loading from AppMetrica LogsAPI into (local) ClickHouse
Stars: ✭ 18 (-71.87%)
Mutual labels:  yandex
django-sitemetrics
Reusable application for Django that offers easy integration with different site metrics service providers.
Stars: ✭ 41 (-35.94%)
Mutual labels:  yandex-metrika
safe-search
Sets the built-in adult content filter (most often: safe search) on Google, YouTube, Bing, Yahoo, DuckDuckGo, Startpage, Dogpile, Yandex, Vimeo, Reddit, Ecosia, Dailymotion, Qwant, and Patreon.
Stars: ✭ 16 (-75%)
Mutual labels:  yandex
yandex-dialogs-php-sdk
PHP-библиотека для облегчения работы с диалогами от Яндекс
Stars: ✭ 23 (-64.06%)
Mutual labels:  yandex
alice-renderer
Node.js библиотека для формирования ответов в навыках Яндекс Алисы.
Stars: ✭ 27 (-57.81%)
Mutual labels:  yandex
yandex-checkout-node
Node.js SDK for Yandex.Checkout (unofficial)
Stars: ✭ 64 (+0%)
Mutual labels:  yandex
YaSeeker
Yandex OSINT tool
Stars: ✭ 104 (+62.5%)
Mutual labels:  yandex
yandex-direct-api
PHP library for Yandex.Direct API v5 (abandoned)
Stars: ✭ 12 (-81.25%)
Mutual labels:  yandex
drupal 8 unset html head link
🤖 Module for unset any wrong HTML links (like rel="delete-form", rel="edit-form", etc.) from head on Drupal 8.x websites. This is trust way to grow up position in SERP Google, Yandex, etc.
Stars: ✭ 19 (-70.31%)
Mutual labels:  yandex
passport-yandex
Yandex authentication strategy for Passport and Node.js.
Stars: ✭ 19 (-70.31%)
Mutual labels:  yandex
yandex-disk-api
This library is built to use Yandex Disk API with PHP
Stars: ✭ 19 (-70.31%)
Mutual labels:  yandex
translate
A module grouping multiple translation APIs
Stars: ✭ 321 (+401.56%)
Mutual labels:  yandex
YandexAlgorithms
Lecture notes, Code with comments.
Stars: ✭ 30 (-53.12%)
Mutual labels:  yandex
js-new-features
Новые возможности JavaScript — ШРИ 2018
Stars: ✭ 19 (-70.31%)
Mutual labels:  yandex
mystem-scala
Morphological analyzer `mystem` (Russian language) wrapper for JVM languages
Stars: ✭ 21 (-67.19%)
Mutual labels:  yandex




Vue Yandex Metrika

vue-yandex-metrika allows you to send data about visited pages to Yandex Metrika.

Installation

Install with yarn:

$ yarn add vue-yandex-metrika

Install with npm:

$ npm install vue-yandex-metrika --save

Ways to use

Autotracking

Pass the VueRouter instance to the plugin and let it handle everything for you (Metrika API is also available):

// your main.js
import Vue from 'vue'
import VueRouter from 'vue-router'
import VueYandexMetrika from 'vue-yandex-metrika'                               

const router = new VueRouter({...}) // your routes

Vue.use(VueYandexMetrika, {
    id: XXXXXXXX,
    router: router,
    env: process.env.NODE_ENV
    // other options
})

Manual tracking

Works without router: Metrika API

// your main.js
import Vue from 'vue'
import VueYandexMetrika from 'vue-yandex-metrika'                               

Vue.use(VueYandexMetrika, {
    id: XXXXXXXX,
    env: process.env.NODE_ENV
    // other options
})

// your code
this.$metrika.hit(path)

Options:

Name Description Required Default
id Your tracking id True null
router Autotracking if the router is passed, otherwise: manual tracking False null
env API calls are performed only if env is "production" False development
scriptSrc Src of metrika script to use False https://mc.yandex.ru/metrika/tag.js
debug If env is not "production" and debug is true: API calls are replaced by console.log() False false
ignoreRoutes List of ignored routes names False []
skipSamePath Do not track a page visit if previous and next routes URLs match False true
options Original Yandex Metrika options False {clickmap:true, trackLinks:true, accurateTrackBounce:true}
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].