Skip to content

Consistently sets self hosted video tracking ID#15739

Merged
SHession merged 1 commit into
mainfrom
sh/use-consistent-lower-case-self-hosted-video-id
Apr 22, 2026
Merged

Consistently sets self hosted video tracking ID#15739
SHession merged 1 commit into
mainfrom
sh/use-consistent-lower-case-self-hosted-video-id

Conversation

@SHession
Copy link
Copy Markdown
Contributor

What does this change?

This change sets the dataLinkName setting the videoStyle to lower case. This is consistent with how media events are sent:

const ophanVideoStyle = videoStyle.toLowerCase() as OphanVideoStyle;

Why?

Event IDs are currently capitalised inconsistently:

Click events:

["gu-video-Loop-play-11ca062f-a073-4ada-8d15-1cba8bc87ae6","container-3 | flexible-general","Front | /dominik"]

Media:

{"id":"gu-video-loop-11ca062f-a073-4ada-8d15-1cba8bc87ae6","eventType":"video:content:play"}

It's questionable whether we need these click events, but they shouldn't cause any harm. Having a consistent ID will make life easier downstream.

@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

Copy link
Copy Markdown
Contributor

@abeddow91 abeddow91 left a comment

Choose a reason for hiding this comment

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

Great! Thanks for improving consistency across the platform

@SHession SHession added the fix Departmental tracking: fix label Apr 22, 2026
@SHession SHession added the run_chromatic Runs chromatic when label is applied label Apr 22, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Apr 22, 2026
@SHession SHession merged commit d8f8cd0 into main Apr 22, 2026
29 of 30 checks passed
@SHession SHession deleted the sh/use-consistent-lower-case-self-hosted-video-id branch April 22, 2026 15:52
@gu-prout
Copy link
Copy Markdown

gu-prout Bot commented Apr 22, 2026

Seen on PROD (merged by @SHession 10 minutes and 23 seconds ago) Please check your changes!

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

Labels

fix Departmental tracking: fix Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants