Skip to content

Commit

Permalink
Merge pull request #388 from silinternational/feature/IDP-1266-part-3…
Browse files Browse the repository at this point in the history
…-deprecate-google-analytics-metrics

[IDP-1266, part 3:] Deprecate ID Broker's use of Google Analytics
  • Loading branch information
forevermatt authored Nov 13, 2024
2 parents 5fea506 + 5c391d1 commit 5fca038
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The API is described by [api.raml](api.raml), and an auto-generated [api.html](a
* `./vendor/bin/behat features/authentication.feature`
* `./vendor/bin/behat features/authentication.feature:298`

## Google Analytics Calls
## Google Analytics Calls - DEPRECATED
Calls are made to Google Analytics regarding users' mfas and whether a password has been pwned.

If you want to have an indication that those calls are likely to succeed, run
Expand Down
5 changes: 5 additions & 0 deletions application/console/controllers/CronController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public function actionGoogleAnalytics()
{
$eventCategory = 'mfa-usage';

\Yii::warning(
'Reporting ID Broker metrics to Google Analytics is deprecated and '
. 'will be removed in a future release.'
);

$gaEvents = [
'active_users' => User::find()->where(['active' => 'yes'])->count(),
'active_users_with_require_mfa' => User::countUsersWithRequireMfa(),
Expand Down
4 changes: 4 additions & 0 deletions application/console/controllers/GaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class GaController extends Controller
*/
public function actionRegister_event()
{
\Yii::warning(
'Sending ID Broker data to Google Analytics is deprecated and will '
. 'be removed in a future release.'
);

list($gaService, $gaRequest) = Utils::GoogleAnalyticsServiceAndRequest("cron");
if ($gaService === null) {
Expand Down

0 comments on commit 5fca038

Please sign in to comment.