File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -172,15 +172,15 @@ axios.post('/api/ga4', [
172172#### Backend
173173
174174``` php
175- use AlexWestergaard\PhpGa4\Helper\Converter ;
175+ use AlexWestergaard\PhpGa4\Helper\ConvertHelper ;
176176use AlexWestergaard\PhpGa4\Exception;
177177use AlexWestergaard\PhpGa4\Analytics;
178178use AlexWestergaard\PhpGa4\Event;
179179
180180// require vendor/autoload.php
181181
182182try {
183- $events = Converter ::parseEvents($_POST);
183+ $events = ConvertHelper ::parseEvents($_POST);
184184
185185 Analytics::new($measurementId, $apiSecret)
186186 ->addEvent(...$events)
@@ -197,8 +197,8 @@ You can build your own custom events. All you need is to implement and fullfill
197197
198198``` php
199199
200- // AbstractEvent implements AlexWestergaard\PhpGa4\Facade\Type\TypeEvent
201- class ExampleEvent extends AlexWestergaard\PhpGa4\Helper\AbstractEvent
200+ // EventHelper implements AlexWestergaard\PhpGa4\Facade\Type\EventType
201+ class ExampleEvent extends AlexWestergaard\PhpGa4\Helper\EventHelper
202202{
203203 // variables should be nullable as unset() will set variable as null
204204 protected null|mixed $my_variable;
You can’t perform that action at this time.
0 commit comments