Installation and configuration was a breeze! But how can I get the analytics snippet to show on a non-themed Advanced Front Page front_page? I tried print $closure; , but I guess no-theme means no drupal vars were processed at all..
This teeters on general Drupal theming, but this question is specific to Google Analytics.
Comments
Comment #1
hass commentedI cannot find an Advanced Front Page module on d.o. The font page is normally a page.tpl.php and if this has been changed in a drupal way the template should be a page-front.tpl.php or similar and will also have the
$closureand therefore must work.Comment #2
Anonymous (not verified) commentedI think bcswebstudio is talking about http://drupal.org/project/front module.
Comment #3
texas-bronius commentedjmesam is correct-- sorry to confuse.. it appears in the drupal admin menu as "Advanced Front Page" (and in fact, I struggle to find it each time I want to administer it)
Effectively, I am given the option to specify a complete php/html page from scratch: no theme, no drupal hooks. With the php, however, I ought to be able to pull out *some* drupal themeness, I would think, and once having done so, I ought to be able to easily use print $closure. I just don't know how to go from zero to $closure-availability.
Comment #4
hass commentedFor static pages you are able to add a static tracking code to your static page code... grab it from your google account or from a page where it is added... or you simply remove the front module and move over to a page-front.tpl.php. Last sounds more D6 upgrade friendly to me....
Comment #5
texas-bronius commentedOh gosh. Did I really not try that? It works perfectly as expected... thanks
*.. tucks tail.. shies away..*