Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
integration:googleanalytics_universal [2015/09/23 05:44] – [Setting Up Google Analytics] adamintegration:googleanalytics_universal [2016/03/18 13:07] adam
Line 156: Line 156:
         }         }
       });       });
-      return (typeof ga === "function") ? "pause" : true;+      return (window.ga && ga.loaded) ? "pause" : true;
     }     }
     return true;     return true;
Line 166: Line 166:
       });       });
     });     });
-    return (typeof ga === "function") ? "pause" : true;+    return (window.ga && ga.loaded) ? "pause" : true;
   });   });
 </script></code> </script></code>
Line 199: Line 199:
     }     }
     $('a.fc_cart_checkout_paypal').click(function(e){     $('a.fc_cart_checkout_paypal').click(function(e){
-      if (typeof ga === "function")  {+      if (window.ga && ga.loaded)  {
         e.preventDefault();         e.preventDefault();
         var link_url = jQuery(this).attr("href");         var link_url = jQuery(this).attr("href");

Site Tools