Permalink
Browse files

fix checking that GA has loaded in FB share tracking

  • Loading branch information...
struan committed Apr 19, 2017
1 parent c07a0ad commit 539eb865dd378e7c18a722a87e2407e013ea7bfa
Showing with 1 addition and 1 deletion.
  1. +1 −1 www/docs/js/main.js
View
@@ -191,7 +191,7 @@ $(function(){
function(response) {
// only try this if GA is actually loaded and they shared
// the post.
if (response && window._gat && window._gat._getTracker) {
if (response && window.ga && window.ga.create) {
ga('send', 'social', 'facebook', 'share', link);
}
}

0 comments on commit 539eb86

Please sign in to comment.