I have implemented the custom tracking through DTM but in Adobe Analytics 80% data is Unspecified while checking in debugging mode it's showing the accurate data is being passed to the AA.
What changes I need to make in tracking code?
P.S. I have implemented the events through SC tool >> Customize Page Code > Editor.
This looks correct. Our internal search terms report looks very similar. This just means that of all the occurrences on your site (which is pretty much every page view and hit combined) a decent percentage of them happened before anything had been searched. In addition to recording internal search terms, are you setting a custom event when the internal search term is recorded? I would use that event instead of occurrences in this report. As long as there is an internal search term for each time that you record the internal search term, everything looks correct.
For your "support flow step", this means that roughly 75% (I'm just guessing) of your occurrences don't happen in the support flow. So for these users, the majority of their occurrences are on the home page, or search page, or other pages where you aren't specifying the support flow step.
Please look into the below screenshot this, I have implemented the internal site search on the site but it's showing the most of the searches as a Unspecified. When we debug the tracking it's showing data is being passed to the AA.
here is another example of Support flow.
When you say "unspecified", what are you referring to? Are you looking at the pages report and 80% of page views have an unspecified pagename? Or 80% of unique visitors have an unspecified mobile device? In many cases, high levels of unspecified values in a report is normal.