Closed Bug 469822 Opened 17 years ago Closed 17 years ago

Google analytics contributed module

Categories

(Mozilla Messaging Graveyard :: Server Operations, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: paul, Assigned: gozer)

References

()

Details

Attachments

(1 file)

Hi Gozer , Can we get the Google analytics contributed module on stage for final testing. http://drupal.org/project/google_analytics Best, Paul
Done. Installed in staging and configured with our google analytics settings.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
@Gozer Would you let me know when the status of the stage domain is confirmed by google as receiving data. I'll then confirm that the google analytics contributed drupal module can add the google analytic javascript correctly. Thanks, Paul
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I created a new site in gogole analytics for stage.spreadthunderbird.com and updated the tracking code accordingly. So far, I've had no luck locating the tracking code anywhere on the site.
From the settings here: http://stage.spreadthunderbird.com/admin/settings/googleanalytics I can get the analytics code to show up if I pick Header placement under advanced settings, not if I pick Footer, the recommended default. On top of that, the tracker invocation itself is always placed at the footer (looking at the google analytics drupal module code) and that will not show up either. Is there something we are doing with our custom theme that might break things like: drupal_add_js($script, 'inline', 'footer');
Thanks for some great feedback. The problems is definitely not generic as i didn't come across these problems with garland (drupal default theme) I'll look into this problem on my local server / vps server ... -Paul
The problem is not something specific to the acquia marina theme . I'll investigate our derivative stb theme in the morning.
Sorry, the problem is specific to the acquia theme . I have attached a screen shot of a vanilla installation of drupal with the acquia theme and and few block configured on the right hand side , you'll see a lot of empty space as before.
Sorry Sorry , forget 7 In 7 i am actually talking about the problem with our theme generating lots of space and that it is attributed to the theme and not something that is connected with our theme derivative Ill look at 6 tomorrow , hope that's clear
Hello, The problem can resolved quickly with the patch given below but we will reintroduce the footer .. "Theme provided by Acquia, Inc. under GPL license from TopNotchThemes Drupal themes" .. which i think is a good thing on reflection as we should give clear recognition to TopNotchThemes who developed the base theme bash-3.1$ svn diff Index: page.tpl.php =================================================================== --- page.tpl.php (revision 20965) +++ page.tpl.php (working copy) @@ -205,6 +205,6 @@ </div><!-- /main-wrapper --> </div><!-- /main --> </div><!-- /page --> - <?php print $stb_closure; ?> + <?php print $closure; ?> </body> </html> Index: template.php =================================================================== --- template.php (revision 20965) +++ template.php (working copy) @@ -1,8 +1,4 @@ <?php -function stb_preprocess_page(&$vars) { - $vars['stb_closure'] .= '<div id="legal-notice"></div>'; -} - /** * Intercept template variables @Gozer Would you give me clearance please to commit the changes into SVN for final testing on stage Thanks Paul
You don't need clearance to commit things in SVN, as staging is in effect your playground. Check it in, and let me know so I can update staging.
I've locally applied that change just to check how it worked, and it does fix the google analytics problems. However, it introduces a new problem. "Theme provided by Acquia, Inc. under GPL license from TopNotchThemes Drupal themes" Now appears twice
Blocks: 469350
Not sure what the problem is at the moment. I don't see this problem on my VPS server where i have the STB theme hosted and from where the above patch was generated. I tried clearing the caches on the STB stage server but that didn't rectify the problem so it looks to be a real problem somewhere. Would you try the following on stage from the themes directory .. grep -r "under GPL license from TopNotchThemes" acquia_marina Actually you could try taking out the page template file page.tpl.php as this is now exactly the same as the acquia page template file I'll come back to this problem later today Best, Paul
Looks like the reason this is hapenning is because, somehow phptemplate_preprocess_page() in acquia_marina/template.php is invoked twice, with this bit of code running twice: $vars['closure'] .= '<div id="legal-notice">Theme provided by [...]
Looks have been resolved.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Sorry, ignore the previous comment.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Committed r21289
Upgraded stating, still showing twice...
Would you try clearing the drupal cache tables directly . The problem with the footer is resolved on my local server but i think i did clear all the tables manually.
I'd need more detailled instructions on how to clear these. But I don't think that's going to make it work, as I've fiddled with that template page, and I can make simple changes to it and see my changes reflected right away. Twice, when touching the footer.
@ Gozer Would you try truncating all the tables of the form cache_* please . If that doesn't work ill look at the problem again in the morning.
The stb theme is definitely working fine as i can download it onto my local server and also onto my vps server on the internet where in both cases i have a server setup running drupal 6 with our list of contributed modules and acquia theme . On my local server i have also a fairly recent snap shop of the live database. I think there must be a problem with one or several of the following. 1. drupal cache 2. proxy cache 3. stb directory in svn I'll attach my HTTP headers for stage.spreadthunderbird.com ..
Looks like it was induced by cacherouter (http://drupal.org/project/cacherouter). I've disabled it's advanced options and the problem went away, so I've made the same change in production.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Thanks for working this problem out. Would you mind adding any other additional modules that you have added to stage/production to our wiki page @ https://wiki.mozilla.org/Spreadthunderbird Thanks Paul
Updated wiki documentation.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: