Beats
Playlists
About
Social
Beat Store
About
Blog
Features
Pricing
Coming Soon
Legal
404
Tutorials
Book a call
Coming Soon
Great things are
on the way.
Great things are
on the way.
Great things are
on the way.
Created by
t
rabbey
About
Blog
Features
Pricing
Legal
Created by
t
rabbey
About
Blog
Features
Pricing
Legal
Created by
t
rabbey
About
Blog
Features
Pricing
Legal
// Add UTM params from localStorage utmKeys.forEach(key => { const value = localStorage.getItem(key); if (value) { storedParams.set(key, value); } }); // Add ref param from localStorage const ref = localStorage.getItem(refKey); if (ref) { storedParams.set(refKey, ref); } const buttons = document.querySelectorAll('a.buy-now'); buttons.forEach(button => { try { const url = new URL(button.href); const params = new URLSearchParams(url.search); storedParams.forEach((value, key) => { params.set(key, value); }); url.search = params.toString(); button.href = url.toString(); } catch (err) { console.warn('Param append error:', err); } }); } window.addEventListener('DOMContentLoaded', applyParamsToButtons); const observer = new MutationObserver(() => { applyParamsToButtons(); }); observer.observe(document.body, { childList: true, subtree: true });