Hoppa till innehållet
GEOFIX NYA WEBBSHOP ÄR HÄR - klicka här för att få information om hur du som redan är Geofix kund kommer åt ditt webbkonto
GEOFIX NYA WEBBSHOP ÄR HÄR - klicka här för att få information om hur du som redan är Geofix kund kommer åt ditt webbkonto

Medium Cases

Peli Storm iM2306

Peli Storm iM2306 - Medium Case Inre dimensioner : 43.2 x 16 x 15.7 cm (17" x 6.3" x 6.2") Yttre mått: 46.2 x 21.3 x 17 cm Två tryck-...

Se alla detaljer

Peli Storm iM2620

Peli Storm iM2620 - Medium Case Inre dimensioner : 50.8 x 35.5 x 25.4 cm (20" x 14" x 10") Yttre mått: 53.8 x 40.6 x 26.9 cm Två tryc...

Se alla detaljer

Peli Storm iM2600

Peli Storm iM2600 - Medium Case Inre dimensioner : 50.8 x 35.5 x 19.6 cm (20" x 14" x 7.7") Yttre mått: 53.8 x 40.6 x 21.1 cm Två tryck...

Se alla detaljer

Peli Storm iM2500

Peli Storm iM2500 - Carry On Case Inre dimensioner : 52 x 29.2 x 18.3 cm (20.5" x 11.5" x 7.2") Yttre mått: 55.1 x 35.8 x 22.6 cm Två...

Se alla detaljer

Peli Storm iM2450

Peli Storm iM2450 - Medium Case Inre dimensioner : 45.7 x 33 x 21.3 cm (18" x 13" x 8.4") Yttre mått: 48.7 x 38.6 x 22.9 cm Två tryck...

Se alla detaljer

Peli Storm iM2400

Peli Storm iM2400 - Medium Case Inre dimensioner : 45.7 x 33 x 17 cm (18" x 13" x 6.7") Yttre mått: 48.7 x 38.6 x 18.5 cm Två tryck-o...

Se alla detaljer

Peli Storm iM2300

Peli Storm iM2300 - Medium Case Inre dimensioner : 43.2 x 29.7 x 15.7 cm (17" x 11.7" x 6.2") Yttre mått: 46.2 x 34 x 17 cm Två tryck...

Se alla detaljer

Peli Storm iM2200

Peli Storm iM2200 - Medium Case Inre dimensioner : 38.1 x 26.7 x 15.2 cm (15" x 10.5" x 6") Yttre mått: 41.1 x 32.2 x 16.8 cm Två try...

Se alla detaljer
*/ (function () { window.dataLayer = window.dataLayer || []; const CONFIG = { CURRENCY: "SEK", // Lägg gärna till/justera selektorer om ditt tema använder andra element CHECKOUT_BUTTON_SELECTORS: [ 'button[name="checkout"]', 'input[name="checkout"]', 'form[action*="/checkout"] [type="submit"]', 'a[href*="/checkout"]' ] }; function fetchCart() { return fetch('/cart.js', { credentials: 'same-origin' }) .then(r => r.json()) .catch(() => null); } function mapItems(cart) { if (!cart || !Array.isArray(cart.items)) return []; return cart.items.map((it, idx) => ({ item_id: String(it.variant_id || it.id || it.sku || ''), item_name: it.product_title || it.title || '', item_brand: 'Geofix AB', item_variant: it.variant_title || '', price: (typeof it.final_price === 'number' ? it.final_price : it.price || 0) / 100, quantity: it.quantity || 1, index: idx + 1 })); } function totalValue(items) { return items.reduce((s, i) => s + (Number(i.price) || 0) * (Number(i.quantity) || 0), 0); } function isCheckoutClick(target) { if (!target) return false; // träff på definierade selektorer for (const sel of CONFIG.CHECKOUT_BUTTON_SELECTORS) { if (target.closest(sel)) return true; } // fallback: formulär som postar till /checkout const form = target.closest('form'); if (form && /\/checkout/i.test(form.action || '')) return true; return false; } // Lyssna brett i capture-fasen så vi hinner hämta vagnen innan redirect document.addEventListener('click', function (e) { const el = e.target; if (!isCheckoutClick(el)) return; // Hämta /cart.js och pusha begin_checkout snabbt innan sidan lämnas fetchCart().then(cart => { const items = mapItems(cart); const value = totalValue(items); window.dataLayer.push({ event: 'begin_checkout', ecommerce: { currency: CONFIG.CURRENCY, value: value, items: items } }); }); // Ingen preventDefault – låt redirect ske normalt }, true); // Extra säkerhet: lyssna även på submit (t.ex. enter-tryck i formulär) document.addEventListener('submit', function (e) { const form = e.target; if (!form) return; if (!/\/checkout/i.test(form.action || '')) return; fetchCart().then(cart => { const items = mapItems(cart); const value = totalValue(items); window.dataLayer.push({ event: 'begin_checkout', ecommerce: { currency: CONFIG.CURRENCY, value: value, items: items } }); }); }, true); })();