PHPackages                             mollie/magento2-analytics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. mollie/magento2-analytics

ActiveMagento2-module[Payment Processing](/categories/payments)

mollie/magento2-analytics
=========================

Mollie Payment Analytics Module for Magento 2

v1.0.1(2y ago)012.4k↓21.4%1OSL-3.0PHPPHP &gt;=7.4

Since Jul 18Pushed 1y ago3 watchersCompare

[ Source](https://github.com/mollie/magento2-analytics)[ Packagist](https://packagist.org/packages/mollie/magento2-analytics)[ RSS](/packages/mollie-magento2-analytics/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

 [![](https://camo.githubusercontent.com/3d8bc2fbce73f38b4c8a9d6527ffef94b4414d002cc2bd82b82aee207af2f6c1/68747470733a2f2f6769746875622d70726f64756374696f6e2d757365722d61737365742d3632313064662e73332e616d617a6f6e6177732e636f6d2f32343832333934362f3339313539343032322d32323564613038632d623039342d346665312d383830642d3532633533373361373965312e6a70673f582d416d7a2d416c676f726974686d3d415753342d484d41432d53484132353626582d416d7a2d43726564656e7469616c3d414b494156434f44594c5341353350514b345a41253246323032343132303225324675732d656173742d312532467333253246617773345f7265717565737426582d416d7a2d446174653d3230323431323032543134353935365a26582d416d7a2d457870697265733d33303026582d416d7a2d5369676e61747572653d6333663165356563373265343333373762376664643538316266393637373830613839393034356563353833383232326637666435383733366534373965386126582d416d7a2d5369676e6564486561646572733d686f7374)](https://camo.githubusercontent.com/3d8bc2fbce73f38b4c8a9d6527ffef94b4414d002cc2bd82b82aee207af2f6c1/68747470733a2f2f6769746875622d70726f64756374696f6e2d757365722d61737365742d3632313064662e73332e616d617a6f6e6177732e636f6d2f32343832333934362f3339313539343032322d32323564613038632d623039342d346665312d383830642d3532633533373361373965312e6a70673f582d416d7a2d416c676f726974686d3d415753342d484d41432d53484132353626582d416d7a2d43726564656e7469616c3d414b494156434f44594c5341353350514b345a41253246323032343132303225324675732d656173742d312532467333253246617773345f7265717565737426582d416d7a2d446174653d3230323431323032543134353935365a26582d416d7a2d457870697265733d33303026582d416d7a2d5369676e61747572653d6333663165356563373265343333373762376664643538316266393637373830613839393034356563353833383232326637666435383733366534373965386126582d416d7a2d5369676e6564486561646572733d686f7374)

Mollie Analytics Addon for Magento 2.3.x and higher
===================================================

[](#mollie-analytics-addon-for-magento-23x-and-higher)

This plugin is an **addon** on the [Mollie Magento 2 payment module](https://github.com/mollie/magento2/) and can't be installed seperatly without the Mollie Payment plugin installed.

Installation
------------

[](#installation)

We recommend that you make a backup of your webshop files, as well as the database.

Step-by-step to install the Magento® 2 extension through Composer:

1. Make sure the [Mollie Magento 2 payment module](https://github.com/mollie/magento2/) is installed.
2. Connect to your server running Magento® 2 using SSH or other method (make sure you have access to the command line).
3. Locate your Magento® 2 project root.
4. Install the Magento® 2 extension through composer and wait till it's completed:

```
composer require mollie/magento2-analytics

```

4. Once completed run the Magento® module enable command:

```
bin/magento module:enable Mollie_Analytics

```

5. After that run the Magento® upgrade and clean the caches:

```
php bin/magento setup:upgrade
php bin/magento cache:flush

```

6. If Magento® is running in production mode you also need to redeploy the static content:

```
php bin/magento setup:static-content:deploy

```

Usage
-----

[](#usage)

When enabled, this module will extract the client ID from the Google Analytics cookie and save it. When the user finishes the transaction this will get appended to the success URL: `&clientId=`. You can retrieve this by using javascript:

```
const urlParams = new URLSearchParams(window.location.search);
const clientId = urlParams.get('clientId');

console.log('Receive client id:', clientId);
```

Another way to retrieve the ID is by using the repository:

```
class DoSomeStuff {
    /**
     * @var \Mollie\Analytics\Api\AnalyticsRepositoryInterface
     */
    private $repository;

    public function __construct(
        \Mollie\Analytics\Api\AnalyticsRepositoryInterface $repository
    ) {
        $this->repository = $repository;
    }

    public function getClientId(int $cartId): ?string
    {
        return $this->repository->getByCartId($cartId)->getClientId();
    }
}
```

License
-------

[](#license)

[BSD (Berkeley Software Distribution) License](http://www.opensource.org/licenses/bsd-license.php). Copyright (c) 2011-2021, Mollie B.V.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~311 days

Total

2

Last Release

1089d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0db6d714561c942dd2d7f9f97bd7543886d7bfdd61372b594b2312850fd99f2c?d=identicon)[molops](/maintainers/molops)

---

Top Contributors

[![michielgerritsen](https://avatars.githubusercontent.com/u/5858697?v=4)](https://github.com/michielgerritsen "michielgerritsen (6 commits)")[![Marvin-Magmodules](https://avatars.githubusercontent.com/u/20815641?v=4)](https://github.com/Marvin-Magmodules "Marvin-Magmodules (3 commits)")[![Frank-Magmodules](https://avatars.githubusercontent.com/u/24823946?v=4)](https://github.com/Frank-Magmodules "Frank-Magmodules (1 commits)")

### Embed Badge

![Health badge](/badges/mollie-magento2-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/mollie-magento2-analytics/health.svg)](https://phpackages.com/packages/mollie-magento2-analytics)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/braintree

Braintree gateway for Omnipay payment processing library

35558.0k3](/packages/omnipay-braintree)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
