Google Analytics measurement protocol library Installation $ composer require setono/google-analytics-measurement-protocol Usage See the tests directory.