Merge pull request #70 from andrewvaca/patch-1

Generic AIP collect URL allowing subfolders
This commit is contained in:
Mike Cao authored and GitHub committed 2020-08-27 01:53:19 -07:00
commit 78888c3728
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ import { post, hook, doNotTrack } from '../lib/web';
if (!script || (__DNT__ && doNotTrack())) return;
const website = script.getAttribute('data-website-id');
const hostUrl = new URL(script.src).origin;
const hostUrl = new URL(script.src).href.split('/').slice(0, -1).join('/');
const screen = `${width}x${height}`;
const listeners = [];