BlueRain
Github
  • πŸ’§Introduction
  • Overview
    • πŸ“²Quick Start
    • πŸŽ›οΈConfiguration with bluerain.js
    • 🎑Lifecycle Events
    • πŸ›£οΈRoadmap
  • Key Concepts
    • πŸ”ŒPlugins
      • Developing an Analytics Plugin
      • Developing a Logger Plugin
      • Developing a Theme Plugin
    • 🎣Hooks
    • 🎁Components
    • πŸ“¦BlueRain Modules
    • πŸŽ›οΈConfigs
    • πŸ“ˆAnalytics
    • πŸ“”Logger
    • 🎨Themes
      • Installation
      • Consuming Selected Theme
      • Customise Themes
      • Customise Components
      • Theme Configs
      • Theme Structure
    • Registry
  • Guides
    • πŸ—ΏIcons
    • πŸ›‚Migrating from V3
  • Components
    • Typography
    • Icons
      • Icon
      • DynamicIcon πŸ“Œ
      • PluginIcon πŸ“Œ
  • CLI
    • Expo
    • Web
    • Storybook (Web)
    • Storybook Native (Expo)
Powered by GitBook
On this page
  1. Key Concepts
  2. πŸ”ŒPlugins

Developing an Analytics Plugin

You can add support for any analytics service provider by using the bluebase.analytics.trackΒ hook.

await BB.Hooks.register('bluebase.analytics.track', {
	name: 'analytics-plugin',
	handler: (data: AnalyticTrackData) => {
		// send data to analytics provider here
	}
});

PreviousPluginsNextDeveloping a Logger Plugin

Last updated 6 years ago