Skip to content

Commit 54051d7

Browse files
committed
Updated tracker script name and endpoint.
1 parent be8eb61 commit 54051d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rollup.tracker.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { terser } from 'rollup-plugin-terser';
66
export default {
77
input: 'tracker/index.js',
88
output: {
9-
file: 'public/umami.js',
9+
file: 'public/script.js',
1010
format: 'iife',
1111
},
1212
plugins: [
1313
replace({
14-
'/api/collect': process.env.COLLECT_API_ENDPOINT || '/api/collect',
14+
'/api/send': process.env.COLLECT_API_ENDPOINT || '/api/send',
1515
delimiters: ['', ''],
1616
preventAssignment: true,
1717
}),

tracker/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
const root = hostUrl
6262
? hostUrl.replace(/\/$/, '')
6363
: currentScript.src.split('/').slice(0, -1).join('/');
64-
const endpoint = `${root}/api/collect`;
64+
const endpoint = `${root}/api/send`;
6565
const screen = `${width}x${height}`;
6666
const eventClass = /^umami--([a-z]+)--([\w]+[\w-]*)$/;
6767
const eventSelect = "[class*='umami--']";

0 commit comments

Comments
 (0)