PHPackages                             nikolaykolesnichenko/huntererror - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. nikolaykolesnichenko/huntererror

ActiveOctober-plugin[Logging &amp; Monitoring](/categories/logging)

nikolaykolesnichenko/huntererror
================================

OctoberCms plugin for catching JavaScript error and sending to GoogleAnalytics

461PHP

Since Mar 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/NemoD503/huntererror-plugin)[ Packagist](https://packagist.org/packages/nikolaykolesnichenko/huntererror)[ RSS](/packages/nikolaykolesnichenko-huntererror/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Hunter Error
============

[](#hunter-error)

This plugin handles JavaScript errors on your website front-end and sends them to Google Analytics, so you can always catch all JavaScript errors and fix it.

Details
-------

[](#details)

### The problem and the solution

[](#the-problem-and-the-solution)

All backend (php) errors You can see in log files, but what about JavaScript errors on the front-end? You think, that your site work fine, but may be your visitors have many errors and you do not know about it? There are many browsers and many cases, when your JavaScript code could be broken. How You can catch these errors? Hunter Error plugin can catch ALL JavaScript errors and send them to your google Analytics, like an events. Now You see all errors and can fix them.

### Report widget

[](#report-widget)

This plugin adds new report widget - Google Analytics events overview. This widget can show events from Google Analytics. By default it shows events with categories 'JavaScript Error' and 'jQuery Error'. This widget show you top of JavaScript errors.

You can add this widget twice or more on the dashboard and set another categories in settings (and another title). So You can see another events from your Google Analytics. (Top sales, for example)

Requirements
------------

[](#requirements)

This plugin extends [RainLab.Googleanalytics](http://octobercms.com/plugin/rainlab-googleanalytics) plugin. It will be automatically installed, if it was not installed.

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

[](#installation)

You can choose any of these methods:

1. Comman line

    `php artisan plugin:install nikolaykolesnichenko.huntererror`
2. Backend Interface

    Find plugin by name Hunter Error and click install
3. Composer

    - `composer require nikolaykolesnichenko/huntererror`
    - `php artisan october:up`

    (But it is not recomended to install plugin by composer, because rainlab.google Analytics plugin package still do not have type : "october-plugin", so googleAnalytics will be installed into vendor folder.)

Usage
-----

[](#usage)

After installation You can paste Hunter component to any layout, but you need to paste it after google counter component. You can paste these components before the closing ``. It is really the best place for code, because GA will only create `ga()` function and will start asynchronously loading GA scripts, so it doesn't stop the rendering of the page. (See [official docs](https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced)) And You can catch any error, that can appear before then page will load.

```
{% component 'googleTracker' %}
{% component 'hunter' %}
```

\##Thanks

Thanks @[kosiasik](https://github.com/kosiasik) for [idea](http://habrahabr.ru/post/149926/).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4633952?v=4)[Nikolai](/maintainers/NemoD503)[@NemoD503](https://github.com/NemoD503)

---

Top Contributors

[![NemoD503](https://avatars.githubusercontent.com/u/4633952?v=4)](https://github.com/NemoD503 "NemoD503 (10 commits)")[![kanaglic](https://avatars.githubusercontent.com/u/19836734?v=4)](https://github.com/kanaglic "kanaglic (2 commits)")[![dihar](https://avatars.githubusercontent.com/u/12913462?v=4)](https://github.com/dihar "dihar (1 commits)")

### Embed Badge

![Health badge](/badges/nikolaykolesnichenko-huntererror/health.svg)

```
[![Health](https://phpackages.com/badges/nikolaykolesnichenko-huntererror/health.svg)](https://phpackages.com/packages/nikolaykolesnichenko-huntererror)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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