Skip to content

Commit

Permalink
node for hubspot
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-rudder committed Sep 30, 2019
1 parent f3db335 commit ddcf775
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//import nodeCode from "./node";
import { HubSpotNode } from "./node";
import { HubSpot } from "./browser";

export default process.browser ? HubSpot : HubSpot;
export default process.browser ? HubSpot : HubSpotNode;
30 changes: 30 additions & 0 deletions rudder-client-javascript/analytics/integrations/HubSpot/node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class HubSpotNode {
constructor() {
console.log("nothing to construct");
}

init() {
console.log("node not supported");

console.log("===in init===");
}

identify(rudderElement) {
console.log("node not supported");
}

track(rudderElement) {
console.log("node not supported");
}

page(rudderElement) {
console.log("node not supported");
}

loaded() {
console.log("in hubspot isLoaded");
console.log("node not supported");
}
}

export { HubSpotNode };

0 comments on commit ddcf775

Please sign in to comment.