I have the following JS, currently it's just before my closing body tag

```
<script type='text/javascript' src='https://www.mydomain.com/jtrack.js'></script>
<script type='text/javascript' >
if (typeof trackPage == 'function') trackPage();
</script>

```

Part of this script sets a cookie, which I need to read in the Page\_Load event of my asp.net page. But that event is firing before the cookie is set. How can I change this so the script runs first?

Thanks