Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fd76b669
authored
2014-10-17 12:40:46 -0400
by
Marty Penner
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Upgrade Google Analytics to universal
1 parent
0cdf8634
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
com/Analytics/Analytics.php
com/Analytics/Analytics.php
View file @
fd76b66
...
...
@@ -45,20 +45,13 @@ class Actions
}
?>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '
<?php
echo
Vars
::
$options
[
'api_key'
];
?>
']);
_gaq.push(['
_trackPageview
']);
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
){
i
[
'GoogleAnalyticsObject'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
(){
(
i
[
r
].
q
=
i
[
r
].
q
||
[]).
push
(
arguments
)},
i
[
r
].
l
=
1
*
new
Date
();
a
=
s
.
createElement
(
o
),
m
=
s
.
getElementsByTagName
(
o
)[
0
];
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'script'
,
'//www.google-analytics.com/analytics.js'
,
'ga'
);
// _gaq.push(['
_trackEvent
', '
download
', '
Membership
', '
sub
category
?
']);
(function () {
var ga = document.createElement('
script
');
ga.type = '
text
/
javascript
';
ga.async = true;
ga.src = ('
https
:
' == document.location.protocol ? '
https
:
//ssl' : 'http://www') + '.google-analytics.com/ga.js';
var
s
=
document
.
getElementsByTagName
(
'script'
)[
0
];
s
.
parentNode
.
insertBefore
(
ga
,
s
);
})();
ga
(
'create'
,
'UA-16903554-2'
,
'cicbv.ca'
);
ga
(
'send'
,
'pageview'
);
</script>
<?php
}
...
...
Please
register
or
sign in
to post a comment