Skip to content

Commit

Permalink
ACMS-3443: Add key to telemetry data to idenfy the new site installat…
Browse files Browse the repository at this point in the history
…ions.
  • Loading branch information
rajeshreeputra committed Apr 19, 2024
1 parent e48bbed commit 6f8552c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
user_login_redirection: true
starter_kit_name: no_starter_kit
new_installation: 1
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ acquia_cms_common.settings:
starter_kit_name:
type: string
label: 'The starterkit name'
new_installation:
type: boolean
label: 'The new site installation status'
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ private function getAcquiaCmsTelemetryData(): array {
];
}

// Add new site installation identification key to telemetry data.
$installationStatus = FALSE;
if (!$this->state->get('acquia_cms.telemetry.data_previously_sent', FALSE)) {
$installationStatus = TRUE;
}
$telemetryData['acquia_cms']['new_installation'] = $installationStatus;

return $telemetryData;
}

Expand Down

0 comments on commit 6f8552c

Please sign in to comment.