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

hass’s picture

Status: Active » Fixed

I 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 $closure and therefore must work.

Anonymous’s picture

I think bcswebstudio is talking about http://drupal.org/project/front module.

texas-bronius’s picture

jmesam 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.

hass’s picture

For 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....

texas-bronius’s picture

Oh gosh. Did I really not try that? It works perfectly as expected... thanks

*.. tucks tail.. shies away..*

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.