Skip to content

Commit 0726591

Browse files
committed
Google Analytics on the example page
1 parent e687eb5 commit 0726591

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

index.html

+18-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h1>social-feed.js</h1>
6161

6262
var updateFeed = function() {
6363
var initialQuery = $('#query').val();
64-
initialQuery = initialQuery.replace(" ","");
64+
initialQuery = initialQuery.replace(" ", "");
6565
var queryTags = initialQuery.split(",");
6666
$('.social-feed-container').socialfeed({
6767
// FACEBOOK
@@ -118,6 +118,23 @@ <h1>social-feed.js</h1>
118118

119119
});
120120
</script>
121+
<!-- Remove this part on your website. This is only to track the popularity of the Social-feed plugin website-->
122+
<script>
123+
(function(i, s, o, g, r, a, m) {
124+
i['GoogleAnalyticsObject'] = r;
125+
i[r] = i[r] || function() {
126+
(i[r].q = i[r].q || []).push(arguments)
127+
}, i[r].l = 1 * new Date();
128+
a = s.createElement(o),
129+
m = s.getElementsByTagName(o)[0];
130+
a.async = 1;
131+
a.src = g;
132+
m.parentNode.insertBefore(a, m)
133+
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
134+
135+
ga('create', 'UA-59783367-1', 'auto');
136+
ga('send', 'pageview');
137+
</script>
121138
</body>
122139

123140
</html>

0 commit comments

Comments
 (0)