I am pretty new to Drupal, but found it easy to create a site. Now my company would like to use a third party tracker to track who has been to our site. I have the correct tracking code, its is a .js, I am just not sure where to place it.
I'm trying to write a module that will check regularly the current node status. The module's function is to publish a post with a future date. When the authorized date has not yet come, the post will remain unpublished. I'd like to know which hook I'll use to constantly check the current date and compare it to the nodes post date and set the status to publish if necessary. I can use hook_cron but it will be a problem if the cron tab is set to run at a long interval. A hook that is called before the node in 'teaser' and 'full' mode is displayed will be great.