How to run a alert window after submit button and vanilla soft data tracking

Can we run vanilla soft tracking and as well as confirmation dialogue at the same time