Disclosure
This post contains affiliate links, which means I may earn a small commission if you make a purchase through my links, at no extra cost to you.
Disclosure: I may earn a commission if you buy through links on this page, at no extra cost to you. I haven’t tested these panels. This is a price, size and spec comparison, not a medical or wellness recommendation. Specs and prices come from each brand’s own product pages, checked today.
Last updated Nov 22, 2026. Prices checked Nov 22, 2026 at about 7:20 PM ET.
My quick answer: If you want the lower checkout price on a 12-by-36-inch panel, the MitoPRO 1500+ is listed at $1,019 after you enter code EARLYBLACK, from a $1,169 price on Mito’s site. The MitoPRO 1500X is listed at $1,149 with the same code, from $1,299 — $130 more for a taller 10-by-43-inch panel, two extra wavelengths, a touchscreen and app controls. Floor stands are sold separately and were listed at $139 each. Confirm the code still applies in your cart before you pay.
MitoPRO 1500+ vs 1500X at today’s prices
Both full-size panels were available on mitoredlight.com on Nov 22, 2026. The sale prices below are the ones Mito showed on each product page when EARLYBLACK is applied. Shopify’s product data still lists the pre-code prices ($1,169 and $1,299). Stands are not included with either panel.
Model
Listed at
Shown as
Size
Light / coverage
Shop
MitoPRO 1500+
$1,019 with EARLYBLACK
$1,169
12″ × 36″, 22 lb, 375W
300 LEDs; 630, 660, 830 and 850 nm. Mito lists irradiance at 6 inches as >170 / >68 mW/cm².
Mito’s compare tables still show the pre-code shop prices. The $1,019 and $1,149 figures are the on-page prices next to the EARLYBLACK prompt. Enter the code at checkout and check the order total before you pay. Mito’s early Black Friday page tells you to use that code; the copy I read on Nov 22 did not print an end date. The offer is advertised while supplies last. If you are shopping after Nov 23, 2026, recheck the cart — that date appears on third-party deal trackers, not on the Mito page I captured today.
Coming Nov 24: Mito’s affiliate notice (Nov 16, 2026) says its Black Friday week sale, Nov 24–30, takes 25% off every panel with no code needed and adds a free MitoAURA skincare set with any device. I’ll update these prices when that sale is live.
What $130 more buys on the 1500X
After the code, the 1500X costs $130 more than the 1500+. Here is the difference as Mito lists it, without any claim about results:
Shape. The 1500+ is a wider, shorter panel (12″ × 36″). The 1500X is narrower and taller (10″ × 43″). Mito notes that a floor or universal stand adds about 6–8 inches to the stated height.
Wavelengths. The 1500+ lists four: 630, 660, 830 and 850 nm. The 1500X lists six: 590, 630, 660, 810, 830 and 850 nm.
Controls. Mito describes the 1500X as having a touchscreen, brightness control, modes and a mobile app. The 1500+ is the simpler four-wavelength panel.
Power and weight. Mito lists 375W and 22 lb for the 1500+, and 445W and 25 lb for the 1500X. LED counts are listed as 300 on the 1500+ and 300 / 600 on the 1500X (the X series uses dual-chip LEDs, which is why two counts appear).
Mito lists both panels as FDA Class II Registered, with a 3-year warranty, 60-day returns and free U.S. shipping on these orders. That registration is not the same as FDA clearance. Mito’s own product copy says its products are intended for general wellness and are not intended to diagnose, treat, cure, or prevent any disease.
Stands are $139 extra, and they are not interchangeable
The MitoPRO+ Floor Stand V2 was listed at $139 and available. Mito says it supports one MitoPRO 1000+ or one 1500+ (not the 300+). The MitoPRO X Floor Stand was also listed at $139 and available, and supports one 750X or one 1500X (not the 300X). Mito recommends its universal stand for two or more panels. If you need a stand, add $139 to the panel price before you compare checkouts.
The “save up to $900” headline is for multi-panel setups
Mito’s early Black Friday page leads with “Save up to $900.” That figure is not the discount on a single 1500+ or 1500X. Those two single panels were each $150 off with EARLYBLACK today. The early page listed a 2x MitoPRO 1500+ setup at $1,938, shown as $2,338. Mito also builds extra bundle savings into two- and four-panel array prices. If you are buying one panel, use the $1,019 or $1,149 checkout figures, not the $900 headline.
Hooga PRO750 as a budget comparison — on hold
Hooga’s PRO750 is the smaller, lower-priced panel in this packet: 20.4″ × 8.6″, 150 dual-chip LEDs, 660 and 850 nm, with a hanging kit included. Hooga’s product data listed it at $599 with no compare-at markdown on Nov 22, and the data flag said available. The public product page, though, displayed it as sold out. Until the page and the cart agree, I’m not adding a buy button or a holiday price for the PRO750. If that panel comes back in stock at a confirmed price, it would sit well below either Mito 1500, with a smaller footprint and two wavelengths instead of four or six.
FAQ
Which is cheaper today, the MitoPRO 1500+ or the 1500X?
The 1500+ is cheaper. On Nov 22, 2026, Mito listed it at $1,019 with code EARLYBLACK, shown as $1,169. The 1500X was listed at $1,149 with the same code, shown as $1,299 — $130 more after the code.
Does the EARLYBLACK code end on Nov 23?
I can’t confirm that from Mito’s early Black Friday page. On Nov 22 the page said to enter EARLYBLACK at checkout and advertised the offer while supplies last, but it did not print an end date in the copy I read. Some deal trackers quote November 23, 2026. Check that the discount appears on your order total before you pay, especially if you are shopping on or after that date.
Are stands included with the 1500+ or 1500X?
No. Mito says floor and universal stands are sold separately and are not included with any panel or bundle. Each matching floor stand was listed at $139 on Nov 22. The + stand and the X stand are not interchangeable.
What is the size difference between the 1500+ and the 1500X?
Mito lists the 1500+ at 12″ × 36″ and 22 lb, and the 1500X at 10″ × 43″ and 25 lb. The 1500X is narrower and taller. If you add a stand, Mito says to add about 6–8 inches to the stated height.
Is the Hooga PRO750 a cheaper alternative right now?
Not as a buy I can recommend today. Hooga listed the PRO750 at $599, but the public product page showed it as sold out on Nov 22. I’m holding that comparison until stock and the cart agree.
window.fluent_form_ff_form_instance_6_1 = {"id":"6","ajaxUrl":"https:\/\/annakatherinepage.com\/wp-admin\/admin-ajax.php","settings":{"layout":{"labelPlacement":"top","asteriskPlacement":"asterisk-right","helpMessagePlacement":"with_label","errorMessagePlacement":"inline","cssClassName":""},"restrictions":{"denyEmptySubmission":{"enabled":false}}},"form_instance":"ff_form_instance_6_1","form_id_selector":"fluentform_6","rules":{"input_text":{"required":{"value":false,"message":"This field is required","global_message":"This field is required","global":true}},"email":{"required":{"value":true,"message":"This field is required","global_message":"This field is required","global":true},"email":{"value":true,"message":"This field must contain a valid email","global_message":"This field must contain a valid email","global":true}},"checkbox":{"required":{"value":true,"message":"This field is required","global_message":"This field is required","global":true},"max_selection":{"value":"","message":"You have selected more options than allowed","global_message":"You have selected more options than allowed","global":true},"min_selection":{"value":"","message":"Please select at least the minimum number of options","global_message":"Please select at least the minimum number of options","global":true}}},"debounce_time":300,"file_upload_settings":[]};
(function(){
if (!window.matchMedia || !window.matchMedia('(max-width: 781px)').matches) return;
var aff = /go\.shopmy\.us|amzn\.to|amazon\.com\/.*tag=|walmrt\.us|pxf\.io|shareasale|awin1|anrdoezrs|dpbolvw|jdoqocy|tkqlhce|kqzyfj|sjv\.io|linksynergy/i;
var root = document.querySelector('.wp-block-post-content') || document.querySelector('.entry-content');
if (!root) return;
var btns = root.querySelectorAll('a.wp-block-button__link');
var first = null;
for (var i = 0; i < btns.length; i++) { if (aff.test(btns[i].href)) { first = btns[i]; break; } }
if (!first) return;
var name = '';
var p = root.querySelector('p');
if (p) { var l = p.querySelector('a'); if (l && l.href === first.href) name = l.textContent; }
if (!name) name = first.textContent;
var bar = document.createElement('div');
bar.className = 'ak-sticky-buy';
bar.setAttribute('role', 'region');
bar.setAttribute('aria-label', 'Top pick');
var span = document.createElement('span'); span.className = 'ak-sb-name'; span.textContent = 'Top pick: ' + name.trim();
var a = document.createElement('a'); a.href = first.href; a.target = '_blank'; a.rel = 'nofollow sponsored noopener'; a.textContent = 'Shop now';
var x = document.createElement('button'); x.type = 'button'; x.setAttribute('aria-label', 'Close'); x.textContent = '×';
bar.appendChild(span); bar.appendChild(a); bar.appendChild(x);
document.body.appendChild(bar);
var closed = false;
x.addEventListener('click', function(){ closed = true; bar.classList.remove('is-on'); });
function check(){
if (closed) return;
var r = first.getBoundingClientRect();
var footer = document.querySelector('footer');
var nearEnd = footer && footer.getBoundingClientRect().top < window.innerHeight;
if (r.bottom < 0 && !nearEnd) bar.classList.add('is-on'); else bar.classList.remove('is-on');
}
window.addEventListener('scroll', check, { passive: true });
check();
})();
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
var fluentFormVars = {"ajaxUrl":"https://annakatherinepage.com/wp-admin/admin-ajax.php","forms":[],"step_text":"Step %activeStep% of %totalStep% - %stepTitle%","step_completed_text":"Completed","is_rtl":"","date_i18n":{"previousMonth":"Previous Month","nextMonth":"Next Month","months":{"shorthand":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"longhand":["January","February","March","April","May","June","July","August","September","October","November","December"]},"weekdays":{"longhand":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"shorthand":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},"daysInMonth":[31,28,31,30,31,30,31,31,30,31,30,31],"rangeSeparator":" to ","weekAbbreviation":"Wk","scrollTitle":"Scroll to increment","toggleTitle":"Click to toggle","amPM":["AM","PM"],"yearAriaLabel":"Year","firstDayOfWeek":1},"pro_version":"","fluentform_version":"6.2.17","force_init":"","stepAnimationDuration":"350","upload_completed_txt":"100% Completed","upload_start_txt":"0% Completed","uploading_txt":"Uploading","choice_js_vars":{"noResultsText":"No results found","loadingText":"Loading...","noChoicesText":"No choices to choose from","itemSelectText":"Press to select","maxItemTextSingular":"Only %%maxItemCount%% option can be added","maxItemTextPlural":"Only %%maxItemCount%% options can be added"},"input_mask_vars":{"clearIfNotMatch":false},"nonce":"252b4682a6","file_delete_nonce":"a79cbb533f","form_id":"6","step_change_focus":"1","has_cleantalk":"","pro_payment_script_compatible":"","token_nonce":"098c5165a9"};
var fluentform_submission_messages_6 = {"file_upload_in_progress":"File upload in progress. Please wait...","javascript_handler_failed":"Javascript handler could not be loaded. Form submission has been failed. Reload the page and try again"};
var fluentform_payment_messages_6 = {"stock_out_message":"This Item is Stock Out","item_label":"Item","price_label":"Price","qty_label":"Qty","line_total_label":"Line Total","sub_total_label":"Sub Total","discount_label":"Discount","total_label":"Total","signup_fee_label":"Signup Fee","trial_label":"Trial","processing_text":"Processing...","confirming_text":"Confirming..."};
var fluentform_save_progress_messages_6 = {"copy_button":"Copy","email_button":"Email","email_placeholder":"Your Email Here","copy_success":"Copied"};
var fluentform_address_messages_6 = {"please_wait":"Please wait ...","location_not_determined":"Could not determine address from location.","address_fetch_failed":"Failed to fetch address from coordinates.","geolocation_failed":"Geolocation failed or was denied.","geolocation_not_supported":"Geolocation is not supported by this browser."};
var fluentform_gateway_messages_6 = {"request_failed":"Request failed. Please try again","payment_failed":"Payment process failed!","no_method_found":"No method found","processing_text":"Processing..."};
var fluentform_submission_messages_global = {"javascript_handler_failed":"Javascript handler could not be loaded. Form submission has been failed. Reload the page and try again"};
var fluentform_address_messages_global = {"please_wait":"Please wait ...","location_not_determined":"Could not determine address from location.","address_fetch_failed":"Failed to fetch address from coordinates.","geolocation_failed":"Geolocation failed or was denied.","geolocation_not_supported":"Geolocation is not supported by this browser."};
//# sourceURL=fluent-form-submission-js-extra
(function(){
var d = document.querySelector('.ak-ux-checked');
var h1 = document.querySelector('h1.wp-block-post-title');
if (d && h1 && !(h1.nextElementSibling && h1.nextElementSibling.classList.contains('ak-ux-checked'))) {
h1.insertAdjacentElement('afterend', d);
}
/* Table typography helpers: short mobile headers, rank badges, brand under the name */
(function(){
var shortMap = {
'listed value': 'Value',
'below value': 'Save',
'price at ulta': 'Price',
'price at sephora': 'Price',
'best gift for someone who wants': 'Best for',
'what is inside': 'Inside',
'what it is': 'What',
'where to buy': 'Shop',
'fiber, as the brand states it': 'Fiber'
};
document.querySelectorAll('figure.ak-quick-picks th').forEach(function(th){
if (th.querySelector('.ak-th-short, .ak-th-full')) return;
var full = (th.textContent || '').replace(/\s+/g, ' ').trim();
if (!full) return;
var key = full.toLowerCase();
var short = shortMap[key];
if (!short && /^listed value/.test(key)) short = 'Value';
if (!short && /^below value/.test(key)) short = 'Save';
if (!short && /^price\b/.test(key) && key !== 'price') short = 'Price';
if (short && short.toLowerCase() !== key) {
th.textContent = '';
var fullEl = document.createElement('span');
fullEl.className = 'ak-th-full';
fullEl.textContent = full;
var shortEl = document.createElement('span');
shortEl.className = 'ak-th-short';
shortEl.textContent = short;
th.appendChild(fullEl);
th.appendChild(shortEl);
}
});
document.querySelectorAll('figure.ak-quick-picks td > span').forEach(function(sp){
var st = sp.getAttribute('style') || '';
if (/border-radius\s*:\s*50%/.test(st)) sp.classList.add('ak-rank-badge');
});
document.querySelectorAll('figure.ak-quick-picks td').forEach(function(td){
var item = td.querySelector(':scope > .ak-qp-item');
if (!item) return;
var text = item.querySelector('.ak-qp-text');
if (!text) return;
Array.prototype.slice.call(td.children).forEach(function(child){
if (child !== item && child.tagName === 'DIV') {
child.classList.add('ak-qp-brand');
text.appendChild(child);
}
});
});
})();
var start = document.getElementById('ak-start-here');
if (!start) return;
if (!window.matchMedia || !window.matchMedia('(max-width: 781px)').matches) return;
if (document.getElementById('ak-ux-sticky')) return;
var shop = start.querySelector('a.ak-shop-btn') || document.querySelector('a.ak-shop-btn');
if (!shop) return;
var nameEl = start.querySelector('h2');
var priceEl = start.querySelector('.ak-start-price');
var label = 'Top pick';
if (nameEl) label += ': ' + nameEl.textContent.trim();
if (priceEl) {
var amt = (priceEl.textContent || '').replace(/\s+/g, ' ').trim().split('checked')[0].trim();
if (amt) label += ' · ' + amt;
}
var bar = document.createElement('div');
bar.id = 'ak-ux-sticky';
bar.setAttribute('role', 'region');
bar.setAttribute('aria-label', 'Top pick');
var span = document.createElement('span'); span.className = 'ak-sb-name'; span.textContent = label;
var a = document.createElement('a');
a.href = shop.href; a.target = '_blank'; a.rel = 'nofollow sponsored noopener'; a.textContent = 'Shop now';
var x = document.createElement('button'); x.type = 'button'; x.setAttribute('aria-label', 'Close'); x.textContent = '×';
bar.appendChild(span); bar.appendChild(a); bar.appendChild(x);
document.body.appendChild(bar);
var closed = false;
x.addEventListener('click', function(){ closed = true; bar.classList.remove('is-on'); });
function check(){
if (closed) return;
if (window.innerWidth >= 782) { bar.classList.remove('is-on'); return; }
var r = start.getBoundingClientRect();
var footer = document.querySelector('footer');
var nearEnd = footer && footer.getBoundingClientRect().top < window.innerHeight;
if (r.bottom < 8 && !nearEnd) bar.classList.add('is-on');
else bar.classList.remove('is-on');
}
window.addEventListener('scroll', check, {passive:true});
window.addEventListener('resize', check);
check();
})();
(function(){
var AJAX="https:\/\/annakatherinepage.com\/wp-admin\/admin-ajax.php",LOAD=Date.now(),freshP=null;
function post(d){return fetch(AJAX+"?t="+Date.now(),{method:"POST",credentials:"same-origin",cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(d).toString()}).then(function(r){return r.json();});}
function getFresh(){if(freshP){return freshP;}freshP=post({action:"akp_ffc_fresh_nonce"}).then(function(j){if(j&&j.success&&j.data){if(window.fluentFormVars){window.fluentFormVars.token_nonce=j.data.token_nonce;}var ns=document.querySelectorAll('input[name$="_fluentformnonce"]');for(var i=0;i<ns.length;i++){ns[i].value=j.data.form_nonce;}return j.data;}freshP=null;return null;}).catch(function(){freshP=null;return null;});return freshP;}
function fid(f){var m=(f.className||"").match(/fluent_form_(\d+)/);return m?m[1]:(f.getAttribute("data-form_id")||"");}
function fld(f){return f.querySelector(".fluent-form-token-field");}
function stale(f){var t=fld(f);if(!t){return false;}return !t.value||(Date.now()-(f.__akpAt||LOAD))>45*60*1000;}
function mint(f){if(f.__akpP){return f.__akpP;}var t=fld(f);if(!t){return Promise.resolve(true);}
f.__akpP=getFresh().then(function(fr){var n=(fr&&fr.token_nonce)||(window.fluentFormVars&&window.fluentFormVars.token_nonce)||"";return post({action:"fluentform_generate_protection_token",form_id:fid(f),nonce:n});}).then(function(j){f.__akpP=null;if(j&&j.success&&j.data&&j.data.token){t.value=j.data.token;f.classList.add("ff_tokenized");f.classList.remove("ff_tokenizing");f.__akpAt=Date.now();return true;}return false;}).catch(function(){f.__akpP=null;return false;});return f.__akpP;}
function init(){var fs=document.querySelectorAll("form.frm-fluent-form");if(!fs.length){return;}var any=false;for(var i=0;i<fs.length;i++){if(fld(fs[i])){any=true;}}if(!any){return;}getFresh();
if("IntersectionObserver" in window){var io=new IntersectionObserver(function(es){es.forEach(function(e){if(e.isIntersecting&&stale(e.target)){mint(e.target);}});},{rootMargin:"900px 0px"});for(var k=0;k<fs.length;k++){if(fld(fs[k])){io.observe(fs[k]);}}}
document.addEventListener("focusin",function(e){var f=e.target&&e.target.closest&&e.target.closest("form.frm-fluent-form");if(f&&stale(f)){mint(f);}},true);
document.addEventListener("submit",function(e){var f=e.target;if(!f||!f.classList||!f.classList.contains("frm-fluent-form")){return;}if(f.__akpPass){f.__akpPass=false;return;}if(!stale(f)){return;}e.preventDefault();e.stopImmediatePropagation();
mint(f).then(function(){f.__akpPass=true;window.ff_sumitting_form=false;if(f.requestSubmit){var b=f.querySelector("[type=submit]");try{b?f.requestSubmit(b):f.requestSubmit();}catch(x){if(window.jQuery){window.jQuery(f).trigger("submit");}}}else if(window.jQuery){window.jQuery(f).trigger("submit");}});},true);}
var CS_PDF="https://annakatherinepage.com/wp-content/uploads/2026/11/flower-price-cheat-sheet.pdf";
var CS_MSG='<p>Your Flower Price Cheat Sheet is ready. <a href="'+CS_PDF+'">Download the two-page PDF</a> now.</p><p>A copy is on its way to your inbox too. Give it a minute, and peek in spam the first time so the next one lands in your inbox.</p>';
function fixCS(){var ms=document.querySelectorAll(".fluentform_wrapper_5 .ff-message-success");for(var i=0;i<ms.length;i++){if(!ms[i].__akpCS&&(ms[i].textContent||"").indexOf("Download the two-page PDF")===-1){ms[i].__akpCS=1;ms[i].innerHTML=CS_MSG;}}}
function initCS(){if(!document.querySelector("form.fluent_form_5")){return;}try{new MutationObserver(fixCS).observe(document.body,{childList:true,subtree:true});}catch(x){}document.addEventListener("fluentform_submission_success",function(){setTimeout(fixCS,50);setTimeout(fixCS,600);});}
function boot(){init();initCS();}
if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",boot);}else{boot();}
})();
(function () {
var LABEL = "Send me the cheat sheet";
var PDF = "https://annakatherinepage.com/wp-content/uploads/2026/11/flower-price-cheat-sheet.pdf";
var CONFIRM = '<p>Your Flower Price Cheat Sheet is ready. <a href="' + PDF + '">Download the two-page PDF</a> now.</p><p>Give the email a minute, and peek in spam the first time so the next one lands in your inbox. The formulas use labeled sample numbers. Type over them with yours.</p>';
function retitle() {
var buttons = document.querySelectorAll(".fluent_form_5 .ff-btn-submit, form.fluent_form_5 .ff-btn-submit, .frm-fluent-form.fluent_form_5 .ff-btn-submit");
for (var i = 0; i < buttons.length; i++) {
var b = buttons[i];
if ((b.textContent || "").indexOf("cheat sheet") === -1) {
b.textContent = LABEL;
b.setAttribute("aria-label", LABEL);
}
b.style.backgroundColor = "#5a6b4e";
b.style.borderColor = "#5a6b4e";
b.style.color = "#ffffff";
}
var styles = document.querySelectorAll(".ff-form-inline-style style");
for (var j = 0; j < styles.length; j++) {
var s = styles[j];
if ((s.textContent || "").indexOf("fluent_form_5") !== -1 && (s.textContent || "").indexOf("#123d2e") !== -1) {
s.textContent = s.textContent.replace(/#123d2e/g, "#5a6b4e");
}
}
}
if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", retitle);
else retitle();
setTimeout(retitle, 400);
function maybeFixSuccess(root) {
if (!root) return;
var success = root.querySelector(".ff-message-success, .ff-el-success, .ff-form-success");
if (!success) return;
var t = (success.textContent || "").toLowerCase();
if (t.indexOf("inbox") !== -1 || t.indexOf("cheat sheet") === -1) {
success.innerHTML = CONFIRM;
}
}
document.addEventListener("fluentform_submission_success", function () {
maybeFixSuccess(document.querySelector(".fluentform_wrapper_5, #fluentform_5, .ff_form_wrapper_5"));
});
if (window.jQuery) {
window.jQuery(document).on("fluentform_submission_success", function () {
maybeFixSuccess(document.querySelector(".fluentform_wrapper_5, #fluentform_5, .ff_form_wrapper_5"));
});
}
})();
(function(){
function rgb(c){var m=(c||"").match(/[0-9.]+/g);return m?m.map(Number):null;}
function lum(a){return (0.299*a[0]+0.587*a[1]+0.114*a[2])/255;}
function effbg(el){var n=el;while(n){var c=rgb(getComputedStyle(n).backgroundColor);if(c&&(c.length<4||c[3]>0.5))return c;n=n.parentElement;}return null;}
var sel="main h1,main h2,main h3,main h4,main p,main li,main span,#frc h1,#frc h2,#frc h3,#frc p,#frc span,#frc li";
document.querySelectorAll(sel).forEach(function(t){
var bg=effbg(t);
if(!bg) return;
if(lum(bg)<0.30){
var fc=rgb(getComputedStyle(t).color);
if(fc && lum(fc)<0.5){ t.style.setProperty("color","#f7f1e6","important"); }
}
});
})();
(function () {
function formIdFrom(ev, data) {
var id = "";
var form = null;
if (data) {
if (data.formId != null) id = String(data.formId);
else if (data.form_id != null) id = String(data.form_id);
form = data.form;
if (form && form.jquery) form = form[0];
}
if (!form && ev && ev.detail) {
form = ev.detail.form;
if (form && form.jquery) form = form[0];
if (!id) {
if (ev.detail.formId != null) id = String(ev.detail.formId);
else if (ev.detail.form_id != null) id = String(ev.detail.form_id);
}
}
if (!form && ev && ev.target && ev.target.nodeType === 1) {
form = ev.target.closest ? (ev.target.closest("form") || ev.target.closest("[id^='fluentform_']") || ev.target.closest("[class*='fluent_form_']")) : ev.target;
}
if (!id && form) {
var src = String((form.id || "") + " " + (form.className || "") + " " + (form.getAttribute && (form.getAttribute("data-form_id") || form.getAttribute("data-id") || "") || ""));
var m = src.match(/fluentform_wrapper_(\d+)/) || src.match(/fluentform_(\d+)/) || src.match(/fluent_form_(\d+)/);
if (m) id = m[1];
}
return id;
}
function newEventId() {
try {
if (window.crypto && typeof crypto.randomUUID === "function") return crypto.randomUUID();
} catch (err) {}
return "ff5lead_" + Date.now() + "_" + Math.random().toString(16).slice(2);
}
var lockUntil = 0;
function fireLead(ev, data) {
if (formIdFrom(ev, data) !== "5") return;
if (typeof window.fbq !== "function") return;
var now = Date.now();
if (now < lockUntil) return;
lockUntil = now + 2000;
var eid = newEventId();
try {
fbq("track", "Lead", { content_name: "Flower Price Cheat Sheet" }, { eventID: eid });
} catch (err) {}
}
document.addEventListener("fluentform_submission_success", function (ev) {
fireLead(ev, ev && ev.detail);
});
if (window.jQuery) {
window.jQuery(document).on("fluentform_submission_success", function (ev, data) {
fireLead(ev, data);
});
window.jQuery(document.body).on("fluentform_submission_success", function (ev, data) {
fireLead(ev, data);
});
}
})();
Leave a Reply