Index: trunk/extensions/CustomUserSignup/CustomUserSignup.php |
— | — | @@ -44,6 +44,8 @@ |
45 | 45 | |
46 | 46 | $wgCustomUserSignupVersion = 1; |
47 | 47 | $wgCustomUserSignupSetBuckets = true; |
| 48 | +// If true, log each account creation to ClickTracking |
| 49 | +$wgCustomUserSignupTrackAccountCreations = false; |
48 | 50 | // For Account Creation Project |
49 | 51 | if ( class_exists( 'ClickTrackingHooks' ) ) { |
50 | 52 | ClickTrackingHooks::addCampaign($dir. 'modules', 'CustomUserSignup/modules', 'AccountCreationUserBucket' ); |
Index: trunk/extensions/CustomUserSignup/CustomUserSignup.hooks.php |
— | — | @@ -116,7 +116,7 @@ |
117 | 117 | } |
118 | 118 | |
119 | 119 | public static function addNewAccount( $user, $byEmail ){ |
120 | | - global $wgRequest, $wgTitle; |
| 120 | + global $wgRequest, $wgTitle, $wgCustomUserSignupTrackAccountCreations; |
121 | 121 | $buckets = ClickTrackingHooks::unpackBucketInfo(); |
122 | 122 | if(isset($buckets['AccountCreation']) && $buckets['AccountCreation'][0] != "none"){ |
123 | 123 | |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | time() + 60 * 60 * 24 * 365 , '/' ); |
128 | 128 | |
129 | 129 | $session = $wgRequest->getCookie( 'clicktracking-session', "" ); |
130 | | - if ( $session !== null ) { |
| 130 | + if ( $session !== null && $wgCustomUserSignupTrackAccountCreations ) { |
131 | 131 | $params = new FauxRequest( array( |
132 | 132 | 'action' => 'clicktracking', |
133 | 133 | 'eventid' => 'account-created', |