@99devco/analytics - v2.0.0
    Preparing search index...

    Function init

    • Initializes the analytics library with either a site UUID and options, or just options containing the UUID.

      Parameters

      • uuidOrConfig: string | CompleteInitOptions

        Either the unique identifier for your site or the full options object

      • Optionaloptions: InitOptions

        Optional configuration settings (only used if first parameter is a string)

      Returns void

      // Basic initialization with string UUID
      init('your-site-uuid');

      // With custom options
      init('your-site-uuid', {
      apiUrl: 'https://99dev-proxy.yourdomain.com',
      navType: 'hash',
      recordView: false,
      });

      // With options object only
      init({
      uuid: 'your-site-uuid',
      apiUrl: 'https://99dev-proxy.yourdomain.com',
      navType: 'hash',
      recordView: false,
      });