Open chuwy opened 7 years ago
I LOVE this idea!
We used to track cut/copy text on websites and we'd see a lot of users copying phone numbers and addresses.
Found it eye opening - you'd be surprised how many of those events take place. You may need to consider whether or not you want to track content highlighted inside forms. We had to explicitly avoid tracking copy/paste from forms (e.g. email validation, badly implemented placeholder text ;).
Highlight would be interesting. Probably much higher volume?
On Sun, 7 May 2017 at 06:09 Alexander Dean notifications@github.com wrote:
I LOVE this idea!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/snowplow/snowplow-javascript-tracker/issues/582#issuecomment-299663108, or mute the thread https://github.com/notifications/unsubscribe-auth/ACQILLy4gJhCbx7mA7gyQqIwxa-bxTLUks5r3NOCgaJpZM4NS5Bf .
I think copy-tracking nicely fits this feature, so we can add copied: boolean
property to event.
Regarding form-tracking - I guess that would be solved by a dom-selector argument, so one can decide explicitly what blocks of website can be tracked and just not enable it for forms.
For text-heavy websites, like blogs or newspapers we can add text-selection tracking, which triggers event whenever user highlighted some part of paragraph (important part probably). This allows our users to implement medium-like "top-highlight" feature.
I see API something like:
Which sends to collector event with
startSymbol: number
andendSymbol: number
(maybe alsocontentHash: string
so analysts can be sure they're comparing same blocks of text). ThesestartSymbol
andendSymbol
can later be joined with content of text block.