hiqdev/yii2-google-tag-manager

Google Tag Manager widget for Yii2 applications

dev-master 2020-02-11 16:20 UTC

This package is auto-updated.

Last update: 2020-02-11 16:20:17 UTC


README

Google Tag Manager widget for Yii2 applications

Latest Stable Version Total Downloads Build Status Scrutinizer Code Coverage Scrutinizer Code Quality

Provides really easy adding Google Tag Manager snippet to a site. Even easier then adding a widget into a site layout.

Works by adding Behavior to the Application View. Behavior listens to EVENT_BEGIN_BODY and echos the snippet.

Configuration

This extension is supposed to be used with composer-config-plugin.

Else look config/web.php for cofiguration example.

Available configuration parameters:

  • GoogleTagManager.id

For more details please see config/params.php.