Hi Kaushalendra thanks again for your help with this, I've got a lot to learn.
The 'ips4_member_id' is an authenticated login value from the CRM software, this was being used against the MC service to link the two together.
I've tried removing the authentication against the MC service but it still causes issues trying to fire too early. I'm unable to move the original JS in the HTML to the beginning of the code. Is there any way I can change the timing within DTM of when the dataElement fires?