diff --git a/_src/_assets/javascripts/bigchain/analytics.js b/_src/_assets/javascripts/bigchain/analytics.js index 081fe30..1a2fc4b 100644 --- a/_src/_assets/javascripts/bigchain/analytics.js +++ b/_src/_assets/javascripts/bigchain/analytics.js @@ -29,6 +29,31 @@ var GoogleAnalytics = (function(w,d,$) { $('.js-tracking-whitepaper-download').on('click', function() { ga('send', 'event', 'whitepaper', 'download', 'button', true); }); + + // Social links + $('.js-social-link').on('click', function() { + + var href = this.getAttribute('href'), + network = extractDomain(href); + + ga('send', 'event', 'social', 'click', network); + }); + + function extractDomain(url) { + var domain; + //find & remove protocol (http, ftp, etc.) and get domain + if (url.indexOf("://") > -1) { + domain = url.split('/')[2]; + } + else { + domain = url.split('/')[0]; + } + + //find & remove port number + domain = domain.split(':')[0]; + + return domain; + } }, diff --git a/_src/_assets/javascripts/page-community.js b/_src/_assets/javascripts/page-community.js index ab88b7b..a77f41a 100644 --- a/_src/_assets/javascripts/page-community.js +++ b/_src/_assets/javascripts/page-community.js @@ -1,8 +1,11 @@ //=include ../../../node_modules/is-in-viewport/lib/isInViewport.js +//=include bigchain/testimonials.js jQuery(function($) { + Testimonials.init(); + var wrigley = $('#wrigley'), wrigleyArm = wrigley.find('#arm'), wrigleyHead = wrigley.find('#head'), diff --git a/_src/community.html b/_src/community.html index 7981100..f82e867 100644 --- a/_src/community.html +++ b/_src/community.html @@ -5,6 +5,7 @@ title: Community description: 'There are many ways you can contribute to the BigchainDB project, some very easy and others more involved.' js: page-community.min.js +quotes: set3 ---
@@ -20,13 +21,13 @@ js: page-community.min.js

Join the discussion

Participate via Gitter or Google Group

- -

- - @@ -68,3 +69,5 @@ js: page-community.min.js

{% include section-newsletter.html %} + +{% include section-testimonials.html %} diff --git a/_src/features.html b/_src/features.html index f85a00a..b2f4a1d 100644 --- a/_src/features.html +++ b/_src/features.html @@ -227,7 +227,7 @@ js: page-features.min.js

- Learn More + Read Guidelines