Skip to content

Commit

Permalink
resolved conflicts, added Quatum metric integration
Browse files Browse the repository at this point in the history
  • Loading branch information
dalyd14 authored and arnab-p committed Sep 30, 2021
1 parent b093be3 commit ab88c9d
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 62 deletions.
47 changes: 47 additions & 0 deletions integrations/QuantumMetric/browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import logger from "../../utils/logUtil";
import ScriptLoader from "../ScriptLoader";

class QuantumMetric {
constructor(config) {
this.siteId = config.siteId; // 1549611
this.name = "QUANTUMMETRIC";
this._ready = false;
}

init() {
if (window.QuantumMetricAPI) {
return
}

ScriptLoader(
'Quantum Metric',
`https://cdn.quantummetric.com/qscripts/quantum-${this.siteId}.js`
)

this._ready = true;

logger.debug("===in init Quantum Metric===");
}

identify(rudderElement) {
logger.debug("[QuantumMetric] track:: method not supported");
}

track(rudderElement) {
logger.debug("[QuantumMetric] track:: method not supported");
}

page(rudderElement) {
logger.debug("[QuantumMetric] page:: method not supported");
}

isLoaded() {
return this._ready;
}

isReady() {
return this._ready;
}
}

export { QuantumMetric };
3 changes: 3 additions & 0 deletions integrations/QuantumMetric/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { QuantumMetric } from "./browser";

export default QuantumMetric;
118 changes: 60 additions & 58 deletions integrations/index.js
Original file line number Diff line number Diff line change
@@ -1,90 +1,92 @@
import * as HubSpot from "./HubSpot";
import * as AdobeAnalytics from "./AdobeAnalytics";
import * as Amplitude from "./Amplitude";
import * as Appcues from "./Appcues";
import * as BingAds from "./BingAds";
import * as Braze from "./Braze";
import * as Bugsnag from "./Bugsnag";
import * as Chartbeat from "./Chartbeat";
import * as Clevertap from "./Clevertap";
import * as Comscore from "./Comscore";
import * as Criteo from "./Criteo";
import * as CustomerIO from "./CustomerIO";
import * as Drip from "./Drip";
import * as FBPixel from "./FacebookPixel";
import * as Fullstory from "./Fullstory";
import * as GA from "./GA";
import * as Hotjar from "./Hotjar";
import * as GA4 from "./GA4";
import * as GoogleAds from "./GoogleAds";
import * as VWO from "./VWO";
import * as GoogleTagManager from "./GoogleTagManager";
import * as Braze from "./Braze";
import * as Heap from "./Heap";
import * as Hotjar from "./Hotjar";
import * as HubSpot from "./HubSpot";
import * as INTERCOM from "./INTERCOM";
import * as Keen from "./Keen";
import * as Kissmetrics from "./Kissmetrics";
import * as CustomerIO from "./CustomerIO";
import * as Chartbeat from "./Chartbeat";
import * as Comscore from "./Comscore";
import * as FBPixel from "./FacebookPixel";
import * as Klaviyo from "./Klaviyo";
import * as LinkedInInsightTag from "./LinkedInInsightTag";
import * as Lotame from "./Lotame";
import * as Optimizely from "./Optimizely";
import * as Bugsnag from "./Bugsnag";
import * as Fullstory from "./Fullstory";
import * as TVSquared from "./TVSquared";
import * as GA4 from "./GA4";
import * as Lytics from "./Lytics";
import * as Mixpanel from "./Mixpanel";
import * as MoEngage from "./MoEngage";
import * as Amplitude from "./Amplitude";
import * as Optimizely from "./Optimizely";
import * as Pendo from "./Pendo";
import * as Lytics from "./Lytics";
import * as Appcues from "./Appcues";
import * as Posthog from "./Posthog";
import * as Klaviyo from "./Klaviyo";
import * as Clevertap from "./Clevertap";
import * as BingAds from "./BingAds";
import * as PinterestTag from "./PinterestTag";
import * as AdobeAnalytics from "./AdobeAnalytics";
import * as LinkedInInsightTag from "./LinkedInInsightTag";
import * as RedditPixel from "./RedditPixel";
import * as Drip from "./Drip";
import * as Heap from "./Heap";
import * as Criteo from "./Criteo";
import * as Mixpanel from "./Mixpanel";
import * as Qualtrics from "./Qualtrics";
import * as SnapPixel from "./SnapPixel";
import * as Posthog from "./Posthog";
import * as ProfitWell from "./ProfitWell";
import * as Qualtrics from "./Qualtrics";
import * as QuantumMetric from "./QuantumMetric";
import * as RedditPixel from "./RedditPixel";
import * as Sentry from "./Sentry";
import * as SnapPixel from "./SnapPixel";
import * as TVSquared from "./TVSquared";
import * as VWO from "./VWO";

