Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integrations/madkudu/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var integration = require('@segment/analytics.js-integration');
* UMD?
*/

var umd = typeof window.define === 'function' && window.define.amd;
var umd = typeof window.define === 'function' && window.define.amd && window.require;

/**
* Expose `Madkudu` integration.
Expand Down
2 changes: 1 addition & 1 deletion integrations/madkudu/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@segment/analytics.js-integration-madkudu",
"description": "The Madkudu analytics.js integration.",
"version": "2.0.1",
"version": "2.0.2",
"keywords": [
"analytics.js",
"analytics.js-integration",
Expand Down
5 changes: 4 additions & 1 deletion integrations/pinterest-tag/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ Pinterest.prototype.createPropertyMapping = function() {
order_id: 'order_id',
coupon: 'coupon',
value: 'value',
currency: 'currency'
currency: 'currency',
messageId: 'event_id'
};

// This is a second map to allow us to loop over specific potentially-nested properties.
Expand All @@ -140,6 +141,8 @@ Pinterest.prototype.createPropertyMapping = function() {

Pinterest.prototype.generatePropertiesObject = function(track) {
// Generate the properties object to send with the call.
console.log({"segmentEvent": segmentEvent, "pinterestEvent": pinterestEvent, "pinterestObject": pinterestObject});

var pinterestProps = {};
var trackValue;
for (var prop in this.propertyMap) {
Expand Down
2 changes: 1 addition & 1 deletion integrations/pinterest-tag/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@segment/analytics.js-integration-pinterest-tag",
"description": "The Pinterest Tag analytics.js integration.",
"version": "1.2.3",
"version": "1.2.4",
"keywords": [
"analytics.js",
"analytics.js-integration",
Expand Down
17 changes: 13 additions & 4 deletions integrations/walkme/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WalkMe.prototype.initialize = function() {

var env = (this.options.environment && this.options.environment.toLowerCase());

if (!env || env == "\/" || env == "\/production") {
if (env === "/" || env === "/production") {
env = "";
}

Expand All @@ -67,16 +67,25 @@ WalkMe.prototype.initialize = function() {
if (this.options.integrityHash) {
sriSuffix = 'private_';
}

var bucket = (this.options.customDirectory) ? this.options.customDirectory : 'users';
var url = 'https://cdn.walkme.com/' + bucket + '/' + walkMeSystemId + '/' + env + '/walkme_' + sriSuffix + walkMeSystemId + '_https.js';

this.load({

var payload = {
url,
hash: this.options.integrityHash
});
};

this.initializeTester(payload);
this.load(payload);
};

/**
* Used for testing initialization
*/
WalkMe.prototype.initializeTester = function () {};

/**
* Has the WalkMe library been loaded yet?
*
Expand Down
2 changes: 1 addition & 1 deletion integrations/walkme/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@walkme/analytics.js-integration-walkme",
"description": "The WalkMe analytics.js integration.",
"version": "1.1.0",
"version": "1.2.1",
"keywords": [
"analytics.js",
"analytics.js-integration",
Expand Down
2 changes: 1 addition & 1 deletion integrations/walkme/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,4 @@ describe('WalkMe', function() {
}).timeout(10000);
});
});
});
});