Skip to content

Commit

Permalink
Fix code example in doc 12-third-party-libraries
Browse files Browse the repository at this point in the history
Hello, I fixed four code examples in the file `12-third-party-libraries.mdx` where an old syntax was used to send events to Google Analytics and Google Tag Manager.
  • Loading branch information
ArnaudFavier authored Jun 6, 2024
1 parent 6185444 commit dbb16a5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function EventButton() {
return (
<div>
<button
onClick={() => sendGTMEvent({ event: 'buttonClicked', value: 'xyz' })}
onClick={() => sendGTMEvent( 'event', 'buttonClicked', { value: 'xyz' })}
>
Send Event
</button>
Expand All @@ -148,7 +148,7 @@ export function EventButton() {
return (
<div>
<button
onClick={() => sendGTMEvent({ event: 'buttonClicked', value: 'xyz' })}
onClick={() => sendGTMEvent( 'event', 'buttonClicked', { value: 'xyz' })}
>
Send Event
</button>
Expand Down Expand Up @@ -288,7 +288,7 @@ export function EventButton() {
return (
<div>
<button
onClick={() => sendGAEvent({ event: 'buttonClicked', value: 'xyz' })}
onClick={() => sendGAEvent( 'event', 'buttonClicked', { value: 'xyz' })}
>
Send Event
</button>
Expand All @@ -308,7 +308,7 @@ export function EventButton() {
return (
<div>
<button
onClick={() => sendGAEvent({ event: 'buttonClicked', value: 'xyz' })}
onClick={() => sendGAEvent( 'event', 'buttonClicked', { value: 'xyz' })}
>
Send Event
</button>
Expand Down

0 comments on commit dbb16a5

Please sign in to comment.