diff --git a/public/assets/chasing-unicorns.js b/public/assets/chasing-unicorns.js index 24570cb..7a66daf 100644 --- a/public/assets/chasing-unicorns.js +++ b/public/assets/chasing-unicorns.js @@ -38,8 +38,12 @@ // the visitor's sponsor rides the share link (?ref=), so the join button and the share line keep it var ref = (new URLSearchParams(location.search).get('ref') || '').toLowerCase().replace(/[^a-z0-9_]/g, '').slice(0, 20); + // where the page link was posted (?src=massifly, ?src=leasedadspace...) rides into the join, so a sign-up says which channel + var chan = (new URLSearchParams(location.search).get('src') || '').toLowerCase().replace(/[^a-z0-9_.-]/g, '').slice(0, 18); + var srcTag = chan ? 'unicorns-' + chan : 'chasing-unicorns'; + $('joinBtn').href = '/join?src=' + srcTag; if (ref) { - $('joinBtn').href = '/join/' + ref + '?src=chasing-unicorns'; + $('joinBtn').href = '/join/' + ref + '?src=' + srcTag; $('ledgerBtn').href = '/ledger?ref=' + ref; $('shareLink').textContent = 'https://instantadpay.com/chasing-unicorns?ref=' + ref; } diff --git a/public/chasing-unicorns.html b/public/chasing-unicorns.html index 0057457..147f8c7 100644 --- a/public/chasing-unicorns.html +++ b/public/chasing-unicorns.html @@ -203,6 +203,6 @@ button.tile { cursor: pointer; }
- +