Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const makeAnalyticsStream = options => {
const tealiumSendScheduler = new TealiumSendScheduler(
options.tracking,
window,
document
);
const reporter = tealiumReporter(tealiumSendScheduler);
return reporter.analytics;
};
import { action } from "@storybook/addon-actions";
import tealiumReporter, {
TealiumSendScheduler
} from "@times-components/tealium";
const trackingOptions = {
account: "newsinternational",
enabled: true,
env: "dev",
profile: "thetimes.2018"
};
const tealiumSendScheduler = new TealiumSendScheduler(
trackingOptions,
global.window,
global.document
);
const reporter = tealiumReporter(tealiumSendScheduler);
export default e => {
if (reporter) reporter.analytics(e);
return action("analytics-event")(e);
};
} from "@times-components/tealium";
const trackingOptions = {
account: "newsinternational",
enabled: true,
env: "dev",
profile: "thetimes.2018"
};
const tealiumSendScheduler = new TealiumSendScheduler(
trackingOptions,
global.window,
global.document
);
const reporter = tealiumReporter(tealiumSendScheduler);
export default e => {
if (reporter) reporter.analytics(e);
return action("analytics-event")(e);
};
const makeAnalyticsStream = options => {
const tealiumSendScheduler = new TealiumSendScheduler(
options.tracking,
window,
document
);
const reporter = tealiumReporter(tealiumSendScheduler);
return reporter.analytics;
};