Skip to content

Files

Latest commit

Feb 26, 2018
abb7fee · Feb 26, 2018

History

History
23 lines (15 loc) · 558 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 558 Bytes

google_tag_manager

Dart wrapper around google tag manager js api

Usage

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'});
}

Features and bugs

Please file feature requests and bugs at the issue tracker.