Skip to content
pubscout

gtm

1.0.2, released 2 years ago by an unverified publisher

Flutter plugin for Google Tag Manager on iOS, Android, and Web.

WASM-ready
$ flutter pub add gtm
Source repository

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.