Skip to content

Commit 4709f4a

Browse files
committed
Added reveal-ga, fixes #1
1 parent a30f722 commit 4709f4a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
"repository": {
2222
"type": "git",
2323
"url": "git@github.com:stevegrunwell/building-for-php-cli.git"
24-
2524
},
2625
"scripts": {
2726
"test": "grunt test"
27+
},
28+
"dependencies": {
29+
"reveal-ga": "^0.1.0"
2830
}
2931
}

templates/_index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<script src="bower_components/reveal.js/lib/js/head.min.js"></script>
5959
<script src="bower_components/reveal.js/js/reveal.js"></script>
6060
<script>
61+
var gaPropertyID = 'UA-72219675-4';
6162

6263
// Full list of configuration options available at:
6364
// https://github.com/hakimel/reveal.js#configuration
@@ -77,7 +78,8 @@
7778
{ src: 'bower_components/reveal.js/plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( '[data-html]' ) || !!document.querySelector( 'pre code' ) || !!document.querySelector( '[data-markdown]' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
7879
{ src: 'bower_components/reveal.js/plugin/zoom-js/zoom.js', async: true },
7980
{ src: 'bower_components/reveal.js/plugin/notes/notes.js', async: true },
80-
{ src: 'js/loadhtmlslides.js', condition: function() { return !!document.querySelector( '[data-html]' ); } }
81+
{ src: 'js/loadhtmlslides.js', condition: function() { return !!document.querySelector( '[data-html]' ); } },
82+
{ src: 'node_modules/reveal-ga/dist/reveal-ga.min.js' }
8183
]
8284
});
8385

0 commit comments

Comments
 (0)