Skip to content

Commit f8915f1

Browse files
committed
docs: fix sendGAEvent example
1 parent fedb675 commit f8915f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/02-app/01-building-your-application/06-optimizing/12-third-party-libraries.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export function EventButton() {
294294
return (
295295
<div>
296296
<button
297-
onClick={() => sendGAEvent({ event: 'buttonClicked', value: 'xyz' })}
297+
onClick={() => sendGAEvent('event', 'buttonClicked', { value: 'xyz' })}
298298
>
299299
Send Event
300300
</button>
@@ -314,7 +314,7 @@ export function EventButton() {
314314
return (
315315
<div>
316316
<button
317-
onClick={() => sendGAEvent({ event: 'buttonClicked', value: 'xyz' })}
317+
onClick={() => sendGAEvent('event', 'buttonClicked', { value: 'xyz' })}
318318
>
319319
Send Event
320320
</button>

0 commit comments

Comments
 (0)