laravel-analytics-event-tracking icon indicating copy to clipboard operation
laravel-analytics-event-tracking copied to clipboard

Google Analytics 4 support

Open 8ctopus opened this issue 2 years ago • 9 comments
trafficstars

Hello!

I'm looking at different options to support server side analytics for Google Analytics 4 and landed on your package. In the readme you say that you support Google Analytics 4 but looking at the project's dependencies you are relying on https://github.com/theiconic/php-ga-measurement-protocol which doesn't support GA4, so I'm a bit confused. Could you please share some light?

8ctopus avatar Feb 24 '23 05:02 8ctopus

As Universal Analytics is reaching it's EOL it would be essential to support GA4. Any update on this?

jussipvainionpaa avatar Apr 24 '23 09:04 jussipvainionpaa

@pascalbaljet Any update on this? My custom events are not received by GA4 while they did on Universal Analytics.

jeffreyvanhees avatar Jul 18 '23 12:07 jeffreyvanhees

I'm collaborating on this project which uses measurement protocol for ga4 https://github.com/aawnu/php-ga4/ but there's no laravel implementation.

8ctopus avatar Jul 18 '23 16:07 8ctopus

Hey guys! Any updates on this? Thanks!

superdejooo avatar Sep 29 '23 16:09 superdejooo

Looks like a fork of a fork supports GA4: https://github.com/accexs/laravel-ga4-event-tracking

LukeTowers avatar Dec 06 '23 21:12 LukeTowers

...and now I have forked that fork of a fork: https://github.com/devproca/laravel-ga4-event-tracking.

@superdejooo @8ctopus @jeffreyvanhees @jussipvainionpaa feel free to try out my fork and let me know if it works for you.

LukeTowers avatar Dec 12 '23 22:12 LukeTowers

@LukeTowers I went for a completely new implementation replicating the gtag.js behavior in php. Why? Because measurement protocol is way too limited in what it can achieve. https://github.com/8ctopus/php-gtag

8ctopus avatar Dec 13 '23 06:12 8ctopus

@8ctopus cool! Is there any documentation for the gtag.js API?

LukeTowers avatar Dec 13 '23 17:12 LukeTowers

@LukeTowers No, there is no official documentation from Google that I know of.

8ctopus avatar Dec 14 '23 02:12 8ctopus