Commit Graph

10 Commits

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