react-ga4 icon indicating copy to clipboard operation
react-ga4 copied to clipboard

How can I set html properties in react ga4?

Open igoormatias opened this issue 2 years ago • 0 comments

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" />

igoormatias avatar Oct 17 '23 14:10 igoormatias