Skip to content

Commit 04477bf

Browse files
committed
Google Analytics ScrollDepth plugin (http://scrolldepth.parsnip.io/)
1 parent 63bedbb commit 04477bf

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,17 @@ <h2>Contact</h2>
154154
ga('create', 'UA-67613018-1', 'auto');
155155
ga('send', 'pageview');
156156
</script>
157+
158+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
159+
<script src="jquery.scrolldepth.min.js"></script>
160+
<script>
161+
$.scrollDepth({
162+
elements: ['#spill', '#bakgrunn', '#media', '#teamet', '#kontakt'],
163+
userTiming: true,
164+
gtmOverride: true,
165+
nonInteraction: false
166+
});
167+
</script>
168+
157169
</body>
158170
</html>

jquery.scrolldepth.min.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

norwegian.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,17 @@ <h2>Kontakt</h2>
154154
ga('create', 'UA-67613018-1', 'auto');
155155
ga('send', 'pageview');
156156
</script>
157+
158+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
159+
<script src="jquery.scrolldepth.min.js"></script>
160+
<script>
161+
$.scrollDepth({
162+
elements: ['#spill', '#bakgrunn', '#media', '#teamet', '#kontakt'],
163+
userTiming: true,
164+
gtmOverride: true,
165+
nonInteraction: false
166+
});
167+
</script>
168+
157169
</body>
158170
</html>

0 commit comments

Comments
 (0)