NewsKit icon indicating copy to clipboard operation
NewsKit copied to clipboard

Mark `createTealiumHandler` as deprecated

Open Xin00163 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Data team is now using window.tealiumTrack() as a replacement of utag. This means NewsKit users should use

createTealiumTrackHandler:
extendedWindow.tealiumTrack(e);

instead of

createTealiumHandler:
extendedWindow.utag.view(e)
extendedWindow.utag.link(e);

Currently NewsKit export both handlers and Render team is using the createTealiumHandler, this results in help-hub and my account also using createTealiumHandler

Describe the solution you'd like

I suggest that we mark createTealiumHandler as deprecated and update the docs to point user to use the createTealiumTrackHandler

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Screenshot 2023-03-10 at 11 53 03

Xin00163 avatar Mar 10 '23 11:03 Xin00163

thanks, @Xin00163 makes sense to deprecate and remove the legacy method, we can look to remove it in the next major.

jps avatar Mar 10 '23 14:03 jps