Skip to content

Commit 1cf808b

Browse files
committed
Merge pull request #21 from dominikmatt/develop
v0.3.5
2 parents f6c5598 + 4e35e99 commit 1cf808b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "trackingJS",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"homepage": "https://github.com/dominikmatt/trackingJS",
55
"authors": [
66
"Dominik Matt <[email protected]>"

example/default.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
<script src="/scripts/tracking.js"></script>
1313
<script type="text/javascript">
1414
var trackingJS = new trackingJS({
15+
namespace: 'example',
1516
type: 'ua',
1617
analyticsCode: 'UA-57009541-1',
1718
url: 'auto',
1819
pageview: false,
19-
anonymizeIp: false
20+
anonymizeIp: true
2021
});
2122

2223

scripts/adapter/ua.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var uaTrackingJS = function(trackingJSOptions, trackingJSHelper) {
1212

1313
if(trackingJSOptions.anonymizeIp === true) {
1414
trackingJSHelper.info(options.name + ' ip is anonymous');
15-
ga('set', 'anonymizeIp', true);
15+
ga(namespace + '.set', 'anonymizeIp', true);
1616
} else {
1717
trackingJSHelper.info(options.name + ' ip is not anonymous');
1818
}

0 commit comments

Comments
 (0)