gtm
1.0.2, released 2 years ago by an unverified publisher
Flutter plugin for Google Tag Manager on iOS, Android, and Web.
What it does
Allows you to manage tags such as analysis, advertising performance measurement, and affiliate marketing tracking through Google Tag Manager. It lets you push events with parameters and define custom tag handlers.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to integrate Google Tag Manager into your Flutter app for Android, iOS, or Web.
- You want to push analytics events and parameters to a data layer.
Skip it when
- You are looking for an official Google-maintained package.
- You only want simple Firebase Analytics tracking without using Google Tag Manager containers.
Strengths
- Supports multiple platforms including Android, iOS, and Web.
- Allows custom tag types and handlers for advanced event tracking.
Weaknesses
- It is not an official Google package.
- Requires manual native configuration files for iOS and Android (GTM container JSON files).
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires setting up Firebase Analytics for mobile, adding GTM container JSON files to specific native directories for iOS and Android, and adding a script snippet to index.html for Web.
import 'package:gtm/gtm.dart';
final gtm = Gtm.instance;
gtm.push(
'test',
parameters: {
'user_no': 912342,
},
);Alternatives
Packages that do the same job and could replace gtm.
- firebase_analytics
Flutter plugin for Google Analytics for Firebase.
94Compare - ambilytics
Google Analytics wrapper for all Flutter platforms including Windows and Linux
57Compare - show_fps
Monitor your Flutter app's FPS and performance metrics in real time with an overlay badge.
59Compare - flutter_perf_monitor
Real-time performance monitoring with FPS tracking, memory usage, and CPU monitoring for Flutter.
60Compare