Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
integration:googleanalytics_universal [2015/09/23 05:44]
adam [Setting Up Google Analytics]
integration:googleanalytics_universal [2017/04/26 07:02] (current)
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