@@ -286,7 +286,7 @@
|
|
286
286
|
|
287
287
|
async function sendUsageMessageToAnalyticsBackend() {
|
288
288
|
try {
|
289
|
-
const analyticsBackendUrlForward = "https://urls.needle.tools/analytics-endpoint";
|
289
|
+
const analyticsBackendUrlForward = "https://urls.needle.tools/analytics-endpoint-v2";
|
290
290
|
const res = await fetch(analyticsBackendUrlForward);
|
291
291
|
let analyticsUrl = await res.text();
|
292
292
|
if (analyticsUrl) {
|
@@ -296,10 +296,10 @@
|
|
296
296
|
|
297
297
|
const currentUrl = window.location.href;
|
298
298
|
|
299
|
-
let endpoint = "api/
|
299
|
+
let endpoint = "api/v2/new/request";
|
300
300
|
if (!analyticsUrl.endsWith("/")) endpoint = "/" + endpoint;
|
301
301
|
const license = NEEDLE_ENGINE_LICENSE_TYPE;
|
302
|
-
const finalUrl = `${analyticsUrl}${endpoint}?license=${license}&url=${encodeURIComponent(currentUrl)}&hostname=${encodeURIComponent(window.location.hostname)}&pathname=${encodeURIComponent(window.location.pathname)}&search=${encodeURIComponent(window.location.search)}&hash=${encodeURIComponent(window.location.hash)}&version=${VERSION}
|
302
|
+
const finalUrl = `${analyticsUrl}${endpoint}?license=${license}&url=${encodeURIComponent(currentUrl)}&hostname=${encodeURIComponent(window.location.hostname)}&pathname=${encodeURIComponent(window.location.pathname)}&search=${encodeURIComponent(window.location.search)}&hash=${encodeURIComponent(window.location.hash)}&version=${VERSION}&generator=${GENERATOR}`;
|
303
303
|
if (debug) console.log("Sending non-commercial usage message to analytics backend", finalUrl);
|