next.js
next.js copied to clipboard
docs: Fix invalid arguments for sendGTMEvent
Recap
- The current documentation implementation is invalid.
- The function only accepts a single object, like the Google datalayer implementation.
- This fixes it by combining the arguments into a valid datalayer object.
cheers !