Sha256: d723c7d2042d0e530eaa529f15ed6c74d3a5e43b9c08a479ffff97c28f418475

Contents?: true

Size: 1.11 KB

Versions: 3

Compression:

Stored size: 1.11 KB

Contents

<%-	if google_analytics_id  %>
  <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

    ga('create', '<%= google_analytics_id %>', 'auto');
    <%-	if current_user && current_user.uuid  %>
      ga('set', 'userId', '<%= current_user.uuid %>');
    <%- end %>
    ga('send', 'pageview');

  </script>
<%-	 end  %>

<%-	if hotjar_id  %>
    <!-- Hotjar Tracking Code -->
    <script>
        (function(h,o,t,j,a,r){
            h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
            h._hjSettings={hjid:<%= hotjar_id %>,hjsv:5};
            a=o.getElementsByTagName('head')[0];
            r=o.createElement('script');r.async=1;
            r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
            a.appendChild(r);
        })(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
    </script>
<%-	 end  %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gorg_engine-1.2.4 app/views/layouts/gorg_engine/_tracking.html.erb
gorg_engine-1.2.3 app/views/layouts/gorg_engine/_tracking.html.erb
gorg_engine-1.2.0 app/views/layouts/gorg_engine/_tracking.html.erb