Skip to content

Commit d9a257e

Browse files
author
Alex Westergaard
committed
Update README
1 parent 05fded5 commit d9a257e

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ try {
7575
->setItemId($item['id'])
7676
->setItemName($item['name'])
7777
->setQuantity($item['qty'])
78-
->setPrice(round($item['price_total'] / $item['qty'], 2)) // unit pric
78+
->setPrice(round($item['price_total'] / $item['qty'], 2)) // unit price
7979
->setItemVariant($item['colorName']);
8080

8181
$viewCart->addItem($product);
@@ -96,7 +96,7 @@ try {
9696
}
9797
```
9898

99-
### Request
99+
### Request Format
100100
```json
101101
{
102102
"client_id": "GA0.43535.234234",
@@ -129,13 +129,6 @@ try {
129129
}
130130
```
131131

132-
### Response
133-
```json
134-
{
135-
"validationMessages": []
136-
}
137-
```
138-
139132
## Custom Events
140133
You can build your own custom events by extending on the Model\Event abstraction class; example
141134

@@ -158,7 +151,6 @@ class ExampleEvent extends Model\Event
158151
{
159152
return [
160153
'my_variable',
161-
'my_required_variable',
162154
];
163155
}
164156

@@ -189,10 +181,6 @@ Property name and value will be used as parameter name and value.
189181

190182
Just make sure not to use any [Reserved Event Names](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag#reserved_event_names)
191183

192-
## Dependencies
193-
- [GuzzleHttp/Guzzle: 6.x](https://packagist.org/packages/guzzlehttp/guzzle)
194-
- Please update [composer.json](composer.json) Guzzle to version 7.x for PHP 8.0+
195-
196184
## Source Documentation
197185
- [Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/ga4)
198186
- [Measurement Protocol: Reference](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag)

0 commit comments

Comments
 (0)