Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MWPW-163793] Dispatch analytics events for Compress PDF #192

Open
wants to merge 1 commit into
base: stage
Choose a base branch
from

Conversation

robert-bogos
Copy link
Collaborator

@robert-bogos robert-bogos self-assigned this Jan 10, 2025
Copy link

aem-code-sync bot commented Jan 10, 2025

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 PSI checks
  • Re-sync branch
Commits

Copy link

aem-code-sync bot commented Jan 10, 2025

this.block.dispatchEvent(new CustomEvent(unityConfig.trackAnalyticsEvent, { detail: { event: 'uploaded' } }));
}

async multiFileUpload(fileCount, eventName) {
this.block.dispatchEvent(
new CustomEvent(
unityConfig.trackAnalyticsEvent,
{ detail: { event: eventName } },
{ detail: { event: eventName, data: {count: fileCount}} },
Copy link
Collaborator

Choose a reason for hiding this comment

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

fileCount data is already being passed below when dispatching the multifile analytics event so believe this can be removed from here. This was tracked as a separate event based on analytics team wanting to track a new event for this. If this has since changed and you have some additional context for this, let's sync on this.

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