File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ composer require alexwestergaard/php-ga4
2020
2121- [ GDPR Notice] ( #gdpr-notice )
2222- [ Getting started] ( #getting-started )
23+ - [ Data flow] ( #data-flow )
2324- [ Events] ( #events )
2425 - [ Default] ( #default )
2526 - [ E-commerce] ( #e-commerce )
@@ -59,10 +60,18 @@ use AlexWestergaard\PhpGa4\Analytics;
5960$analytics = Analytics::new(
6061 measurement_id: 'G-XXXXXXXX',
6162 api_secret: 'xYzzX_xYzzXzxyZxX',
62- debug: true/ false
63+ debug: true| false
6364);
6465```
6566
67+ ### Data flow
68+
69+ 1 . Acquire proper GDPR Consent
70+ 2 . Client/GTAG.js sends session_start and first_visit to GA4
71+ 3 . GA4 sends _ ga and _ gid cookies to Client/GTAG.js
72+ 4 . Server uses _ ga to populate events
73+
74+
6675## Events
6776
6877This is a list of prebuilt events as shown in the documentation. All events have the following parameters to locate trigger location of each event.
You can’t perform that action at this time.
0 commit comments