feat: complete Google Search Console and Analytics integration across admin panel and storefront
This commit is contained in:
1 parent
1fb5de764c
commit
f0457b5748
16 files changed
+7698
-7210
No files matched your search
@@ -571,6 +571,28 @@ export class SettingsService implements OnModuleInit {
|
||||
if (obj.ogImageUrl) {
|
||||
updates['ogImageUrl'] = String(obj.ogImageUrl);
|
||||
}
|
||||
if ('googleSiteVerification' in obj) {
|
||||
updates['googleSiteVerification'] = String(obj.googleSiteVerification ?? '');
|
||||
updates['google_site_verification'] = String(obj.googleSiteVerification ?? '');
|
||||
}
|
||||
if ('googleAnalyticsId' in obj) {
|
||||
updates['googleAnalyticsId'] = String(obj.googleAnalyticsId ?? '');
|
||||
updates['ga_measurement_id'] = String(obj.googleAnalyticsId ?? '');
|
||||
}
|
||||
if ('googleTagManagerId' in obj) {
|
||||
updates['googleTagManagerId'] = String(obj.googleTagManagerId ?? '');
|
||||
updates['gtm_id'] = String(obj.googleTagManagerId ?? '');
|
||||
}
|
||||
if ('enableGoogleAnalytics' in obj) {
|
||||
updates['enableGoogleAnalytics'] = String(Boolean(obj.enableGoogleAnalytics));
|
||||
}
|
||||
if ('enableGoogleTagManager' in obj) {
|
||||
updates['enableGoogleTagManager'] = String(Boolean(obj.enableGoogleTagManager));
|
||||
}
|
||||
if ('clarityProjectId' in obj) {
|
||||
updates['clarityProjectId'] = String(obj.clarityProjectId ?? '');
|
||||
updates['clarity_project_id'] = String(obj.clarityProjectId ?? '');
|
||||
}
|
||||
|
||||
if (Object.keys(updates).length > 0) {
|
||||
await this.updateBulkUiTexts(updates);
|
||||
|
||||
Reference in new issue
Block a user