Skip to content

Commit

Permalink
mixpanel conflict resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jul 30, 2021
2 parents 085df34 + 26be887 commit d58d0c5
Show file tree
Hide file tree
Showing 6 changed files with 332 additions and 316 deletions.
18 changes: 10 additions & 8 deletions integrations/AdobeAnalytics/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class AdobeAnalytics {
this.timestampOption = config.timestampOption;
this.preferVisitorId = config.preferVisitorId;
this.rudderEventsToAdobeEvents = config.rudderEventsToAdobeEvents || [];
this.proxyNormalUrl = config.proxyNormalUrl;
this.proxyHeartbeatUrl = config.proxyHeartbeatUrl;
this.pageName = "";
this.name = "ADOBE_ANALYTICS";
utils.setConfig(config);
Expand All @@ -33,20 +35,20 @@ class AdobeAnalytics {
// update playhead value of a session
window.rudderHBPlayheads = {};
// load separately as heartbeat sdk is large and need not be required if this is off.
const heartbeatUrl =
this.proxyHeartbeatUrl ||
"https://cdn.rudderlabs.com/adobe-analytics-js/adobe-analytics-js-heartbeat.js";
const normalUrl =
this.proxyNormalUrl ||
"https://cdn.rudderlabs.com/adobe-analytics-js/adobe-analytics-js.js";
if (this.heartbeatTrackingServerUrl) {
ScriptLoader(
"adobe-analytics-heartbeat",
"https://cdn.rudderlabs.com/adobe-analytics-js/adobe-analytics-js-heartbeat.js"
);
ScriptLoader("adobe-analytics-heartbeat", heartbeatUrl);
this.setIntervalHandler = setInterval(
this.initAdobeAnalyticsClient.bind(this),
1000
);
} else {
ScriptLoader(
"adobe-analytics-heartbeat",
"https://cdn.rudderlabs.com/adobe-analytics-js/adobe-analytics-js.js"
);
ScriptLoader("adobe-analytics-heartbeat", normalUrl);
this.setIntervalHandler = setInterval(
this.initAdobeAnalyticsClient.bind(this),
1000
Expand Down
Loading

0 comments on commit d58d0c5

Please sign in to comment.