Skip to content

Commit

Permalink
Google analytics was added
Browse files Browse the repository at this point in the history
  • Loading branch information
tayfunoziserikan committed Mar 25, 2014
1 parent 93a2ea5 commit c368e2f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
4 changes: 3 additions & 1 deletion source/layouts/layout.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
= favicon_tag 'favicon.png'
= yield_content :head

%body#home{class: @page || 'page', 'data-spy' => 'scroll', 'data-target' => '#navigation'}
%body#home{'data-spy' => 'scroll', 'data-target' => '#navigation'}

%header#header.header
.wrapper
Expand Down Expand Up @@ -54,6 +54,8 @@
%h4 © 2014 LAB2023, CORP.
%p The all designs, materials and contents trademarks of lab2023, corp.

= partial 'layouts/partials/trackers'

/ Javascripts
= yield_content :foot
= javascript_include_tag '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js',
Expand Down
10 changes: 10 additions & 0 deletions source/layouts/partials/_trackers.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
:javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12243799-3']);
_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';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
11 changes: 6 additions & 5 deletions source/layouts/post.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
= favicon_tag 'favicon.png'
= yield_content :head

%body#blog{class: @page || 'page', 'data-spy' => 'scroll', 'data-target' => '#navigation'}
%body#blog

BLOG LAYOUT

Expand All @@ -31,8 +31,7 @@
= yield

- # Disquss
#disqus_thread
#disqus_thread
#disquss_thread
:javascript
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'lab2023'; // required: replace example with your forum shortname
Expand All @@ -45,8 +44,8 @@
})();
%noscript
Please enable JavaScript to view the
%a{href: "http://disqus.com/?ref_noscript"} comments powered by Disqus.
%a.dsq-brlink{href: "http://disqus.com"}
%a{href: 'http://disqus.com/?ref_noscript'} comments powered by Disqus.
%a.dsq-brlink{href: 'http://disqus.com'}
comments powered by
%span.logo-disqus Disqus
- # End of disquss
Expand All @@ -55,6 +54,8 @@
%h4 © 2014 LAB2023, CORP.
%p The all designs, materials and contents trademarks of lab2023, corp.

= partial 'layouts/partials/trackers'

/ Javascripts
= yield_content :foot
= javascript_include_tag '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js',
Expand Down
4 changes: 3 additions & 1 deletion source/layouts/posts.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
= favicon_tag 'favicon.png'
= yield_content :head

%body#blog{class: @page || 'page', 'data-spy' => 'scroll', 'data-target' => '#navigation'}
%body#blog

BLOG LAYOUT

Expand All @@ -21,6 +21,8 @@
%h4 © 2014 LAB2023, CORP.
%p The all designs, materials and contents trademarks of lab2023, corp.

= partial 'layouts/partials/trackers'

/ Javascripts
= yield_content :foot
= javascript_include_tag '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js',
Expand Down

0 comments on commit c368e2f

Please sign in to comment.