How to use the @times-components/tealium function in @times-components/tealium

To help you get started, we’ve selected a few @times-components/tealium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / tealium-utils / src / storybook.web.js View on Github external
} 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);
};

@times-components/tealium

React component for tealium reporter

BSD-3-Clause
Latest version published 7 months ago

Package Health Score

78 / 100
Full package analysis

Similar packages