File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed
Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change 11// noinspection ThisExpressionReferencesGlobalObjectJS,JSUnusedLocalSymbols,DuplicatedCode
22( function ( global ) {
3- global . GoogleAnalyticsObject = '__ga__' ;
4- global . __ga__ = function ( ) {
5- for ( var i = 0 ; i < arguments . length ; i ++ ) {
6- var arg = arguments [ i ] ;
7-
8- // noinspection JSUnresolvedVariable
9- if ( arg . constructor === Object && arg . hitCallback ) {
10- arg . hitCallback ( ) ;
11- }
12- }
13- } ;
14- global . __ga__ . q = [ [ 'create' , 'UA-47896346-6' , 'auto' ] ] ;
15- global . __ga__ . l = Date . now ( ) ;
16-
173 // noinspection JSUnusedLocalSymbols,DuplicatedCode
184 define ( 'optional' , [ ] , {
195 load : function ( name , req , onload , config ) {
4834 requirejs . config ( {
4935 paths : $sys . lib ,
5036 shim : {
51- ga : {
52- exports : '__ga__'
53- } ,
5437 'jquery-ui' : {
5538 deps : [ 'jquery' ]
5639 }
6750 // noinspection JSCheckFunctionSignatures,JSUnusedLocalSymbols
6851 requirejs ( [
6952 'jquery' ,
70- 'jquery-ui' ,
71- 'optional!ga'
53+ 'jquery-ui'
7254 ] , function ( $ , ui , ga ) {
7355 $ ( function ( ) {
74- if ( typeof ga === 'function' ) {
75- ga ( 'send' , {
76- hitType : 'pageview' ,
77- page : global . location . pathname ,
78- title : global . location . href
79- } ) ;
80- }
81-
8256 var $html = $ ( 'html' ) ;
8357 var $body = $ ( 'body' ) ;
8458
You can’t perform that action at this time.
0 commit comments