Skip to content

Commit 927407c

Browse files
add analytics to embed-preview.html
1 parent c2d8aa7 commit 927407c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

embed-preview.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,5 +244,18 @@ <h2>4. Live preview</h1>
244244
<iframe width="400px" height="400px" src="index.html?embed=1&preview=1" style="border:1px solid #00A3D3;border-radius:20px;"></iframe>
245245
</div>
246246
</div>
247+
<script type="text/javascript">
248+
249+
var _gaq = _gaq || [];
250+
_gaq.push(['_setAccount', 'UA-38761552-1']);
251+
_gaq.push(['_trackPageview']);
252+
253+
(function() {
254+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
255+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
256+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
257+
})();
258+
259+
</script>
247260
</body>
248261
</html>

0 commit comments

Comments
 (0)