react-ga4
react-ga4 copied to clipboard
How can I set html properties in react ga4?
In older versions, we could set HTML attributes like data-gtm-type="form" and data-gtm-name="personal-data" to track events. In the new version of react-ga4 how can do this?
Example
<input type="text" data-gtm-type="form" data-gtm-name="personal-data" placeholder="Name" />