Skip to content

Changes required in remove background analytics to build splunk dashboard#815

Merged
arugupta1992 merged 4 commits into
stagefrom
rbg-dashboard
Jun 17, 2026
Merged

Changes required in remove background analytics to build splunk dashboard#815
arugupta1992 merged 4 commits into
stagefrom
rbg-dashboard

Conversation

@arugupta1992

Copy link
Copy Markdown
Collaborator
  1. Added parameter to classiffiy signedin vs signed out users
  2. Added workflow parameter to all events
  3. Synced the server error namin across events
  4. Wrapped connector cal in try catch to record it's failures and success

Resolves: MWPW-NUMBER

Test URLs:

@aem-code-sync

aem-code-sync Bot commented Jun 16, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run all PSI checks
  • Re-run failed PSI checks
  • Re-sync branch
Commits

this.sendAnalyticsToSplunk?.(
eventName,
this.workflowCfg.productName,
this.getAnalyticsMeta(data),

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.

trackEvent already calls this method and we're calling it again here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

trackEvent calls logAnalyticsinSplunk. Here it is using sendAnalyticsToSplunk. Am i missing anything?

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.

Sorry I was referring to why getAnalyticsMeta is also being called here when it is called in trackEvent before we logAnalyticsInSplunk.

@arugupta1992 arugupta1992 Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ohh, my bad.
trackEvent is used when analytics are to be pushed to both AA and splunk. For building the splunk dashboard we add few more analytics which are pushed only to splunk, so at those points logAnalyticsinSplunk is called directly. For those cases getAnalyticsMeta is called here.

@arugupta1992 arugupta1992 changed the title Changes required in analytics to build splunk dashboard Changes required in remove background analytics to build splunk dashboard Jun 17, 2026

@vipu0303 vipu0303 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.

lgtm

this.resultAssetId = null;
sendAnalyticsEvent(new CustomEvent('Cancel|UnityWidget'));
this.logAnalyticsinSplunk('Cancel|UnityWidget', { assetId });
this.trackEvent('Cancel|UnityWidget', { assetId });

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.

please define this string in analytics.js as we do for other similar strings.

sendAnalyticsEvent(new CustomEvent('Uploading Started|UnityWidget'));
const { isGuest } = await isGuestUser();
this.isGuestUser = isGuest;
this.trackEvent('Uploading Started|UnityWidget');

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.

thanks for catching this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants