posthog-js-lite icon indicating copy to clipboard operation
posthog-js-lite copied to clipboard

Support capturing data attributes using `data-ph-capture-attribute`

Open itsramiel opened this issue 1 year ago • 5 comments

Is your feature request related to a problem?

Yes

Describe the solution you'd like

I would like to be able to capture data attributes alongside my autocapture event. The documentation already mentions it and it is available in the posthog-js library but not in the react native library.

Describe alternatives you've considered

An alternative is to not use autocapture, but instead manually capture an event and add additional properties as an object, but I prefer to stay consistent where I use autocapture for events clicks with and without data

Related sub-libraries

  • [x] posthog-react-native

itsramiel avatar Apr 16 '24 10:04 itsramiel

@itsramiel thanks for the issue. Do you mean this right?

marandaneto avatar Apr 16 '24 11:04 marandaneto

@marandaneto yes, I think that is the same link I linked to

itsramiel avatar Apr 16 '24 11:04 itsramiel

@marandaneto yes, I think that is the same link I linked to

Oh, you are right, I clicked on it but probably looked at the wrong tab, the downside when you have N tabs :D

The logic would go here most likely and can be inspired by the JS bits.

Would you like to take a stab at it?

marandaneto avatar Apr 16 '24 11:04 marandaneto

Another request https://posthog.com/questions/auto-capture-1

marandaneto avatar May 13 '24 13:05 marandaneto

Still not implemented.

twicer-is-coder avatar Sep 24 '24 17:09 twicer-is-coder