ember-cli-matomo-tag-manager

1.3.1 • Public • Published

ember-cli-matomo-tag-manager

This Ember addon helps you to integrate Matomo Tag Manager to your application.

Simply said, Matomo Tag Manager is a plugin that takes Matomo Analytics to the next level. Similar to how a CMS brings you all the flexibility to publish content for your website, a Tag Management System (TMS) will allow you to easily embed 1st and 3rd party application resources into your website.

Compatibility

  • Ember.js v3.16 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-cli-matomo-tag-manager

Usage

First, add the ember-cli-matomo-tag-manager dependency to your project :

ember install ember-cli-matomo-tag-manager

Then, in your config file config/environment.js, declare your Matomo tags container URL :

// config/environment.js

module.exports = function(environment) {
  let ENV = {

    // ...

    APP: {
      // Here you can pass flags/options to your application instance
      // when it is created
    },

    matomo: {
      url: 'https://stats.pix.fr/js/container_rvRH7IMW.js'
    }

  };
  
  // ...

  return ENV;
};

And, voilà!

Configuration

Param Type Required Usage Default value
url string yes Matomo TMS container URL null
debug boolean no Enable Matomo debug logs false

Example

Have a look on the dummy app (in tests/dummy/app) to see the addon in action.

You can see the data results on https://stats.pix.fr/index.php, for project "ember-cli-matomo-tag-manager".

Contributing

See the Contributing guide for details.

Releasing

Execute script ./scripts/publish.sh [X.Y.Z].

License

This project is licensed under the MIT License.

/ember-cli-matomo-tag-manager/

    Package Sidebar

    Install

    npm i ember-cli-matomo-tag-manager

    Weekly Downloads

    203

    Version

    1.3.1

    License

    MIT

    Unpacked Size

    7.14 kB

    Total Files

    7

    Last publish

    Collaborators

    • jbuget
    • jonasgrilleres
    • vincenthardouin
    • laura.bergoens
    • thomasevano