aawnu / php-ga4

PHP Wrapper for Google Analytics 4 with Server Side Tracking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add document title

robinforay opened this issue · comments

Hello!

I need your help, i send data with your extension but my Views box in analytics is empty, how to add document title param to your code?

kép

Hello @robinforay

Pageview is not a default >Event< of Google Analytics 4.

Pageviews are by default triggered with GA.js og GTAG.js (the javascript side that also sets _ga and/or _gid cookie).

You can build a custom event to trigger this in your backend.

Hello @robinforay

I have found this unofficial source that you can try to build as a event following the Custom Event in the README.

https://gearside.com/using-server-side-google-analytics-sending-pageviews-event-tracking/

As this is unofficial and not part og GA Documentation, then I will not do more about this for now.

Hello @aawnu

Thank you for the usefull help.

Works nice.