-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #349 from rudderlabs/qm-prod
- Loading branch information
Showing
4 changed files
with
121 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* eslint-disable class-methods-use-this */ | ||
/* eslint-disable no-underscore-dangle */ | ||
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` | ||
); | ||
if (window.QuantumMetricAPI) { | ||
this._ready = true; | ||
} | ||
|
||
logger.debug("===in init Quantum Metric==="); | ||
} | ||
|
||
identify() { | ||
logger.debug("[QuantumMetric] track:: method not supported"); | ||
} | ||
|
||
track() { | ||
logger.debug("[QuantumMetric] track:: method not supported"); | ||
} | ||
|
||
page() { | ||
logger.debug("[QuantumMetric] page:: method not supported"); | ||
} | ||
|
||
isLoaded() { | ||
if (!this._ready && window.QuantumMetricAPI) { | ||
this._ready = true; | ||
} | ||
return this._ready; | ||
} | ||
|
||
isReady() { | ||
return this.isLoaded(); | ||
} | ||
} | ||
|
||
export default QuantumMetric; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import QuantumMetric from "./browser"; | ||
|
||
export default QuantumMetric; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters