AA-491: Update MFE with analytics event (#351)

These already exist in the legacy view. This is just porting them
over into the MFEs
This commit is contained in:
Dillon Dumesnil
2021-02-02 05:39:27 -08:00
committed by GitHub
parent 629382f719
commit 50e649daa3
8 changed files with 99 additions and 6 deletions

View File

@@ -39,6 +39,7 @@ function Course({
canShowUpgradeSock,
celebrations,
offer,
org,
userTimezone,
verifiedMode,
} = course;
@@ -119,7 +120,15 @@ function Course({
open
/>
)}
{canShowUpgradeSock && <CourseSock offer={offer} verifiedMode={verifiedMode} />}
{canShowUpgradeSock && (
<CourseSock
courseId={courseId}
offer={offer}
orgKey={org}
pageLocation="Course Content Page"
verifiedMode={verifiedMode}
/>
)}
<ContentTools course={course} />
</>
);