How to add script in ionic pages

I am trying to add chat script in ionic page , can anyone guide me how to do that?
The script to be added is:

<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];

When i add the script to index.html it works fine but i have footer tab so this icon overlaps the item on footer. so i want to add this in any page in ionic.

And adding this to index.html didn’t achieve this?
Isn’t this more a positioning problem of the widget?

i am just asking , how to add scripts in ionic pages , adding that in index.htm worked but there is a footer so this chat widget overlap the footer .image

Yes, so why isn’t your question how to move this button x Pixels to the top? Wouldn’t this solve the problem? script dont have any customization . Can u help me to do that if possible

Thats not working . It was unsolved query though.