Skip to content
This repository was archived by the owner on May 15, 2020. It is now read-only.

Commit af3a078

Browse files
committed
Merge pull request #12 from dorthwein/patch-1
Changing request to "Get" method to resolve Issue #2
2 parents a223e3e + a756766 commit af3a078

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Analytics.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ class Analytics {
1313
cid: this.clientId
1414
});
1515

16-
fetch('https://ssl.google-analytics.com/collect', {
17-
method: 'post',
18-
body: hit.toQueryString()
16+
fetch('https://ssl.google-analytics.com/collect?'+ hit.toQueryString(), {
17+
method: 'get',
1918
});
2019
}
2120
}

0 commit comments

Comments
 (0)