Skip to content

Conversation

@GHaberis
Copy link
Contributor

@GHaberis GHaberis commented Jan 23, 2026

What does this change?

Undoes the changes implemented here #15018 and then here #15074 - we don't need to rehydrate the various Affiliate Disclaimer components in the client and fire a custom Ophan Component Event in order to detect it is on the page, we can just add the data-component attribute to the server-side rendered element - on page load Ophan tracker-js will track any HTML elements on the page with the data-component attribute!

I've therefore refactored these components back to being purely server-side as they're less complex and it means less .js to ship to & run in the browser.

Why?

Less code to achieve what we want.

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