How to use @times-components/tealium - 4 common examples

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 / ssr / src / lib / run-client.js View on Github external
const makeAnalyticsStream = options => {
  const tealiumSendScheduler = new TealiumSendScheduler(
    options.tracking,
    window,
    document
  );
  const reporter = tealiumReporter(tealiumSendScheduler);
  return reporter.analytics;
};
github newsuk / times-components / packages / tealium-utils / src / storybook.web.js View on Github external
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);
};
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);
};
github newsuk / times-components / packages / ssr / src / lib / run-client.js View on Github external
const makeAnalyticsStream = options => {
  const tealiumSendScheduler = new TealiumSendScheduler(
    options.tracking,
    window,
    document
  );
  const reporter = tealiumReporter(tealiumSendScheduler);
  return reporter.analytics;
};

@times-components/tealium

React component for tealium reporter

BSD-3-Clause
Latest version published 5 months ago

Package Health Score

81 / 100
Full package analysis

Similar packages