feat: add analytics providers to help center

This commit is contained in:
iamsivin
2026-07-22 11:37:19 +05:30
parent 89b83c65c8
commit a361462274
14 changed files with 296 additions and 1 deletions
@@ -80,6 +80,7 @@ class Api::V1::Accounts::PortalsController < Api::V1::Accounts::BaseController
:id, :color, :custom_domain, :header_text, :homepage_link,
:name, :page_title, :slug, :archived,
{ config: [:default_locale, :layout, { allowed_locales: [] }, { draft_locales: [] },
{ analytics: %i[ga4 gtm clarity hotjar meta_pixel] },
{ social_profiles: %i[facebook x instagram linkedin youtube tiktok github whatsapp] },
{ locale_translations: locale_translation_keys.index_with { %i[name page_title header_text] } },
{ popular_content: popular_content_keys.index_with { { category_ids: [], article_ids: [] } } }] }