FluentForms GA4 Conversion Tracking

(function() { ‘use strict’; console.log(‘=== FluentForms GA4 Tracking Script Loaded ===’); // Check if gtag is available if (typeof gtag !== ‘function’) { console.error(‘❌ GA4 gtag function not found!’); console.log(‘Checking dataLayer:’, window.dataLayer); return; } console.log(‘✅ gtag function found’); // Intercept…Continue reading

Single product – Select default variation

jQuery(function($){ function selectDefault($s){ if($s.val()) return; let n = $s.data(‘attribute_name’), $tr = $s.closest(‘tr’), $ul = $tr.find(`ul[data-attribute_name=”${n}”]`), $li = $ul.find(‘li.variable-item:not(.disabled,.out-of-stock,[aria-disabled=”true”])’).first(); if($li.length) return $li.trigger(‘click’); let v = $s.find(‘option.attached.enabled[value!=””]’).first().val() || $s.find(‘option[value!=””]’).first().val(); if(v) $s.val(v).trigger(‘change’); } function init(s){ $(s).find(‘form.variations_form select’).each((_,el)=>selectDefault($(el))); } init(document); $(document).on(‘woo_variation_swatches_init wc_variation_form woocommerce_variation_has_changed’,()=>setTimeout(()=>init(document),0)); });Continue reading

Archive – Products – JS popup

document.addEventListener(‘DOMContentLoaded’, function () { const infoButtons = document.querySelectorAll(‘.facet-info-button’); const allPopups = document.querySelectorAll(‘.facet-popup’); let lastFocused = null; infoButtons.forEach(button => { button.addEventListener(‘click’, function () { const facet = this.dataset.facet; const popup = document.querySelector(`.facet-popup[data-facet=”${facet}”]`); const content = popup?.querySelector(‘.popup-content’); if (popup) { lastFocused =…Continue reading

Logo Scroll Shrink (JS)

/** * Sticky header with stable base height: * – Computes base height ONLY in unscrolled state and stores it in –header-h * – Shrinks by CSS percentage when `.scrolled` is added * – Recomputes base when crossing back to…Continue reading

/mobile/

  >             HALO™ BY raVerdoG MORE THAN A COLLAR. A RITUAL OF CARE. A PROMISE TO PROTECT. A STATEMENT OF LOVE. AN EXPRESSION OF IDENTITY. A NIGHTLY TRANSFORMATION. YOUR DOG DESERVES TO BE SEEN.…Continue reading

/mobile/

  >             HALO™ BY raVerdoG MORE THAN A COLLAR. A RITUAL OF CARE. A PROMISE TO PROTECT. A STATEMENT OF LOVE. AN EXPRESSION OF IDENTITY. A NIGHTLY TRANSFORMATION. YOUR DOG DESERVES TO BE SEEN.…Continue reading

/home/

HALO™ BY raVerdoG MORE THAN A COLLAR. A RITUAL OF CARE. A PROMISE TO PROTECT. A STATEMENT OF LOVE. AN EXPRESSION OF IDENTITY. A NIGHTLY TRANSFORMATION. YOUR DOG DESERVES TO BE SEEN. AND YOU DESERVE TO WALK WITHOUT WORRY.Continue reading