Since Google allows you to user your own email account for google apps it's not useful to lookup the domain in the $email string variable if it's gmail.com or mail.google.com:

if( stristr($email, 'gmail.com') || stristr($email, 'mail.google.com') ) {
  $type = 'GOOGLE';
} else {
  $type = 'HOSTED';
}

If you leave this, you might have some problems with authentication.

So that's why I added a Type Selection at the Config Form to choose the Type of Account manually.
Please find attached Patch for this.

Comments

daniela basualdo’s picture

Status: Active » Needs review
StatusFileSize
new0 bytes
arpieb’s picture

The above patch is empty, dropped a line to @daniela but needed something ASAP for use on a site. Here's the patch I cooked up...

arpieb’s picture

I'm batting 0 for 2 today in rolling bad patches... :-\

The above patch for some reason didn't pick up the changes to ga_stats.module - corrected in this one.

jec006’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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