dotcom-rendering icon indicating copy to clipboard operation
dotcom-rendering copied to clipboard

[BUG] Show / Hide container buttons sending wrong events to Ophan

Open cemms1 opened this issue 1 year ago • 2 comments

The toggleContainer function in the ShowHideContainers component seems sets the data-link-name attributes correctly but when clicking on the button on a front container, the click event looks like the opposite of what should happen ("Hide" sends event for "Show" and vice versa - see attached video).

https://github.com/guardian/dotcom-rendering/blob/037b0ceb7fbcbefcabc9d8ab53e24e348daa5cde/dotcom-rendering/src/components/ShowHideContainers.importable.tsx#L25-L46

https://github.com/guardian/dotcom-rendering/assets/43961396/68fde9a4-bbee-4f1b-981e-6aaef2886eb3

cemms1 avatar May 29 '24 11:05 cemms1

I think @guardian/ophan may be able to advise, here. There’s no guarantee that our systems will respond to the click and change the data-link-name attribute quicker than @guardian/ophan-tracker-js can pick it up.

mxdvl avatar May 30 '24 15:05 mxdvl

@shesah to check with Anthony/D&I if this feature is being used.

shesah avatar Jun 13 '24 14:06 shesah

I spoke to Anthony about this and he said he will get back to us on its importance.

shesah avatar Jul 04 '24 09:07 shesah

From Anthony:

Hey, short answer is that we're making a new tracking source of truth and can document the issue now so that analysts know how to gather the data correctly. It definitely doesn't need to be fixed asap, but it'd be nice to have the right way round down the line.

Also Fairground is talking about removing the feature altogether with Jo now. So it might be a non-issue

shesah avatar Jul 04 '24 09:07 shesah

Closing as not planned

DanielCliftonGuardian avatar Jul 12 '24 10:07 DanielCliftonGuardian