Gearside Design

Use Google Analytics to detect copied text

Event tracking is an important part of web maintenance. Knowing what words users are copying from your pages is an incredibly useful dimension to know! Essentially, the text people are copying from your website likely contains the most important keywords you should be targeting.

Tools like Tynt are available that add your URL to any copied text, but the negative user experience is not worth it— not even counting the extra page requests that make for additional loading times. Instead, simply use the following snippet to detect copied text and report it in Google Analytics!

Note: The following snippet assumes you are using universal analytics. For classic analytics, you’ll need to modify the reporting line to a _gaq.push();

JavaScript

This snippet is available as a Wordpress plugin here!