Commit Graph

27 Commits

Author SHA1 Message Date
Mike Cao
195eb06a02 Add domain filter to tracker. 2020-10-04 22:27:59 -07:00
Mike Cao
3d1dc08491 Implement session caching. 2020-10-02 20:33:46 -07:00
Mike Cao
9eca86a4fc Renamed methods in tracker. 2020-09-18 15:26:45 -07:00
Mike Cao
b19889638a Removed polyfills from tracker. Switched to XMLHttpRequest. 2020-09-18 14:16:57 -07:00
Mike Cao
023adafa39 Refactor tracker. 2020-09-18 13:40:46 -07:00
Bartosz Hernas
09235ddacf Reverted tracker to old behaviour while still keeping more advanced use case 2020-09-18 11:33:17 +02:00
Bartosz Hernas
5318accc6f Fixed comments 2020-09-16 12:07:22 +02:00
Bartosz Hernas
241905c5fe Fix uuid passing 2020-09-15 14:10:01 +02:00
Bartosz Hernas
7a71bb1c68 Better snippet 2020-09-15 13:54:35 +02:00
Bartosz Hernas
d5e4914153 Comments fixed 2020-09-15 12:03:34 +02:00
Bartosz Hernas
d6d1c68e6d Fix tracker 2020-09-15 00:12:09 +02:00
Bartosz Hernas
d19bcbabe0 Different method + fixed lint for tracker + added frame mode for shared URLs 2020-09-15 00:09:09 +02:00
Bartosz Hernas
2ea91aaabf Ability to unregister umami 2020-09-14 18:13:59 +02:00
Mike Cao
4ae7ad35ff Update url checking logic. 2020-09-10 21:12:04 -07:00
Mike Cao
0aa6cc939a Allow custom events. 2020-09-03 08:53:39 -07:00
João Pedro Netto
5db40efba6
Fixes tracker code bug on handling pushState
- Enforcing .toString() on navigatedURL, because without it it returns an object and break history state changes;
- Typo `navaigatedUrl` to `navigatedURL`;
2020-09-02 14:38:01 -03:00
Mike Cao
cebd3fd924 Allow alternate host url in tracker. 2020-08-31 20:25:31 -07:00
Ondřej Vacek
36119f4cb4
Update index.js
better solution from @mikecao, it's not dependent on script name
2020-08-27 10:01:05 +02:00
Ondřej Vacek
4fb9150631
Generic AIP collect URL allowing subfolders
I've changed the fetching of "hostUrl" variable to match not only domain, but the subfolder as well. The thing is I've installed the analytics to subfolder "/myfolder/" but when I used the code, the tracker tries to send the data to "mydomain.com/api/collect" instead of correct "mydomain.com/myfolder/api/collect". This change fixes the issue. It's not pretty to filter out the name of the script from the path by .replace, but I wasn't able to find better solution to get the subfolder. If you do, please change it :)
2020-08-26 16:12:20 +02:00
Mike Cao
03b374a1d8 Add eslint ignore. 2020-08-23 13:35:55 -07:00
Mike Cao
0ba7676e97 Refactor do not track code. 2020-08-23 13:34:00 -07:00
Mike Cao
1d977875be Fix tracker bug. 2020-08-22 19:59:39 -07:00
Snir David
9ac97a3293 Collect urls in pushstate the same way as in initial load 2020-08-22 12:22:29 +03:00
joshinat0r
aebf3c7022 proper cross browser dnt support 2020-08-21 11:51:42 +02:00
joshinat0r
4a3ce9acba respect DNT 2020-08-21 10:19:47 +02:00
Mike Cao
5cade59111 Removed session code. 2020-08-20 19:17:27 -07:00
Mike Cao
a6975ecedd Created cli command. Updated tracker script. 2020-07-23 22:07:57 -07:00