mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
added referrer
This commit is contained in:
1 parent
86b297d47a
commit
1f7ced9ff1
1 file changed
+4
-1
@@ -34,15 +34,18 @@
|
||||
const utm_source = urlParams.get('utm_source');
|
||||
const utm_medium = urlParams.get('utm_medium');
|
||||
const utm_campaign = urlParams.get('utm_campaign');
|
||||
const referrer = document.referrer;
|
||||
|
||||
// Aggregate and display sources from URL parameters
|
||||
if (ref) sources.push(`ref=${ref}`);
|
||||
if (utm_source) sources.push(`utm_source=${utm_source}`);
|
||||
if (utm_medium) sources.push(`utm_medium=${utm_medium}`);
|
||||
if (utm_campaign) sources.push(`utm_campaign=${utm_campaign}`);
|
||||
if (referrer) sources.push(`referrer=${referrer}`);
|
||||
|
||||
|
||||
sources = [...new Set(sources)];
|
||||
Cookies.set('source', sources, { domain: '.appwrite.io'});
|
||||
Cookies.set('source', sources, { domain: '.appwrite.io' });
|
||||
}
|
||||
|
||||
if ($page.url.searchParams.has('migrate')) {
|
||||
|
||||
Reference in new issue
Block a user