Commit df5a04be42786dd99df4a6aba619400ee0929ad0

Authored by Daniela Feitosa
1 parent 920b3139

Small enhancements on google analytics plugin

(ActionItem2208)
app/views/profile_editor/edit.rhtml
... ... @@ -73,8 +73,6 @@
73 73 </table>
74 74 <% end %>
75 75  
76   - <%= select_categories(:profile_data, _('Select the categories of your interest'), 2) %>
77   -
78 76 <h2><%= _('Translations') %></h2>
79 77 <%= labelled_check_box(
80 78 _('Automatic redirect the visitor to the translated article of him language'),
... ... @@ -87,11 +85,7 @@
87 85 end.join("\n")
88 86 %>
89 87  
90   - <%=
91   - @plugins.map(:profile_editor_extras).each do |content|
92   - content.respond_to?(:call) ? content.call : content
93   - end.join("\n")
94   - %>
  88 + <%= select_categories(:profile_data, _('Select the categories of your interest'), 2) %>
95 89  
96 90 <% button_bar do %>
97 91 <%= submit_button('save', _('Save'), :cancel => {:action => 'index'}) %>
... ...
plugins/google_analytics/doc/google_analytics.textile
1 1 h1. Google Analytics
2 2  
3   -Tracking and web analytics to people and communities.
  3 +Tracking and web analytics for people and communities.
4 4  
5 5 h2. Usage
6 6  
... ... @@ -8,11 +8,11 @@ Create and configure Google Analytics account following these steps:
8 8  
9 9 # Open "Google Analytics":http://www.google.com/analytics/
10 10 !=/plugins/google_analytics/images/doc/google-analytics-setup-step1.en.png(Google Setup - Step 1)!
11   -# Signin to Google Analytics
  11 +# Sign in to Google Analytics
12 12 !=/plugins/google_analytics/images/doc/google-analytics-setup-step2.en.png(Google Setup - Step 2)!
13   -# Following signup instructions
  13 +# Follow signup instructions
14 14 !=/plugins/google_analytics/images/doc/google-analytics-setup-step3.en.png(Google Setup - Step 3)!
15   -# Fill in _Website's URL_ with your profile address (eg.: softwarelivre.org/joenio), _Account Name_ with your name and read and accept terms of use
  15 +# Fill in _Website's URL_ with your profile address (eg.: softwarelivre.org/joenio), _Account Name_ with your name and read and accept terms of use
16 16 !=/plugins/google_analytics/images/doc/google-analytics-setup-step4.en.png(Google Setup - Step 4)!
17 17 # Accept default options, save and take note of your _Web Property ID_ (eg.: UA-23455430-3)
18 18 !=/plugins/google_analytics/images/doc/google-analytics-setup-step5.en.png(Google Setup - Step 5)!
... ...
plugins/google_analytics/lib/google_analytics_plugin.rb
... ... @@ -4,7 +4,8 @@ class GoogleAnalyticsPlugin &lt; Noosfero::Plugin
4 4  
5 5 include ActionView::Helpers::JavaScriptHelper
6 6 include ActionView::Helpers::FormHelper
7   - include ActionView::Helpers::UrlHelper
  7 + include ActionView::Helpers::UrlHelper
  8 + include ActionView::Helpers::TagHelper
8 9 include ApplicationHelper
9 10  
10 11 def self.plugin_name
... ...
plugins/google_analytics/public/images/doc/google-analytics-setup-step6.en.png

53.1 KB | W: | H:

51.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
plugins/google_analytics/views/profile-editor-extras.rhtml
1 1 <h2><%= _('Statistics') %></h2>
2   -<%= link_to _('See how configure statistics for your profile'), '/doc/plugins/google_analytics' %>
3 2 <%= labelled_form_field(_('Google Analytics Profile ID'), text_field(:profile_data, :google_analytics_profile_id, :value => profile_id)) %>
  3 +<%= link_to(_('See how to configure statistics for your profile'), '/doc/plugins/google_analytics', :target => '_blank') %>
... ...