I am trying to access the current $node variables in the html.tpl.php within Drupal 7. The problem is that I am running a Analytics software in the backend for which I've to record each page's analytics from html.tpl.php.
If there's a normal page, I have to record generic attributes but if it's a node, I need the following things in the
- Title of the Content (Node)
- Content Type of the Content
I can do this in
$node->type;, but unfortunately I need it in html.tpl.php.