Groups portal Google Analytics code
Add optional GA tracking code variable to settings.php template and add tracking code to groups.openstack.org site. Change-Id: Iddf223cab9ef672178f4e2984cdacf27a8d0f16f
This commit is contained in:
parent
142410fc33
commit
74b0d58d53
@ -70,6 +70,7 @@ class drupal (
|
||||
$package_branch = undef,
|
||||
$conf_cron_key = undef,
|
||||
$conf_markdown_directory = undef,
|
||||
$conf_ga_account = undef,
|
||||
) {
|
||||
include apache
|
||||
include pear
|
||||
|
@ -11,4 +11,7 @@ $conf['cron_key'] = '<%= @conf_cron_key %>';
|
||||
<% end %>
|
||||
<% if @conf_markdown_directory %>
|
||||
$conf['groups_feeds_markdown_directory'] = '<%= @conf_markdown_directory %>';
|
||||
<% end %>
|
||||
<% if @conf_ga_account %>
|
||||
$conf['googleanalytics_account'] = '<%= @conf_ga_account %>';
|
||||
<% end %>
|
@ -54,6 +54,7 @@ class openstack_project::groups (
|
||||
package_branch => 'groups-latest',
|
||||
conf_cron_key => $conf_cron_key,
|
||||
conf_markdown_directory => '/srv/groups-static-pages',
|
||||
conf_ga_account => 'UA-17511903-1',
|
||||
require => [ Class['openstack_project::server'],
|
||||
Vcsrepo['/srv/groups-static-pages'] ],
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user