// the key names should match the destination.name value to keep partity everywhere
// (config-plan name, native destination.name , exported integration name(this one below))

const integrations = {
HS: HubSpot.default,
ADOBE_ANALYTICS: AdobeAnalytics.default,
AM: Amplitude.default,
APPCUES: Appcues.default,
BINGADS: BingAds.default,
BRAZE: Braze.default,
BUGSNAG: Bugsnag.default,
CHARTBEAT: Chartbeat.default,
CLEVERTAP: Clevertap.default,
COMSCORE: Comscore.default,
CRITEO: Criteo.default,
CUSTOMERIO: CustomerIO.default,
DRIP: Drip.default,
FACEBOOK_PIXEL: FBPixel.default,
FULLSTORY: Fullstory.default,
GA4: GA4.default,
GA: GA.default,
HOTJAR: Hotjar.default,
GOOGLEADS: GoogleAds.default,
VWO: VWO.default,
GTM: GoogleTagManager.default,
BRAZE: Braze.default,
HEAP: Heap.default,
HOTJAR: Hotjar.default,
HS: HubSpot.default,
INTERCOM: INTERCOM.default,
KEEN: Keen.default,
KISSMETRICS: Kissmetrics.default,
CUSTOMERIO: CustomerIO.default,
CHARTBEAT: Chartbeat.default,
COMSCORE: Comscore.default,
FACEBOOK_PIXEL: FBPixel.default,
KLAVIYO: Klaviyo.default,
LINKEDIN_INSIGHT_TAG: LinkedInInsightTag.default,
LOTAME: Lotame.default,
OPTIMIZELY: Optimizely.default,
BUGSNAG: Bugsnag.default,
FULLSTORY: Fullstory.default,
TVSQUARED: TVSquared.default,
GA4: GA4.default,
LYTICS: Lytics.default,
MOENGAGE: MoEngage.default,
AM: Amplitude.default,
MP: Mixpanel.default,
OPTIMIZELY: Optimizely.default,
PENDO: Pendo.default,
LYTICS: Lytics.default,
APPCUES: Appcues.default,
POSTHOG: Posthog.default,
KLAVIYO: Klaviyo.default,
CLEVERTAP: Clevertap.default,
BINGADS: BingAds.default,
PINTEREST_TAG: PinterestTag.default,
ADOBE_ANALYTICS: AdobeAnalytics.default,
LINKEDIN_INSIGHT_TAG: LinkedInInsightTag.default,
REDDIT_PIXEL: RedditPixel.default,
DRIP: Drip.default,
HEAP: Heap.default,
CRITEO: Criteo.default,
MP: Mixpanel.default,
QUALTRICS: Qualtrics.default,
SNAP_PIXEL: SnapPixel.default,
POSTHOG: Posthog.default,
PROFITWELL: ProfitWell.default,
QUALTRICS: Qualtrics.default,
QUANTUMMETRIC: QuantumMetric.default,
REDDIT_PIXEL: RedditPixel.default,
SENTRY: Sentry.default,
SNAP_PIXEL: SnapPixel.default,
TVSQUARED: TVSquared.default,
VWO: VWO.default,
};

export { integrations };
5 changes: 5 additions & 0 deletions integrations/integration_cname.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ const commonNames = {
SENTRY: "SENTRY",
sentry: "SENTRY",
Sentry: "SENTRY",
"Quantum Metric": "QUANTUMMETRIC",
QuantumMetric: "QUANTUMMETRIC",
quantumMetric: "QUANTUMMETRIC",
quantummetric: "QUANTUMMETRIC",
Quantum_Metric: "QUANTUMMETRIC",
};

export { commonNames };
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
"size": "npm run size-build && size-limit",
"changelog": "auto-changelog -p -t keepachangelog -u true -l false --sort-commits date-desc "
},
"pre-commit": [
"prodTest",
"test"
],
"author": "",
"license": "ISC",
"repository": {
Expand Down

0 comments on commit ab88c9d

Please sign in to comment.