vue-multianalytics
Advanced tools
Comparing version
{ | ||
"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 { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
340571
0.2%9759
0.16%