How to use the gatsby-theme-apollo-docs/src/utils.trackEvent function in gatsby-theme-apollo-docs

To help you get started, we’ve selected a few gatsby-theme-apollo-docs 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 wp-graphql / wp-graphql / docs / src / gatsby-theme-apollo-docs / components / page-layout.js View on Github external
function handleToggleCategory(title, expanded) {
  trackEvent({
    eventCategory: GA_EVENT_CATEGORY_SIDEBAR,
    eventAction: 'toggle category',
    eventLabel: title,
    eventValue: Number(expanded),
  })
}
github wp-graphql / wp-graphql / docs / src / gatsby-theme-apollo-docs / components / page-layout.js View on Github external
function handleToggleAll(expanded) {
  trackEvent({
    eventCategory: GA_EVENT_CATEGORY_SIDEBAR,
    eventAction: 'toggle all',
    eventLabel: expanded ? 'expand' : 'collapse',
  })
}
github wp-graphql / wp-graphql / docs / src / gatsby-theme-apollo-docs / components / section-nav.js View on Github external
function handleHeadingClick(event) {
  trackEvent({
    eventCategory: 'Section Nav',
    eventAction: 'heading click',
    eventLabel: event.target.innerText,
  })
}

gatsby-theme-apollo-docs

A Gatsby theme for building documentation websites

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis