Index: branches/wmf/1.19wmf1/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: branches/wmf/1.19wmf1/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', |
Property changes on: branches/wmf/1.19wmf1/extensions/CustomUserSignup |
___________________________________________________________________ |
Added: svn:mergeinfo |
134 | 134 | Merged /branches/REL1_17/phase3/extensions/CustomUserSignup:r81445,81448 |
135 | 135 | Merged /trunk/extensions/CustomUserSignup:r111043,111199,111218,111484,111575,111604,111659-111661,111668,111670,111688,111690,111698,111713,111715,111780,111796,111814,111947,112074,112153,112160,112166,112267 |
136 | 136 | Merged /branches/sqlite/extensions/CustomUserSignup:r58211-58321 |
137 | 137 | Merged /trunk/phase3/extensions/CustomUserSignup:r111002,111029,111034,111062,111067,111076,111085,111128,111144,111251 |
138 | 138 | Merged /branches/new-installer/phase3/extensions/CustomUserSignup:r43664-66004 |
139 | 139 | Merged /branches/JSTesting/extensions/CustomUserSignup:r100352-107913 |
140 | 140 | Merged /branches/REL1_15/phase3/extensions/CustomUserSignup:r51646 |
141 | 141 | Merged /branches/wmf/1.18wmf1/extensions/CustomUserSignup:r97508 |