Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tjardoo committed Dec 11, 2023
1 parent 6ea33b1 commit 1e5272c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,10 @@ Add the following snippet to the head of your blade layout file (below the exist
use Label84\TagManager\Facades\MeasurementProtocol;

MeasurementProtocol::event('some_event', ['foo' => 'bar']);
```

The User-ID feature is set automatically if the ``TagManagerUserIdMiddleware`` is enabled.
// Set a specific User-ID for this event (you can customize the key in the config file)
MeasurementProtocol::user($someUser)->event('some_event', ['foo' => 'bar']);
```

You can view the events directly in the Google Analytics UI under Realtime > Events.

Expand Down

0 comments on commit 1e5272c

Please sign in to comment.