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 23, 2024
1 parent d0e52d1 commit 19e037e
Show file tree
Hide file tree
Showing 3 changed files with 8 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 @@ -212,11 +212,15 @@ private function getAcquiaCmsTelemetryData(): array {
'site_studio_status' => $this->siteStudioStatus(),
'install_time' => $this->state->get('acquia_cms.telemetry.install_time', ''),
'profile' => $this->configFactory->get('core.extension')->get('profile'),
'new_installation' => $this->configFactory->get('acquia_cms_common.settings')->get('new_installation'),
],
'extensions' => $this->getExtensionInfo(),
];
}

// Set new installation key to FALSE.
$this->configFactory->getEditable('acquia_cms_common.settings')->set('new_installation', 0)->save(TRUE);

return $telemetryData;
}

Expand Down

0 comments on commit 19e037e

Please sign in to comment.