PHPackages                             renoki-co/laravel-firebase-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. [Templating &amp; Views](/categories/templating)
4. /
5. renoki-co/laravel-firebase-analytics

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

renoki-co/laravel-firebase-analytics
====================================

Laravel Firebase Analytics adds blade directives to initialize, log events and set user properties for Firebase Analytics.

1.2.0(5y ago)45.2kMITPHP

Since Jul 26Pushed 5y agoCompare

[ Source](https://github.com/renoki-co/laravel-firebase-analytics)[ Packagist](https://packagist.org/packages/renoki-co/laravel-firebase-analytics)[ Docs](https://github.com/renoki-co/laravel-firebase-analytics)[ GitHub Sponsors](https://github.com/renoki-co)[ RSS](/packages/renoki-co-laravel-firebase-analytics/feed)WikiDiscussions master Synced 2d ago

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

Laravel Firebase Analytics
==========================

[](#laravel-firebase-analytics)

[![CI](https://github.com/renoki-co/laravel-firebase-analytics/workflows/CI/badge.svg?branch=master)](https://github.com/renoki-co/laravel-firebase-analytics/workflows/CI/badge.svg?branch=master)[![codecov](https://camo.githubusercontent.com/e9d9b2298dc3141d7e5a1795ac0e8c9cabb04a3809d47795222c9626d78ce606/68747470733a2f2f636f6465636f762e696f2f67682f72656e6f6b692d636f2f6c61726176656c2d66697265626173652d616e616c79746963732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/renoki-co/laravel-firebase-analytics/branch/master)[![StyleCI](https://camo.githubusercontent.com/f4f92b6b3ef276448498cd08a3375d2dbff32c8fa1dc768faea20cffb50919bf/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3238323537373033332f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/282577033)[![Latest Stable Version](https://camo.githubusercontent.com/82abef71d1bfd87514a71ac8f913f599a0fc608769ac6e8ac5f964917fa3d7d9/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d66697265626173652d616e616c79746963732f762f737461626c65)](https://packagist.org/packages/renoki-co/laravel-firebase-analytics)[![Total Downloads](https://camo.githubusercontent.com/7c5b07db00db2673c7dca1c72d98f91c97ba4fcbab2c5d160ff8a7e91b84af35/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d66697265626173652d616e616c79746963732f646f776e6c6f616473)](https://packagist.org/packages/renoki-co/laravel-firebase-analytics)[![Monthly Downloads](https://camo.githubusercontent.com/4f286cc7a8ffecf3e229700d190d20fd4659fa53af803386242dd0b0396614b7/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d66697265626173652d616e616c79746963732f642f6d6f6e74686c79)](https://packagist.org/packages/renoki-co/laravel-firebase-analytics)[![License](https://camo.githubusercontent.com/376969fc08bafd7cc47ac9bce68b65f83c4d7258a1837cb7e969f8373dad099a/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d66697265626173652d616e616c79746963732f6c6963656e7365)](https://packagist.org/packages/renoki-co/laravel-firebase-analytics)

Laravel Firebase Analytics adds blade directives to initialize, log events and set user properties for Firebase Analytics.

🤝 Supporting
------------

[](#-supporting)

Renoki Co. on GitHub aims on bringing a lot of open source projects and helpful projects to the world. Developing and maintaining projects everyday is a harsh work and tho, we love it.

If you are using your application in your day-to-day job, on presentation demos, hobby projects or even school projects, spread some kind words about our work or sponsor our work. Kind words will touch our chakras and vibe, while the sponsorships will keep the open source projects alive.

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require renoki-co/laravel-firebase-analytics
```

🙌 Usage
-------

[](#-usage)

Initialize in your `` tag using the `@initializeFirebaseAnalytics` directive, passing the version of Firebase JS scripts and the Firebase configuration parameters:

```

    @initializeFirebaseAnalytics([
        'version' => '7.15.5',
        'config' => [
            'apiKey' => 'some-key',
            'authDomain' => 'firebaseapp',
            ...
        ],
    ])

    ...

```

Afterwards, you can trigger events as [stated in Firebase Analytics docs](https://firebase.google.com/docs/analytics/events):

```

    @initializeFirebaseAnalytics([
        'version' => '7.15.5',
        'config' => [
            'apiKey' => 'some-key',
            'authDomain' => 'firebaseapp',
            ...
        ],
    ])

    @if ($loginSuccessful)
        @firebaseAnalyticsEvent([
            'name' => 'login',
            'parameters' => [
                'method' => 'email',
            ],
        ])
    @endif

```

Or for logged in users or sessions, you can set default user properties:

```

    @initializeFirebaseAnalytics([
        'version' => '7.15.5',
        'config' => [
            'apiKey' => 'some-key',
            'authDomain' => 'firebaseapp',
            ...
        ],
    ])

    @auth
        @firebaseAnalyticsUserProperties([
            'name' => auth()->user()->name,
            'age' => auth()->user()->age,
        ])
    @endauth

```

More details about the usage can be found here:

-
-
-

🐛 Testing
---------

[](#-testing)

```
vendor/bin/phpunit
```

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

🔒 Security
----------

[](#--security)

If you discover any security related issues, please email  instead of using the issue tracker.

🎉 Credits
---------

[](#-credits)

- [Alex Renoki](https://github.com/rennokki)
- [All Contributors](../../contributors)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~14 days

Total

4

Last Release

2073d ago

### Community

Maintainers

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

---

Top Contributors

[![rennokki](https://avatars.githubusercontent.com/u/21983456?v=4)](https://github.com/rennokki "rennokki (11 commits)")

---

Tags

analyticsbladedirectivesfirebasefirebase-analyticsgooglelaravelpackagephpphplaravelgooglebladefirebaseanalyticsdirectives

### Embed Badge

![Health badge](/badges/renoki-co-laravel-firebase-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/renoki-co-laravel-firebase-analytics/health.svg)](https://phpackages.com/packages/renoki-co-laravel-firebase-analytics)
```

###  Alternatives

[codeat3/blade-google-material-design-icons

A package to easily make use of "Google Fonts Material Icons" in your Laravel Blade views.

23494.4k4](/packages/codeat3-blade-google-material-design-icons)

PHPackages © 2026

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