Dart wrapper around google tag manager js api
Install Google Tag Manager (docs)
import 'package:google_tag_manager/google_tag_manager.dart' as gtm;
main() {
gtm.pushEvent('button1-click');
gtm.pushEvent('button2-click', data: {'value': 1});
gtm.push({'variable_name': 'variable_value'});
}
Please file feature requests and bugs at the issue tracker.