r74200 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74199‎ | r74200 | r74201 >
Date:11:27, 3 October 2010
Author:ashley
Status:ok
Tags:
Comment:
ClickTracking: follow-up to r73558: use $ instead of $j in example jQuery code + tweaked the README a bit
Modified paths:
  • /trunk/extensions/ClickTracking/README (modified) (history)

Diff [purge]

Index: trunk/extensions/ClickTracking/README
@@ -1,13 +1,14 @@
2 -# ClickTracking lets you track users' clicks on links/buttons. The current implementation tracks clicks on the
3 -# navigation bar - the WikiEditor toolbar makes use of this if present
 2+# ClickTracking lets you track users' clicks on links/buttons.
 3+# The current implementation tracks clicks on the navigation bar - the
 4+# WikiEditor toolbar makes use of this if present
45
56 # This extension requires MediaWiki 1.17+ because it makes use of ResourceLoader.
67
 8+# To track a dynamic action, be sure that $.trackAction( 'something to identify action' ) is called in JS
 9+# To track an action that has state information associated with it, fire $.trackActionWithInfo( 'action', 'state information' );
 10+
711 # Example LocalSettings.php additions
812
9 -# to track a dynamic action, be sure that $j.trackAction("something to identify action") is called in JS
10 -# to track an action that has state information associated with it, fire $j.trackActionWithInfo("action", "state information");
11 -
12 -require_once("$IP/extensions/UsabilityInitiative/ClickTracking/ClickTracking.php");
 13+require_once("$IP/extensions/ClickTracking/ClickTracking.php");
1314 // Track 1 in every 10 clicks; set to 1 to track all clicks, -1 to disable
1415 $wgClickTrackThrottle = 10;
\ No newline at end of file

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73558clarified how to use this extensionnimishg18:50, 22 September 2010

Status & tagging log