I'm looking for the best way (and also simplest if different) to accomplish this in Drupal 7.
Users arriving at example.com/special-redirect should be redirected quickly to example.com/newpage
Nothing needs to be rendered, but before they are redirected to the new URL on our site, I need to make sure our JS tracking script is executed.
the tracking script is currently loaded into the header from the theme.info file, and needs to run on every page of the site.
I assume that the URL redirect module won't accomplish this (ie. never loads the page).
I'm thinking I have to rely on the javascript method of putting this somewhere:
<script type="text/javascript">
window.location = "http://www.yoururl.com";
</script>
But I'm not sure where I should put this (or a modified one) on the site. It's just for the one page, but would putting it in the html.tpl.php file with and if statement for the NodeID work? I'm also open to moving the tracking script if it makes sense to.
thanks for any advice