Module: Sufia::Analytics

Defined in:
app/services/sufia/analytics.rb

Class Method Summary collapse

Class Method Details

.profileObject

Return a Google Analytics profile matching specified ID @ return [Legato::Management::Profile] A user profile associated with GA



60
61
62
63
64
# File 'app/services/sufia/analytics.rb', line 60

def self.profile
  user.profiles.detect do |profile|
    profile.web_property_id == Sufia.config.google_analytics_id
  end
end