Sha256: aabe6d208b0bfd77b84ae6e7f70a431fa38d7d937ef26321a307d11c80e05ce0

Contents?: true

Size: 656 Bytes

Versions: 9

Compression:

Stored size: 656 Bytes

Contents

<% unless refinery_user? or
          (page_code = RefinerySetting.get(:analytics_page_code).to_s.strip) =~ /^(UA-xxxxxx-x)?$/ -%>
  <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', '<%= page_code %>']);
    _gaq.push(['_trackPageview']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
    })();
  </script>
<% end -%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-0.9.8.9 vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb
refinerycms-0.9.8.8 vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb
refinerycms-0.9.8.7 vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb
refinerycms-0.9.8.6 vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb
refinerycms-0.9.8.5 vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb
refinerycms-0.9.8.4 vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb
refinerycms-0.9.8.3 vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb
refinerycms-0.9.8.2 vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb
refinerycms-0.9.8.1 vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb