Skip to content

Commit bddea8e

Browse files
committed
(blog) Add GA script to all posts
1 parent dc4225b commit bddea8e

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

_includes/google-analytics.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6+
7+
ga('create', 'UA-67413205-1', 'auto');
8+
ga('send', 'pageview');
9+
</script>

_posts/2018-04-28-a-year-in-the-life.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,15 +2741,6 @@ <h2>Notes</h2>
27412741
&copy; where &copy; is due. Please <sup>don't <sup>sue <sup>me <sup>:(</sup></sup></sup></sup></li>
27422742
</ol>
27432743

2744-
<!-- [ANACHRONISM INTENSIFIES] -->
2745-
<script>
2746-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
2747-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
2748-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
2749-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
2750-
2751-
ga('create', 'UA-67413205-1', 'auto');
2752-
ga('send', 'pageview');
2753-
</script>
2744+
{%- include google-analytics.html -%}
27542745
</body>
27552746
</html>

_posts/2018-07-10-evolucion-territorial-de-mexico.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,5 +339,7 @@ <h2>Referencias</h2>
339339
</li>
340340
{%- endfor -%}
341341
</ul>
342+
343+
{%- include google-analytics.html -%}
342344
</body>
343345
</html>

_posts/2018-09-01-taqueria-generator.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,7 @@ <h2 class="taqueria__name">
154154
class="taqueria__button"
155155
onclick="renderNewTaqueria()">Generar</button>
156156
</div>
157+
158+
{%- include google-analytics.html -%}
157159
</body>
158160
</html>

0 commit comments

Comments
 (0)