PHPackages                             moosend/website-tracking-old - 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. moosend/website-tracking-old

ActiveLib

moosend/website-tracking-old
============================

By installing the Moosend PHP Tracking library you are can track page views, product views, add to cart events and successful purchases. You can later use these details to segment your user base, run automations, check how successful your latest promo has been and how many conversions your landing page has led to.

1.12.55(7y ago)020MITPHP

Since May 16Pushed 7y ago2 watchersCompare

[ Source](https://github.com/moosend/website-tracking-php-old)[ Packagist](https://packagist.org/packages/moosend/website-tracking-old)[ RSS](/packages/moosend-website-tracking-old/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

 [![moosend](https://camo.githubusercontent.com/b9d0e11651bf5b68a219708ad41c8c7813b4018b38be5005dbc318395afe93ea/68747470733a2f2f6d6f6f73656e642e636f6d2f77702d636f6e74656e742f7468656d65732f6d6f6f73656e645f7468656d652f696d616765732f6d6f6f73656e645f6c6f676f5f66756c6c2e737667)](https://www.moosend.com/)

 [![Build Status](https://camo.githubusercontent.com/e06c5932937697a824cceaf5e58472e78f3d49bf79c5184f7c9815577035d84e/68747470733a2f2f7472617669732d63692e6f72672f6d6f6f73656e642f776562736974652d747261636b696e672d7068702d6f6c642e737667)](https://travis-ci.org/moosend/website-tracking-php-old) [![Latest Stable Version](https://camo.githubusercontent.com/21d6054164ad4b3fd2ed370d8d810c4e3f737bc2ce40eb0b58924fc75508c89b/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6f73656e642f747261636b65722f762f737461626c652e737667)](https://packagist.org/packages/moosend/website-tracking-old) [![License](https://camo.githubusercontent.com/0fda44bc5b6a35580050d3afbbea99999dfeacf5c71aa52a3443b77d95a4affc/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6f73656e642f747261636b65722f6c6963656e73652e737667)](https://packagist.org/packages/moosend/website-tracking-old)

Moosend tracking library - GuzzleHTTP~5
---------------------------------------

[](#moosend-tracking-library---guzzlehttp5)

#### Pulling dependencies

[](#pulling-dependencies)

This project uses [composer](https://getcomposer.org/) for auto-loading and managing dependencies.

To install all dependencies run : `composer install` from your terminal / cmd, if everything goes fine you should see **/vendor** directory on root of this directory.

#### Running tests

[](#running-tests)

This project relies on [phpspec](http://www.phpspec.net/en/latest/), an unit testing and BDD toolset. To run all tests type this on your terminal / cmd

```
composer test

```

#### Initialisation

[](#initialisation)

Before you dive in with sending events you have to create an instance of Tracker first and perform initialisation. This is very important as it wont send any data to the server without a proper initialisation. The init. phase deals with some Cookies that determines if current user is a new visitor or a returned one.

```
$trackerFactory = new Moosend\TrackerFactory();
$tracker = $trackerFactory->create($siteId, $requestUseragent, $requestIpAddress);

$tracker->init('site-id');

```

There is another alternative, by using the function called `track()` which creates the instance for you.

```
$tracker = track($siteId, $requestUseragent, $requestIpAddress);

```

You have to make sure that **vendor/autoload.php** is included somewhere on your code base in order to make this work.

#### Sending events

[](#sending-events)

```
//identify
$tracker->identify('some@mail.com', 'John Doe', ['favourite-color' => 'blue']); //returns GuzzleHttp\Psr7\Response

//page view
$tracker->pageView('http://example.com');

//add to order
$tracker->addToOrder('itemCode', 'itemPrice', 'itemUrl', 'itemName', 'itemImage', $props);

//order completed
$order = $tracker->createOrder();

$order->addProduct('itemCode', 'itemPrice', 'itemUrl', 'itemName', 'itemImage', $props);
//add as many products as you want before tracking and order completed event
$order->addProduct('itemCode', 'itemPrice', 'itemUrl', 'itemName', 'itemImage', $props);

$tracker->orderCompleted($order);

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

3

Last Release

2911d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d4a695c344e31417e3fd418bac11f8bca47657c76b94d1df07ef4ba60ba3a64?d=identicon)[moosend](/maintainers/moosend)

---

Top Contributors

[![shmaxuti](https://avatars.githubusercontent.com/u/139597654?v=4)](https://github.com/shmaxuti "shmaxuti (9 commits)")

### Embed Badge

![Health badge](/badges/moosend-website-tracking-old/health.svg)

```
[![Health](https://phpackages.com/badges/moosend-website-tracking-old/health.svg)](https://phpackages.com/packages/moosend-website-tracking-old)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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