PHPackages                             setono/google-analytics-measurement-protocol - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. setono/google-analytics-measurement-protocol

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

setono/google-analytics-measurement-protocol
============================================

A library that eases the generation of measurement protocol payloads

v1.0.0(2y ago)550.9k—5.6%3[2 PRs](https://github.com/Setono/google-analytics-measurement-protocol/pulls)3MITPHPPHP &gt;=7.4

Since Jun 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Setono/google-analytics-measurement-protocol)[ Packagist](https://packagist.org/packages/setono/google-analytics-measurement-protocol)[ RSS](/packages/setono-google-analytics-measurement-protocol/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (28)Used By (3)

Google Analytics measurement protocol library
=============================================

[](#google-analytics-measurement-protocol-library)

[![Latest Version](https://camo.githubusercontent.com/06a833554bc805ac789c6bfeb54017ef5fff2689ca8239c6faa96d055f3df2c1/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f676f6f676c652d616e616c79746963732d6d6561737572656d656e742d70726f746f636f6c2f762f737461626c65)](https://packagist.org/packages/setono/google-analytics-measurement-protocol)[![Software License](https://camo.githubusercontent.com/990b1dee9356f8ca7b9680223f115f151374c7e7a94010d38ed50c565aad27d1/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f676f6f676c652d616e616c79746963732d6d6561737572656d656e742d70726f746f636f6c2f6c6963656e7365)](LICENSE)[![Build Status](https://github.com/Setono/google-analytics-measurement-protocol/workflows/build/badge.svg)](https://github.com/Setono/google-analytics-measurement-protocol/actions)[![Code Coverage](https://camo.githubusercontent.com/237a285cece9e03f93ed89b92d6fdcd310bc18cc5e3cd585cbf96aa9a939c3bc/68747470733a2f2f636f6465636f762e696f2f67682f5365746f6e6f2f676f6f676c652d616e616c79746963732d6d6561737572656d656e742d70726f746f636f6c2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Setono/google-analytics-measurement-protocol)[![Mutation testing](https://camo.githubusercontent.com/cebf3ab39e0616753ebd2364c32b1c7dd21ad7a6b821a406f73fe37ae0333430/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532465365746f6e6f253246676f6f676c652d616e616c79746963732d6d6561737572656d656e742d70726f746f636f6c2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/Setono/google-analytics-measurement-protocol/master)

Easily build payloads for the [Google Analytics measurement protocol](https://developers.google.com/analytics/devguides/collection/protocol/ga4).

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

[](#installation)

```
composer require setono/google-analytics-measurement-protocol
```

Usage
-----

[](#usage)

```
