We have confirmed that the 'transaction.name' is created by importing the custom name or HTML name from the code below.
Link : https://github.com/elastic/apm-agent-rum-js/blob/65ebcabe9cd1472d6b0b8da7b0a5489fe7d126f3/packages/rum-core/src/common/observers/page-clicks.js#L91C1-L91C117
Why don't you bring the 'id' property of html? If there is no 'name' attribute, it is virtually difficult to identify.
As you know, the 'name' attribute can be used in duplicate, and the 'id' attribute will also be required for more accurate identification.
Thank You.