Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text copy tracking #37

Merged
merged 6 commits into from
Jan 13, 2020
Merged

Add text copy tracking #37

merged 6 commits into from
Jan 13, 2020

Conversation

i-like-robots
Copy link
Contributor

@i-like-robots i-like-robots commented Jan 13, 2020

This tracker listens for copy events on content pages and logs information about the selected text.

We do this because want to know how many subscribers appear to be copying above the threshold defined in our copyright policy and stop those that are offending. The Prospector project also aims to turn this potentially negative behaviour from B2C subs into an opportunity for B2B business.

To use it, import and initialise the tracker from this library, please note this should always be done behind the textCopyTracking flag:

import * as nTracking from '@financial-times/n-tracking';

if (flags.get('textCopyTracking')) {
    nTracking.trackers.textCopying();
}

This original implementation (from n-instrumentation, later n-ui) was intended to replace a third-party library for performance and privacy reasons.

More information about the FT's copyright program can be found here: https://docs.google.com/presentation/d/1WieqpEYvossMecte26tUPQK7CzWa-9SMGpyGQyzL738/edit?usp=sharing

cc #33

@i-like-robots
Copy link
Contributor Author

I have also created a demo for the text excerpt generation:

Screenshot 2020-01-13 at 12 24 30

@i-like-robots i-like-robots force-pushed the matth/text-copy-tracking branch from 2cda3d4 to 3f50094 Compare January 13, 2020 13:51
@i-like-robots i-like-robots merged commit ec18bac into master Jan 13, 2020
@i-like-robots i-like-robots deleted the matth/text-copy-tracking branch January 13, 2020 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants