Hi @zed_haque
If I have a lot of handlers to add then I group them in to functional groups and use a javascript extension rather than the templated handler extensions.
Example:
I have a site where the SPA fires window events on interesting changes, so we've configured Tealium with about 10 extensions that contain related handlers, which then deal with the events.
For example:
Ext: Navigation Handlers
$(window).on("logo_click", (event,data) => { ... utag.link(data); } ); $(window).on("nav_button_click", (event,data) => { ... utag.link(data); } );
Ext: Search Handlers
$(window).on("perform_search", (event,data) => { ... utag.link(data); } ); $(window).on("search_result_click", (event,data) => { ... utag.link(data); } );
Ext: Registration Journey Handlers
$(window).on("registration_start", (event,data) => { ... utag.link(data); } );
$(window).on("registration_step_change", (event,data) => { ... utag.link(data); } );
$(window).on("registration_complete", (event,data) => { ... utag.link(data); } );
And so on...
This means we've got about thirty handlers into about ten extensions.
Is that similar to what you are trying to do?
... View more