Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-rudder committed May 14, 2020
1 parent 3dbe7ea commit f30d8a9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
8 changes: 8 additions & 0 deletions analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,15 @@ class Analytics {
let methodName = event[0];
event.shift();

// convert common names to sdk identified name
if (Object.keys(event[0].message.integrations).length > 0) {
tranformToRudderNames(event[0].message.integrations);
}

// if not specified at event level, All: true is default
var clientSuppliedIntegrations = event[0].message.integrations;



// get intersection between config plane native enabled destinations
// (which were able to successfully load on the page) vs user supplied integrations
Expand Down
9 changes: 8 additions & 1 deletion dist/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ var rudderanalytics = (function (exports) {
"VWO": "VWO"
};

// from client native integration name to server identified display name
var clientToServerNames = {
"All": "All",
"GA": "Google Analytics",
Expand Down Expand Up @@ -10645,7 +10646,13 @@ var rudderanalytics = (function (exports) {

object.toBeProcessedByIntegrationArray.forEach(function (event) {
var methodName = event[0];
event.shift();
event.shift(); // convert common names to sdk identified name

if (Object.keys(event[0].message.integrations).length > 0) {
tranformToRudderNames(event[0].message.integrations);
} // if not specified at event level, All: true is default


var clientSuppliedIntegrations = event[0].message.integrations; // get intersection between config plane native enabled destinations
// (which were able to successfully load on the page) vs user supplied integrations

Expand Down
2 changes: 1 addition & 1 deletion dist/rudder-analytics.min.js

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion tests/html/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ var rudderanalytics = (function (exports) {
"VWO": "VWO"
};

// from client native integration name to server identified display name
var clientToServerNames = {
"All": "All",
"GA": "Google Analytics",
Expand Down Expand Up @@ -10645,7 +10646,13 @@ var rudderanalytics = (function (exports) {

object.toBeProcessedByIntegrationArray.forEach(function (event) {
var methodName = event[0];
event.shift();
event.shift(); // convert common names to sdk identified name

if (Object.keys(event[0].message.integrations).length > 0) {
tranformToRudderNames(event[0].message.integrations);
} // if not specified at event level, All: true is default


var clientSuppliedIntegrations = event[0].message.integrations; // get intersection between config plane native enabled destinations
// (which were able to successfully load on the page) vs user supplied integrations

Expand Down

0 comments on commit f30d8a9

Please sign in to comment.