Skip to content

Rework Analytics initialization - #357

Merged
sc-nikolaoslazaridis merged 26 commits into
analytics-epicfrom
feature/JSS-8782
Feb 3, 2026
Merged

Rework Analytics initialization#357
sc-nikolaoslazaridis merged 26 commits into
analytics-epicfrom
feature/JSS-8782

Conversation

@sc-nikolaoslazaridis

@sc-nikolaoslazaridis sc-nikolaoslazaridis commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

Description / Motivation

Introduce new initialization functionality for the SDK and use it for the analytics packages.

  • Add initSitecore to core package to enable initialization
  • Adapt analytics-core, events, personalize packages to the new init function
  • Create adapters for proxy environments for analytics and personalize packages in the nextjs package
  • Use the new init functions in both nextjs templates

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@sc-nikolaoslazaridis sc-nikolaoslazaridis changed the title feat: add initialization to core package Rework Analytics initialization Jan 28, 2026
@sc-nikolaoslazaridis
sc-nikolaoslazaridis marked this pull request as ready for review January 28, 2026 17:24
@sc-nikolaoslazaridis
sc-nikolaoslazaridis marked this pull request as draft January 28, 2026 18:53
@sc-nikolaoslazaridis
sc-nikolaoslazaridis changed the base branch from analytics-epic to dev January 28, 2026 18:55
@github-actions

github-actions Bot commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

📦 Package Size and Test Coverage Report

Package Base Size PR Size Δ Change Base Coverage PR Coverage Δ Change
analytics-core 122.52 KB 74.58 KB 🔻 -47.94 KB 100.00% 100.00% 0.00%
cli 58.70 KB 58.70 KB ✅ 0.00 KB 69.73% 69.73% 0.00%
content 397.70 KB 397.69 KB 🔻 -0.01 KB 92.26% 92.26% 0.00%
core 95.15 KB 104.19 KB 🔺 +9.04 KB 92.12% ⚠️ N/A ⚠️ N/A
create-content-sdk-app 243.64 KB 244.22 KB 🔺 +0.58 KB 96.22% 96.22% 0.00%
events 76.91 KB 66.41 KB 🔻 -10.50 KB 98.40% 98.17% -0.23%
nextjs 430.44 KB 449.96 KB 🔺 +19.52 KB 89.73% 90.18% +0.45%
personalize 63.45 KB 64.98 KB 🔺 +1.53 KB 99.32% 100.00% +0.68%
react 289.47 KB 289.47 KB ✅ 0.00 KB 93.63% 93.63% 0.00%
search 7.11 KB 7.11 KB ✅ 0.00 KB 98.57% 98.57% 0.00%
Total 🔻 -27.78 KB

@sc-nikolaoslazaridis
sc-nikolaoslazaridis changed the base branch from dev to analytics-epic January 29, 2026 16:37
@sc-nikolaoslazaridis
sc-nikolaoslazaridis marked this pull request as ready for review January 29, 2026 16:41

@illiakovalenko illiakovalenko left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a solid solution - great job!
Please see some review comments below

Comment thread CHANGELOG.md Outdated
Comment thread packages/analytics-core/package.json
Comment thread packages/events/src/debug.ts Outdated
Comment thread packages/core/src/initialization/consts.ts Outdated
Comment thread packages/core/src/index.ts Outdated
Comment thread packages/core/src/initialization/types.ts Outdated
Comment thread packages/core/src/initialization/types.ts Outdated
Comment thread packages/analytics-core/src/debug/debug.ts Outdated
Comment thread packages/analytics-core/src/initialization/types.ts
Comment thread packages/personalize/src/debug.ts Outdated
sc-nikolaoslazaridis and others added 4 commits February 2, 2026 17:27
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>

@illiakovalenko illiakovalenko left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sc-nikolaoslazaridis
sc-nikolaoslazaridis merged commit ff63953 into analytics-epic Feb 3, 2026
@sc-nikolaoslazaridis
sc-nikolaoslazaridis deleted the feature/JSS-8782 branch February 3, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants