Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
integration:googleanalytics_universal [2016/03/18 13:07] – adam | integration:googleanalytics_universal [2021/09/10 09:31] (current) – [Setting Up Your Site] adam | ||
---|---|---|---|
Line 144: | Line 144: | ||
</ | </ | ||
<script type=" | <script type=" | ||
- | | + | |
- | if (arr[' | + | if (arr[' |
- | return true; | + | return true; |
- | } | + | } |
- | if (arr[' | + | if (arr[' |
- | ga(' | + | if (window.ga && ga.loaded) { |
- | ' | + | |
- | jQuery.getJSON(' | + | ' |
- | fcc.events.cart.preprocess.resume(); | + | jQuery.getJSON(' |
- | }); | + | fcc.events.cart.preprocess.resume(); |
+ | }); | ||
+ | } | ||
+ | }); | ||
+ | return " | ||
+ | } else { | ||
+ | return true; | ||
+ | } | ||
+ | } | ||
+ | return true; | ||
+ | }); | ||
+ | //CAUSING LOOPING ISSUES IN CHROME | ||
+ | fcc.events.cart.process.add_pre(function (e, arr) { | ||
+ | if (window.ga && ga.loaded) { | ||
+ | ga(function (tracker) { | ||
+ | jQuery.getJSON(' | ||
+ | fcc.events.cart.process.resume(); | ||
+ | }); | ||
+ | }); | ||
+ | return " | ||
+ | } else { | ||
+ | return true; | ||
} | } | ||
- | }); | ||
- | return (window.ga && ga.loaded) ? " | ||
- | } | ||
- | return true; | ||
- | }); | ||
- | fcc.events.cart.process.add_pre(function(e, | ||
- | ga(function(tracker) { | ||
- | jQuery.getJSON(' | ||
- | fcc.events.cart.process.resume(); | ||
- | }); | ||
}); | }); | ||
- | return (window.ga && ga.loaded) ? " | ||
- | }); | ||
</ | </ | ||