Commit Graph

14 Commits

Author SHA1 Message Date
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