Link Tracker Tests
These tests must be run on a webserver with PHP
Test 1
- Tracking restricted to below set of links
- Tracks middle & left clicks
- Tracks external urls only
- Delete log.txt
- Click each of the links below using the right mouse button
- Click each of the links below using the middle mouse button (page will open in a background tab)
- Click each of the links below using the left mouse button (page will open in a hidden iframe)
- Click each of the links below using they keyboard (page will open in a hidden iframe)
- Mouse over the links below, tracker.php shouldn't appear in the urls
- Check results
Test 2
- Tracking restricted to below set of links
- Tracks right & left clicks
- Tracks external urls only
- Tracks javascript: urls
- Opera disables right-click events by default, this test will fail in Opera
- Delete log.txt
- Click each of the links below using the right mouse button
- Click each of the links below using the middle mouse button (page will open in a background tab)
- Click each of the links below using the left mouse button (page will open in a hidden iframe)
- Mouse over the links below, tracker.php shouldn't appear in the urls
- Check results
Test 3
- Tracking restricted to below set of links
- Tracks middle & left clicks
- Tracks external and internal links (to other pages)
- Delete log.txt
- Click each of the links below using the left mouse button (page will open in a hidden iframe)
- Mouse over the links below, tracker.php shouldn't appear in the urls
- Check results
Test 4
- Tracking all links on the page
- Tracks middle & left clicks
- Tracks external, internal links, and links to the current page
- Refresh the page
- Delete log.txt
- Start test 4
- Click each of the links below using the left mouse button (page will open in a hidden iframe)
- Mouse over the links below, tracker.php shouldn't appear in the urls
- Check results
Notes:
-
Firefox extension 'All-in-one gestures' prevents detecting middle & right clicks,
other extensions may do the same.
-
What if people swap mouse buttons?
-
Add option to prevent logging same url x times per page
-
Will track clicks even if JavaScript prevents the default (for middle and right clicks)
-
Right clicks cannot be detected on Mac browsers
-
Right clicks cannot be detected in Opera (unless default settings are changed)