Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1007 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 1007 Bytes

Utopia Analytics

Light & Fast Dart Analytics Library

Pub Package Test

Features

  • Analytics
  • Multiple Providers

Getting started

Add dependency

dependencies:
    utopia_analytics: <latest>

Usage

Example

import 'package:utopia_analytics/utopia_analytics.dart';

void main() async {
  final pl = Plausible('utopiadart.dev', 'API_KEY',
      userAgent: 'Utopia Dart Framework');
  final event = Event(
    type: 'click',
    name: 'growth',
    url: 'https://utopiadart.dev/get-started',
  );
  await pl.createEvent(event);
}

Copyright and license

The MIT License (MIT) https://www.opensource.org/licenses/mit-license.php