🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

vue-multianalytics

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-multianalytics - npm Package Compare versions

Comparing version

to
1.3.5

2

package.json
{
"name": "vue-multianalytics",
"version": "1.3.3",
"version": "1.3.5",
"description": "A vue multianalytics tool",

@@ -5,0 +5,0 @@ "main": "./dist/vue-multianalytics.min.js",

@@ -48,3 +48,3 @@

let mixpanelConfig = {
tracker: 'YOUR_TRACKER'
token: 'YOUR_TOKEN'
}

@@ -96,3 +96,3 @@

let mixpanelConfig = {
tracker: 'YOUR_TRACKER'
token: 'YOUR_TOKEN'
}

@@ -323,3 +323,3 @@

```javascript
tracker: 'YOUR_TRACKER'
token: 'YOUR_TOKEN'
config: {} // Initial mixpanel config

@@ -350,5 +350,5 @@ debug: true // Whether or not display console logs debugs (optional)

- ~~Demo~~ 👍
- Further integration with mixpanel
- New events: registerSuperproperties, alias, timedEvents
- New modules: segment, appboy, kissmetrics?
- ~~Further integration with mixpanel~~ 👍
- New events: ~~registerSuperproperties~~, ~~alias~~, timedEvents
- New modules: ~~segment~~, appboy, kissmetrics?
- Tests

@@ -67,6 +67,4 @@ import AnalyticsPlugin from './AnalyticsPlugin'

*
* @param Vue - The Vue instance
* @param vueRouter - The Vue router instance to attach guard
* @param {string[]} ignoredViews - An array of route name to ignore
*
* @param {any} Vue - The Vue instance
* @param {any} routing - an object with some properties to be used by the vueRouterGuard. Possible params are 'vueRouter', 'ignoredView', 'preferredProperty', 'ignoredModules'
* @returns {string[]} The ignored routes names formalized.

@@ -73,0 +71,0 @@ */

@@ -34,4 +34,4 @@ import { MODULE_SEGMENT } from '../analyticsTypes'

/**
* https://mixpanel.com/help/reference/javascript#sending-events
* Dispatch a view analytics event
* https://segment.com/docs/sources/website/analytics.js/#page
* Dispatch a page event
*

@@ -52,3 +52,3 @@ * params object should contain

* Dispatch a tracking analytics event
* https://developers.google.com/analytics/devguides/collection/analyticsjs/events
* https://segment.com/docs/sources/website/analytics.js/#track
*

@@ -72,2 +72,8 @@ * params object should contain

/**
* associate your users and their actions to a recognizable userId
* https://segment.com/docs/sources/website/analytics.js/#identify
*
* @param {any} properties - traits of your user. If you specify a properties.userId, then a userId will be set
*/
setUserProperties(properties) {

@@ -87,2 +93,7 @@ try {

/**
* Define a property that will be sent across all the events
*
* @param {any} properties
*/
setSuperProperties (properties) {

@@ -92,2 +103,10 @@ this.superProperties = properties

/**
* Alias is necessary for properly implementing KISSmetrics and Mixpanel.
* https://segment.com/docs/sources/website/analytics.js/#alias
* Note: Aliasing is generally handled automatically when you identify a user
*
* @param {string} alias
*/
setAlias(alias) {

@@ -94,0 +113,0 @@ try {