r86924 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86923‎ | r86924 | r86925 >
Date:23:50, 25 April 2011
Author:nimishg
Status:deferred
Tags:
Comment:
Added Clicktracking event for actual account creation
Modified paths:
  • /trunk/extensions/CustomUserSignup/CustomUserSignup.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CustomUserSignup/CustomUserSignup.hooks.php
@@ -124,6 +124,19 @@
125125
126126 setcookie( 'acctcreation' , $buckets['AccountCreation'][0] ,
127127 time() + 60 * 60 * 24 * 365 );
 128+
 129+ $session = $wgRequest->getCookie( 'clicktrackingsession', "" );
 130+ if ( $session !== null ) {
 131+ $params = new FauxRequest( array(
 132+ 'action' => 'clicktracking',
 133+ 'eventid' => 'account-created',
 134+ 'token' => $session,
 135+ 'info' => 'account-activity',
 136+ ) );
 137+ $api = new ApiMain( $params, true );
 138+ $api->execute();
 139+ }
 140+
128141 }
129142 return true;
130143 }

Status & tagging log