Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions packages/script/src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,6 @@

clientClickTracked = true;

const params = new URLSearchParams(location.search);
const serverClickId = params.get(DUB_ID_VAR);

fetch(`${API_HOST}/track/click`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
Expand All @@ -216,12 +213,6 @@
.then((res) => res.ok && res.json())
.then((data) => {
if (data) {
if (serverClickId && serverClickId !== data.clickId) {
console.warn(
`[dubAnalytics] Client-tracked click ID ${data.clickId} does not match server-tracked click ID ${serverClickId}, skipping...`,
);
return;
}
cookieManager.set(DUB_ID_VAR, data.clickId);
// if partner data is present, set it as dub_partner_data cookie
if (data.partner) {
Expand Down