The RudderStack HubSpot integration lets developers send user data and track events to HubSpot.
// Source: https://github.com/rudderlabs/rudder-sdk-js | License: MIT | Copyright 2026 RudderStack, Inc
// Provided via justclaw.it.com; keep this notice with the code.
/* eslint-disable no-underscore-dangle */
/* eslint-disable class-methods-use-this */
import { ScriptLoader } from '@rudderstack/analytics-js-legacy-utilities/ScriptLoader';
import { NAME, DISPLAY_NAME } from './constants';
import Logger from '../../utils/logger';
import { getDefinedTraits } from '../../utils/utils';
const logger = new Logger(DISPLAY_NAME);
class HubSpot {
constructor(config, analytics, destinationInfo) {
if (analytics.logLevel) {
logger.setLogLevel(analytics.logLevel);
}
this.analytics = analytics;
this.hubId = config.hubID; // 6405167
this.name = NAME;
({
shouldAppl
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key