Skip to content

Commit

Permalink
(blog) Add GA script to all posts
Browse files Browse the repository at this point in the history
  • Loading branch information
thewarpaint committed Sep 9, 2018
1 parent dc4225b commit bddea8e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
9 changes: 9 additions & 0 deletions _includes/google-analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<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','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-67413205-1', 'auto');
ga('send', 'pageview');
</script>
11 changes: 1 addition & 10 deletions _posts/2018-04-28-a-year-in-the-life.html
Original file line number Diff line number Diff line change
Expand Up @@ -2741,15 +2741,6 @@ <h2>Notes</h2>
&copy; where &copy; is due. Please <sup>don't <sup>sue <sup>me <sup>:(</sup></sup></sup></sup></li>
</ol>

<!-- [ANACHRONISM INTENSIFIES] -->
<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','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-67413205-1', 'auto');
ga('send', 'pageview');
</script>
{%- include google-analytics.html -%}
</body>
</html>
2 changes: 2 additions & 0 deletions _posts/2018-07-10-evolucion-territorial-de-mexico.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,5 +339,7 @@ <h2>Referencias</h2>
</li>
{%- endfor -%}
</ul>

{%- include google-analytics.html -%}
</body>
</html>
2 changes: 2 additions & 0 deletions _posts/2018-09-01-taqueria-generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,7 @@ <h2 class="taqueria__name">
class="taqueria__button"
onclick="renderNewTaqueria()">Generar</button>
</div>

{%- include google-analytics.html -%}
</body>
</html>

0 comments on commit bddea8e

Please sign in to comment.