Skip to content

include Google Analytics

Jose Ramon edited this page May 31, 2014 · 5 revisions

To take advantage of the Integration with the Google Analytics Service you should add the analytics script to the public side of your application and then create an intializer called when you setup your authentication with Google

# The configuration values you can provide are

Adminpanel.setup do |config|
	# You get this from the Google Analytics Dashboard, this configuration is required.
	config.analytics_profile_id = '12341234'
	# The next configuration is the file used to establish server to server authentication/authorization
	# you need to download this file from the Google Developers Console
	# and place it inside your application, this configuration is required.
	config.analytics_key_filename = '12345ABCDE.p12'
	# Path to the key file, defaults to config/analytics
	config.analytics_key_path = "config/analytics"
end

Currently it only shows the visits from the last week, but more integrations will come.

For more information about using the Google API visit

Clone this wiki locally