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

Commit

Permalink
fix: add analytics methods (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
wallies authored Oct 27, 2021
1 parent 14cbb8e commit d6f7c8a
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions dist/vue-segment-analytics.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-segment-analytics v0.4.3
* vue-segment-analytics v0.5.1
* (c) 2021 Ryan Stuart
* Released under the MIT License.
*/
Expand Down Expand Up @@ -38,7 +38,28 @@
analytics.invoked = true;

// A list of the methods in Analytics.js to stub.
analytics.methods = ['trackSubmit', 'trackClick', 'trackLink', 'trackForm', 'pageview', 'identify', 'reset', 'group', 'track', 'ready', 'alias', 'debug', 'page', 'once', 'off', 'on'];
analytics.methods = [
'trackSubmit',
'trackClick',
'trackLink',
'trackForm',
'pageview',
'identify',
'reset',
'group',
'track',
'ready',
'alias',
'debug',
'page',
'once',
'off',
'on',
'addSourceMiddleware',
'addIntegrationMiddleware',
'setAnonymousId',
'addDestinationMiddleware'
];

// Define a factory to create stubs. These are placeholders
// for methods in Analytics.js so that you never have to wait
Expand All @@ -60,7 +81,7 @@
};

// Add a version to keep track of what's in the wild.
analytics.SNIPPET_VERSION = '4.1.0';
analytics.SNIPPET_VERSION = '4.13.2';

// For each of our methods, generate a queueing stub.
var _iteratorNormalCompletion = true;
Expand Down Expand Up @@ -92,7 +113,7 @@
var source = config.cdnHost + '/analytics.js/v1/' + config.id + '/analytics.min.js';
loadScript__default['default'](source, function (error, script) {
if (error) {
console.warn('Ops! Is not possible to load Segment Analytics script');
console.warn('Oops! Is not possible to load Segment Analytics script');
return;
}

Expand Down

0 comments on commit d6f7c8a

Please sign in to comment.