Skip to content

Commit

Permalink
QuatumMetric-int:Addressed Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchiramoitra committed Sep 30, 2021
1 parent 644cf3e commit c11a185
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 13 additions & 10 deletions integrations/QuantumMetric/browser.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
/* 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.siteId = "rudderstack"; // 1549611
this.name = "QUANTUMMETRIC";
this._ready = false;
}

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

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

this._ready = true;
);
if (window.QuantumMetricAPI) {
this._ready = true;
}

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

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

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

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

Expand All @@ -44,4 +47,4 @@ class QuantumMetric {
}
}

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

export default QuantumMetric;

0 comments on commit c11a185

Please sign in to comment.