🔒 Secure Checkout • ✅ 30-Day Returns • 🎯 Ships July 1st, 2025

IRL Card

)) { element.textContent = variant.price; element.setAttribute('data-price-test', variant.id); updated = true; } }); if (updated) break; } if (updated) { console.log('Price test: ' + variant.label + ' - ' + variant.price); localStorage.setItem('irl_current_price_test', JSON.stringify({ variant: variant.id, price: variant.price, label: variant.label, timestamp: Date.now() })); addPriceTestBadge(variant); } } catch (error) { console.log('Price update error:', error.message); } } function addPriceTestBadge(variant) { if (document.querySelector('#price-test-badge')) return; const badge = document.createElement('div'); badge.id = 'price-test-badge'; let color = variant.id.includes('97') ? '#4caf50' : variant.id.includes('147') ? '#ff9800' : '#2196f3'; badge.innerHTML = '
' + variant.badge + ' - ' + variant.price + '
'; const targets = ['.product-form', '.product__info', '.price', '.product-single__meta']; for (const selector of targets) { const target = document.querySelector(selector); if (target) { target.insertBefore(badge, target.firstChild); break; } } } function trackConversion() { try { const currentTest = localStorage.getItem('irl_current_price_test'); if (currentTest) { const testData = JSON.parse(currentTest); const conversions = JSON.parse(localStorage.getItem('irl_price_conversions') || '[]'); conversions.push(Object.assign({}, testData, { convertedAt: Date.now(), page: window.location.href })); localStorage.setItem('irl_price_conversions', JSON.stringify(conversions)); console.log('Conversion tracked:', testData.label, testData.price); } } catch (error) { console.log('Conversion tracking error:', error.message); } } function initPriceTesting() { try { const fingerprint = generateFingerprint(); const variant = getAssignedVariant(fingerprint); setTimeout(function() { updatePriceDisplay(variant); }, 300); setTimeout(function() { updatePriceDisplay(variant); }, 1000); document.addEventListener('click', function(e) { const target = e.target; if (target && (target.matches('[name="add"]') || target.matches('.btn--add-to-cart') || target.matches('.product-form__cart-submit') || target.closest('[data-add-to-cart]') || target.closest('.shopify-payment-button'))) { trackConversion(); } }); } catch (error) { console.log('Price testing init error:', error.message); } } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', initPriceTesting); } else { initPriceTesting(); } })(); Skip to content