Skip to content
25%OFF

Black Friday: 25% off every planUltimate $169 $125 once, for life

5days20hrs19min03secSee the offer
$44 OFF

Black Friday: $44 off lifetime accessUltimate $169 $125 once. No renewals.

5days20hrs19min03secClaim $44 off
Black Friday to Cyber Monday
5days20hrs19min03secGet lifetime for $125

6,500+ developers350+ genuine licenses7-day money-back guarantee

350+ genuine licenses with native auto-updatesDownload, install and update everything from one account

Talk to a real person

We reply in order during support hours

  • WhatsAppUsually the fastest reply
  • TelegramMessage us on Telegram
  • MessengerChat on Facebook
  • InstagramSend us a DM
Get lifetime — $169 $125See plans

350+ official keys, bought from each developer

Genuine WordPress licenses, without buying each one

Official licenses for Elementor Pro, Crocoblock, Gravity Forms, ACF and more, bought from each developer. Activate them on unlimited websites and update from your WordPress dashboard.

Included in Ultimate ($169 $125 once) and Ultra ($99 $74 a year). 7-day money-back guarantee.

6,500+ developers 90 countries

Is your plugin on the list?

359 licenses, with add-ons grouped under their plugin. Search by name or filter by category.

Every license is included in Ultimate and Ultra 359 licenses
  • Absolute Addons for Elementor Pro
  • Advanced Custom Fields (ACF)$249 a year at the developerView plugin Advanced Custom Fields (ACF)
  • Advanced Custom Post Type (ACPT)
  • Advanced Scripts
  • Advanced Themer for BricksView plugin Advanced Themer for Bricks
  • All in One WP Migration9 licenses
    • All in One Migration – Amazon S3 Extension
    • All in One Migration – Box Extension
    • All in One Migration – Dropbox Extension
    • All in One Migration – FTP Extension
    • All in One Migration – Google Drive Extension
    • All in One Migration – Multisite Extension
    • All in One Migration – OneDrive Extension
    • All in One Migration – Unlimited Extension
    • All in One Migration – URL Extension
  • Amelia Booking$432 a year at the developer
  • Astra Theme Pro$429 a year at the developerView plugin Astra Theme Pro
  • Bricks Builder - Page Builder$249 a year at the developerView plugin Bricks Builder - Page Builder
  • BricksForgeView plugin BricksForge
  • Convert Pro$99 a year at the developerView plugin Convert Pro
  • CrocoblockCrocoblock Full Suite (All Jet plugins) and 21 more
  • DiviDivi Builder (Theme) and 9 more
  • Divi Engine9 licenses
    • Divi Engine – Ajax Filters
    • Divi Engine – BodyCommerce
    • Divi Engine – Form Builder
    • Divi Engine – Machine
    • Divi Engine – Machine Accounts
    • Divi Engine – Mega Menu
    • Divi Engine – Mobile
    • Divi Engine – Nitro
    • Divi Engine – Protect
  • Docus Pro
  • Elementor ProView plugin Elementor Pro
  • Email Candy Pro
  • Eventin Pro
  • EWWW Image Optimizer
  • Exclusive Addons for ElementorView plugin Exclusive Addons for Elementor
  • Extensions For CF7 Pro
  • Gravity FormsGravity Forms Premium (Full Bundle) and 72 more
    • Gravity Forms Premium (Full Bundle)$259 a year at the developer
    • 2Checkout - Addon for Gravity Forms
    • ActiveCampaign - Addon for Gravity Forms
    • Advanced Permissions - Addon for Gravity Forms
    • Advanced Post Creation - Addon for Gravity Forms
    • Agile CRM - Addon for Gravity Forms
    • Akismet - Addon for Gravity Forms
    • Authorize.net - Addon for Gravity Forms
    • AWeber - Addon for Gravity Forms
    • Breeze - Addon for Gravity Forms
    • Bulk Actions - Addon for Gravity Forms
    • Campaign Monitor - Addon for Gravity Forms
    • Capsule CRM - Addon for Gravity Forms
    • Chained Selects - Addon for Gravity Forms
    • CleverReach - Addon for Gravity Forms
    • Cloudflare Turnstile - Addon for Gravity Forms
    • Collapsible Sections - Addon for Gravity Forms
    • Color Picker - Addon for Gravity Forms
    • Constant Contact - Addon for Gravity Forms
    • Conversational Forms - Addon for Gravity Forms
    • ConvertKit - Addon for Gravity Forms
    • Coupons - Addon for Gravity Forms
    • Dropbox - Addon for Gravity Forms
    • Easy Passthrough - Addon for Gravity Forms
    • eCommerce Fields - Addon for Gravity Forms
    • EmailOctopus - Addon for Gravity Forms
    • Emma - Addon for Gravity Forms
    • Entry Automation - Addon for Gravity Forms
    • Fillable PDFs - Addon for Gravity Forms
    • Geolocation - Addon for Gravity Forms
    • GetResponse - Addon for Gravity Forms
    • Google Analytics - Addon for Gravity Forms
    • GravityExport - Addon for Gravity Forms
    • Gravity Flow - Addon for Gravity FormsView plugin Gravity Flow - Addon for Gravity Forms
    • Gravity Forms (Core)
    • GravityImport - Addon for Gravity FormsView plugin GravityImport - Addon for Gravity Forms
    • Gravity PDF - Addon for Gravity Forms
    • GravityView - Addon for Gravity Forms
    • Help Scout - Addon for Gravity Forms
    • HubSpot - Addon for Gravity Forms
    • iContact - Addon for Gravity Forms
    • Image Choices - Addon for Gravity Forms
    • Image Hopper - Addon for Gravity Forms
    • Limit Dates - Addon for Gravity Forms
    • Limit Submissions - Addon for Gravity Forms
    • Mad Mimi - Addon for Gravity Forms
    • Mailchimp - Addon for Gravity Forms
    • Mailgun - Addon for Gravity Forms
    • Media Library - Addon for Gravity Forms
    • Moderation - Addon for Gravity Forms
    • Mollie - Addon for Gravity Forms
    • Nested Forms - Addon for Gravity Forms
    • Partial Entries - Addon for Gravity Forms
    • PayPal Checkout - Addon for Gravity Forms
    • Pipe - Addon for Gravity Forms
    • Polls - Addon for Gravity Forms
    • Postmark - Addon for Gravity Forms
    • Quiz - Addon for Gravity Forms
    • reCAPTCHA - Addon for Gravity Forms
    • SendGrid - Addon for Gravity Forms
    • Signature - Addon for Gravity Forms
    • Slack - Addon for Gravity Forms
    • Square - Addon for Gravity Forms
    • Stripe - Addon for Gravity Forms
    • Survey - Addon for Gravity Forms
    • Tooltips - Addon for Gravity Forms
    • Trello - Addon for Gravity Forms
    • Twilio - Addon for Gravity Forms
    • User Registration - Addon for Gravity Forms
    • Webhooks - Addon for Gravity Forms
    • Zapier - Addon for Gravity Forms
    • Zoho CRM - Addon for Gravity Forms
  • Happy Addons for Elementor ProView plugin Happy Addons for Elementor Pro
  • HappyFiles PROView plugin HappyFiles PRO
  • HashBar Pro
  • HasThemes plugins6 licenses
    • HT Builder Pro
    • HT Click to Call
    • HT Google Place Review
    • HT Menu Pro
    • HT Script Pro
    • HT Slider Pro for Elementor
  • Hide My WP GhostView plugin Hide My WP Ghost
  • Imagify$119.88 a year at the developer
  • JetFormBuilderJetFormBuilder (Full Bundle) and 20 more
    • JetFormBuilder (Full Bundle)$129 a year at the developer
    • Address Autocomplete - JetFormBuilder Addon
    • Advanced Color Picker - JetFormBuilder Addon
    • ConvertKit Action - JetFormBuilder Addon
    • Drag and Drop File Upload - JetFormBuilder Addon
    • Formless Actions Endpoints - JetFormBuilder Addon
    • Hierarchical Select - JetFormBuilder Addon
    • HubSpot - JetFormBuilder Addon
    • Limit Form Responses - JetFormBuilder Addon
    • MailerLite Action - JetFormBuilder Addon
    • MailPoet - JetFormBuilder AddonView plugin MailPoet - JetFormBuilder Addon
    • Moosend - JetFormBuilder Addon
    • PayPal Recurring Payments - JetFormBuilder Addon
    • PDF Attachment - JetFormBuilder Addon
    • Save Form Progress - JetFormBuilder Addon
    • Schedule Forms - JetFormBuilder Addon
    • Select Autocomplete - JetFormBuilder Addon
    • Signature - JetFormBuilder Addon
    • Stripe Payments - JetFormBuilder Addon
    • User Login - JetFormBuilder Addon
    • WooCommerce Cart & Checkout Action - JetFormBuilder Addon
  • JustTables Pro
  • KadenceKadence Theme Pro and 14 more
  • Login Lockdown PRO
  • Meta Box Pro
  • Motion PageView plugin Motion Page
  • Multi Currency Pro for WC
  • Oxyen Composite
  • Oxygen Builder
  • OxyProps - Page Builder
  • Paid Memberships ProView plugin Paid Memberships Pro
  • Perfmatters$124.95 a year at the developerView plugin Perfmatters
  • PopCorn Theme
  • Post Type Builder5 licenses
    • Extra Fields - Post Type Builder Addon
    • Map View - Post Type Builder Addon
    • Relation - Post Type Builder Addon
    • Search - Post Type Builder Addon
    • Submissions - Post Type Builder Addon
  • PremiumPress themes18 licenses
    • Auction Theme – Premiumpress
    • Car Dealer Theme – Premiumpress
    • Cashback Theme – Premiumpress
    • Classifieds Theme – Premiumpress
    • Coupon Theme – Premiumpress
    • Dating Theme – Premiumpress
    • Directory Theme – PremiumpressView plugin Directory Theme – Premiumpress
    • Download Theme – Premiumpress
    • eLearning Theme – Premiumpress
    • Escorts Theme – Premiumpress
    • Freelancer Theme – Premiumpress
    • Job Board Theme – Premiumpress
    • Micro Jobs Theme – Premiumpress
    • Price Compare Theme – Premiumpress
    • Real Estate Theme – PremiumpressView plugin Real Estate Theme – Premiumpress
    • Shop Theme – Premiumpress
    • Stock Theme – Premiumpress
    • Video Theme – Premiumpress
  • Premium Starter Templates Premium
  • Prime SliderView plugin Prime Slider
  • Schema ProView plugin Schema Pro
  • SEO Press Pro$149 a year at the developerView plugin SEO Press Pro
  • ShopLentor Pro (WooLentor)View plugin ShopLentor Pro (WooLentor)
  • Solid Affiliate
  • Spectra ProView plugin Spectra Pro
  • Swatcly Pro
  • SWIS PerformanceView plugin SWIS Performance
  • Templately
  • Themify BuilderThemify Builder and 25 more
    • Themify Builder
    • A/B Image - Themify Builder Addon
    • Audio - Themify Builder Addon
    • BG Video Slider - Themify Builder Addon
    • Button Pro - Themify Builder Addon
    • Contact - Themify Builder Addon
    • Content Restriction - Themify Builder Addon
    • Countdown - Themify Builder Addon
    • Counter - Themify Builder Addon
    • FitText - Themify Builder Addon
    • Image Pro - Themify Builder Addon
    • Infinite Background - Themify Builder Addon
    • Infinite Posts - Themify Builder Addon
    • Maps Pro - Themify Builder Addon
    • Masked Image - Themify Builder Addon
    • Mosaic - Themify Builder Addon
    • Pointers - Themify Builder Addon
    • Pricing Table - Themify Builder AddonView plugin Pricing Table - Themify Builder Addon
    • Progress Bar - Themify Builder Addon
    • Slider Pro - Themify Builder Addon
    • Slideshow - Themify Builder Addon
    • Themify Tiles - Themify Builder Addon
    • Timeline - Themify Builder Addon
    • Typewriter - Themify Builder Addon
    • WooCommerce - Themify Builder Addon
    • WooShop - Themify Builder Addon
  • Themify themes45 licenses
    • Agency Theme - Themify
    • Announcement Bar - Themify
    • Basic Theme - Themify
    • Bizco Theme - Themify
    • Bold Theme - Themify
    • Corporate Theme - Themify
    • Elegant Theme - Themify
    • Elemin Theme - Themify
    • Event Theme - Themify
    • Flatshop Theme - Themify
    • Flat Theme - Themify
    • Float Theme - Themify
    • Fullpane Theme - Themify
    • Fullscreen Theme - Themify
    • Funki Theme - Themify
    • Grido Theme - Themify
    • Infinite Theme - Themify
    • iTheme2 Theme - Themify
    • Landing Theme - Themify
    • Magazine Theme - Themify
    • Metro Theme - ThemifyView plugin Metro Theme - Themify
    • Minblr Theme - Themify
    • Minshop Theme - Themify
    • Music Theme - ThemifyView plugin Music Theme - Themify
    • Notes Theme - Themify
    • Parallax Theme - Themify
    • Peak Theme - ThemifyView plugin Peak Theme - Themify
    • PhotoTouch Theme - Themify
    • Pinboard Theme - Themify
    • Pinshop Theme - Themify
    • Postline Theme - Themify
    • Post Type Builder - Themify
    • Responz Theme - Themify
    • ShopDock Theme - Themify
    • Shoppe WooCommerce Theme - Themify
    • Simfo Theme - Themify
    • Simple Theme - Themify
    • Split Theme - Themify
    • Stack Theme - ThemifyView plugin Stack Theme - Themify
    • Suco Theme - Themify
    • ThemeMin Theme - Themify
    • Tisa Theme - Themify
    • Ultra Multi-purpose Theme - Themify
    • WooCommerce Shopdock - Themify
    • Wumblr Theme - Themify
  • The Plus Addons For Elementor
  • Ultimate Addons for Beaver BuilderView plugin Ultimate Addons for Beaver Builder
  • Ultimate Addons For Elementorac
  • Unlimited Elements for ElementorView plugin Unlimited Elements for Elementor
  • UpFilter Pro
  • Was This Helpful
  • WC Builder Pro
  • Whols Pro
  • Woostify ProView plugin Woostify Pro
  • WP All Import - ACF Add-On ProView plugin WP All Import - ACF Add-On Pro
  • WP All Import - User Import Add-On ProView plugin WP All Import - User Import Add-On Pro
  • WP All Import - WooCommerce Import Add-On ProView plugin WP All Import - WooCommerce Import Add-On Pro
  • WP All Import ProView plugin WP All Import Pro
  • WP Compress
  • WPForms ProWPForms Pro (Full Bundle) and 35 more
    • WPForms Pro (Full Bundle)View plugin WPForms Pro (Full Bundle)
    • ActiveCampaign - WPForms Pro Addon
    • Authorize.Net - WPForms Pro Addon
    • AWeber - WPForms Pro Addon
    • Brevo - WPForms Pro Addon
    • Calculations - WPForms Pro Addon
    • Campaign Monitor - WPForms Pro Addon
    • Conversational Forms - WPForms Pro Addon
    • ConvertKit - WPForms Pro Addon
    • Coupons - WPForms Pro Addon
    • Custom Captcha - WPForms Pro Addon
    • Drip - WPForms Pro Addon
    • Form Abandonment - WPForms Pro Addon
    • Form Locker - WPForms Pro Addon
    • Form Pages - WPForms Pro Addon
    • Geolocation - WPForms Pro Addon
    • GetResponse - WPForms Pro Addon
    • Google Sheets - WPForms Pro Addon
    • HubSpot - WPForms Pro Addon
    • Lead Forms - WPForms Pro Addon
    • Mailchimp - WPForms Pro Addon
    • MailerLite - WPForms Pro Addon
    • Offline Forms - WPForms Pro Addon
    • PayPal Commerce - WPForms Pro Addon
    • PayPal Standard - WPForms Pro Addon
    • Post Submissions - WPForms Pro Addon
    • Salesforce - WPForms Pro Addon
    • Save and Resume - WPForms Pro Addon
    • Signature - WPForms Pro Addon
    • Square - WPForms Pro Addon
    • Stripe Pro - WPForms Pro Addon
    • Surveys and Polls - WPForms Pro Addon
    • User Journey - WPForms Pro Addon
    • User Registration - WPForms Pro Addon
    • Webhooks - WPForms Pro Addon
    • Zapier - WPForms Pro Addon
  • WPFunnels ProWPFunnels Pro Bundle (All plugins) and 3 more
    • WPFunnels Pro Bundle (All plugins)
    • WP Funnels Pro
    • WPFunnels Pro – Global Funnel Addon
    • WPFunnels Pro – Integrations Addon
  • WP Plugin Manager ProView plugin WP Plugin Manager Pro
  • WP Portfolio
  • WPvivid Pro - Backup plugin

Missing one you need? Members can request new licenses from their account.

How a genuine license works

The library opens right after checkout. Licenses are activated per website, and then WordPress treats the plugin as licensed.

  1. Choose Ultimate or Ultra

    Pay once for Ultimate, or yearly for Ultra. Both include every license on this page.

  2. Request it for your website

    From your account on our site, or from the Autoupdate plugin on your WordPress, pick the license and confirm the website. Request it once for each website where it will run.

  3. Update from your dashboard

    We activate it in 1 to 8 hours on average on weekdays, and in 8 to 16 hours on weekends. Updates then arrive from the developer, on the WordPress Updates screen.

Three ways to get premium plugins

What you pay, and what you get, for the same plugins.

Nulled copies

$0

Free, with risks you carry

  • Files can be modified or carry malware
  • No updates or security fixes
  • No support
  • A risk on client websites

Most chosen

GNU Elements Ultimate

$169 $125 once

359 genuine licenses and 7,000+ resources

  • Updates from each developer, in your dashboard
  • Original, unmodified files
  • Unlimited websites, yours and your clients'
  • AI and design tools, priority ticket support
  • No renewals
Get Ultimate

Buying each one

$2,056 first year

For five of them, at each developer's top plan

  • Updates from each developer
  • Support from each developer
  • $1,057 again every year after
  • Separate accounts and renewals

Prefer to pay yearly? Ultra includes every license for $99 $74 a year, and you can move to Ultimate later for $70 $51.

Get Ultra

Single ($14 $10.50 a month) covers the GPL library only. Full refund within 7 days of payment, no reason needed. Compare all plans

The five: Astra Business Toolkit ($429/yr), Crocoblock Lifetime ($999 once), Imagify Infinite ($120/yr), ACF PRO Agency ($249/yr) and Gravity Forms Elite ($259/yr). Regular prices from each developer's pricing page, checked November 2026. GNU Elements is not affiliated with these developers.

Questions about genuine licenses

What is a genuine license?

An official license bought from the plugin's developer. We buy each one as a regular commercial customer. When you request it for your website, we activate it on that domain, and WordPress shows the plugin as licensed and receives updates from the developer.

How do I activate one?

From your account, choose the license and enter your website address. We activate it in 1 to 8 hours on average on weekdays, and in 8 to 16 hours on weekends. You can follow each request from your account.

How is this different from the GPL library?

The plugin files are released under the GNU GPL in both cases. With a GPL file you update through our Autoupdate plugin. With a genuine license, updates and the developer's licensed features come straight from the developer, in your WordPress dashboard.

Can I use them on client websites?

Yes. Ultimate and Ultra cover unlimited websites, yours and your clients'. Request the license once for each website where it will run.

Which plans include genuine licenses?

Ultimate ($169 $125 once) and Ultra ($99 $74 a year). Single covers the GPL library only.

What happens to my licenses if I stop paying Ultra?

Licenses already active on your websites stay active. New downloads and new activations stop until you renew or move to Ultimate.

What if I ask for a refund?

You get a full refund within 7 days of payment, no reason needed, processed in 2 business days. Genuine licenses activated with that plan are turned off. Refund policy

Are you affiliated with the developers?

No. GNU Elements is an independent service. Product names belong to their owners and are used only to describe what the membership includes. GPL license and terms

One payment for every license on this page

Stop renewing plugins one by one. Activate them on every website you build and update from your dashboard.

(2.6.0), so the server can tell which // pages that started loading reached this point. var pid = /^[a-f0-9]{16}$/.test(window.GNU_CPID || '') ? window.GNU_CPID : ''; // 2.11.1: automated browser (same rule as GNU Landing 1.6.0, decided again by the server). // A bot sends only its first page view, with the signals; nothing else reaches Insights. // What the page sends to Meta is not touched. var bx = null; try { bx = (function(){var n=navigator,s=window.screen||{},u=n.userAgent||"",o={wd:n.webdriver===true?1:0,sw:+s.width||0,sh:+s.height||0,iw:window.innerWidth||0,ih:window.innerHeight||0,tp:+n.maxTouchPoints||0,gl:window.GNUL_BOT===1?1:0};o.m=/Mobi|Android|iPhone|iPad|iPod|Tablet|Silk|Kindle|PlayBook/i.test(u)||(/Macintosh/.test(u)&&o.tp>1)?1:0;o.b=o.wd||o.gl||(!o.m&&o.sw>0&&o.sh>0&&o.sw<=1024&&o.sh<=768&&o.sw===o.iw&&o.sh===o.ih)?1:0;return o;})(); } catch (e) { bx = null; } var isBot = !!(bx && bx.b); function body(events) { var b = { u: location.href.split('#')[0], r: document.referrer || '', ev: events }; if (test) { b.t = 1; } if (pid) { b.pid = pid; } return JSON.stringify(b); } function send(events, beacon) { if (isBot) { return; } var data = body(events); if (beacon && navigator.sendBeacon) { try { if (navigator.sendBeacon(C.url, new Blob([data], { type: 'application/json' }))) { return; } } catch (e) {} } try { if (window.fetch) { fetch(C.url, { method: 'POST', credentials: 'same-origin', keepalive: true, headers: { 'Content-Type': 'application/json' }, body: data }).catch(function () {}); } } catch (e) {} } function scrollDepth() { var doc = document.documentElement; var h = Math.max(doc.scrollHeight, document.body ? document.body.scrollHeight : 0); var seenTo = (window.pageYOffset || doc.scrollTop || 0) + (window.innerHeight || doc.clientHeight || 0); var pct = h > 0 ? Math.min(100, Math.round(100 * seenTo / h)) : 0; if (pct > maxScroll) { maxScroll = pct; } } function visible() { return visibleMs + (visibleFrom ? Date.now() - visibleFrom : 0); } // The page view goes out first, so the visit and its cookie exist before any click. var nowMs = function () { try { return Math.round(performance.now()); } catch (e) { return 0; } }; var first = { e: 'page_view', v: 0, a: 0, l: nowMs() }; var ctx = { w: window.innerWidth || 0, lang: (navigator.language || '').slice(0, 12) }; try { ctx.tz = Intl.DateTimeFormat().resolvedOptions().timeZone || ''; } catch (e) {} (function () { var b = JSON.parse(body([first])); b.ctx = ctx; if (bx) { b.bx = bx; } var data = JSON.stringify(b); try { if (window.fetch) { fetch(C.url, { method: 'POST', credentials: 'same-origin', keepalive: true, headers: { 'Content-Type': 'application/json' }, body: data }).catch(function () {}); } else if (navigator.sendBeacon) { navigator.sendBeacon(C.url, new Blob([data], { type: 'application/json' })); } } catch (e) {} })(); // Quality visit (2.7.0): 10 s visible and engaged (scrolled 30% or more, saw the plans // or clicked a plan). Once per browser session: recorded in Insights and sent to Meta // through PixelYourSite with a hidden button (custom event "Click on CSS selector" // #pys-hook-gnu-qv; values in #pys-p-gnu-qv-time, #pys-p-gnu-qv-scroll, #pys-p-gnu-qv-page). var qvDone = false; try { qvDone = sessionStorage.getItem('gnu_qv') === '1'; } catch (e) {} var engaged = false; var scrolled = false; function pysHook(secs) { var put = function (id, text) { var el = document.getElementById(id); if (!el) { el = document.createElement('span'); el.id = id; el.hidden = true; document.body.appendChild(el); } el.textContent = String(text); }; put('pys-p-gnu-qv-time', secs); put('pys-p-gnu-qv-scroll', maxScroll); put('pys-p-gnu-qv-page', path); var btn = document.getElementById('pys-hook-gnu-qv'); if (!btn) { btn = document.createElement('button'); btn.id = 'pys-hook-gnu-qv'; btn.type = 'button'; btn.hidden = true; btn.tabIndex = -1; document.body.appendChild(btn); } var tries = 0; (function fire() { if ((window.pysOptions && document.readyState === 'complete') || tries > 20) { try { btn.click(); } catch (e) {} return; } tries++; window.setTimeout(fire, 500); })(); } function maybeQualify() { if (qvDone || !document.body) { return; } var v = visible(); // Scrolled: the visitor moved the page (a short page shows 30% without scrolling). if (v < 10000 || !(engaged || (scrolled && maxScroll >= 30))) { return; } qvDone = true; try { sessionStorage.setItem('gnu_qv', '1'); } catch (e) {} send([{ e: 'quality_visit', v: v }], false); pysHook(Math.round(v / 1000)); } window.addEventListener('scroll', function () { if (!scrolled && (window.pageYOffset || document.documentElement.scrollTop || 0) > Math.min(300, (window.innerHeight || 800) * 0.3)) { scrolled = true; } if (!qvDone) { scrollDepth(); maybeQualify(); } }, { passive: true }); window.addEventListener('scroll', scrollDepth, { passive: true }); window.addEventListener('load', scrollDepth); scrollDepth(); function watchSections() { var names = Object.keys ? Object.keys(C.sections || {}) : []; names.forEach(function (name) { var el = null; try { el = document.querySelector(C.sections[name]); } catch (e) { el = null; } if (!el) { return; } var report = function () { if (seen[name]) { return; } seen[name] = 1; if (name === 'pricing') { engaged = true; maybeQualify(); } send([{ e: 'section_seen', d: name, v: Date.now() - t0 }], false); }; if (window.IntersectionObserver) { var io = new IntersectionObserver(function (entries) { entries.forEach(function (en) { if (en.isIntersecting) { report(); io.disconnect(); } }); }, { threshold: 0.3 }); io.observe(el); } else { window.addEventListener('scroll', function () { var r = el.getBoundingClientRect(); if (r.top < (window.innerHeight || 0) * 0.7 && r.bottom > 0) { report(); } }, { passive: true }); } }); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', watchSections); } else { watchSections(); } document.addEventListener('click', function (ev) { var a = ev.target && ev.target.closest ? ev.target.closest('a[href]') : null; if (!a) { return; } var m = String(a.getAttribute('href') || '').match(/[?&](payment|upgrade)=(\d{1,10})/); if (!m) { return; } send([{ e: 'plan_click', k: m[1], d: m[2], v: Date.now() - t0 }], true); engaged = true; maybeQualify(); }, true); // Largest contentful paint of the page, sent with the exit. var lcp = 0; try { if (window.PerformanceObserver) { new PerformanceObserver(function (list) { var en = list.getEntries(); if (en.length) { lcp = Math.round(en[en.length - 1].startTime); } }).observe({ type: 'largest-contentful-paint', buffered: true }); } } catch (e) {} // Visible time so far at 3, 10, 30, 60, 120 and 300 s, so a visit whose exit never // arrives (common in the Instagram app) still has its time on the page. var marks = [3000, 10000, 30000, 60000, 120000, 300000]; var pingTimer = 0; function schedulePing() { window.clearTimeout(pingTimer); if (!marks.length || exited || !visibleFrom) { return; } pingTimer = window.setTimeout(function () { if (exited || !visibleFrom) { return; } scrollDepth(); var v = visible(); while (marks.length && marks[0] <= v + 50) { marks.shift(); } send([{ e: 'page_ping', v: v, s: maxScroll }], false); maybeQualify(); schedulePing(); }, Math.max(200, marks[0] - visible())); } schedulePing(); // Meta pixel and Google Analytics health of the page (2.6.0), checked at 4 s and, if // something is missing, again 8 s later or when the visitor leaves. var pxSent = false; function resourceSeen(re) { if (window.gnuResSeen && window.gnuResSeen(re)) { return true; } try { var list = performance.getEntriesByType ? performance.getEntriesByType('resource') : []; for (var i = 0; i < list.length; i++) { if (re.test(list[i].name)) { return true; } } } catch (e) {} return false; } function sendPixel(beacon) { if (pxSent || !window.gnuPx) { return; } pxSent = true; send([{ e: 'pixel', d: window.gnuPx(C.px || [], resourceSeen), v: Date.now() - t0 }], beacon); } window.setTimeout(function () { if (!window.gnuPx) { return; } if (window.gnuPx(C.px || [], resourceSeen).indexOf('0') === -1) { sendPixel(false); return; } window.setTimeout(function () { sendPixel(false); }, 8000); }, 4000); function exit() { if (exited) { return; } exited = true; scrollDepth(); window.clearTimeout(pingTimer); var out = [{ e: 'page_exit', v: visible(), s: maxScroll, l: lcp }]; if (!pxSent && Date.now() - t0 > 4000 && window.gnuPx) { pxSent = true; out.push({ e: 'pixel', d: window.gnuPx(C.px || [], resourceSeen), v: Date.now() - t0 }); } send(out, true); } document.addEventListener('visibilitychange', function () { if (document.visibilityState === 'hidden') { if (visibleFrom) { visibleMs += Date.now() - visibleFrom; visibleFrom = 0; } exit(); } else if (!visibleFrom) { visibleFrom = Date.now(); schedulePing(); } }); window.addEventListener('pagehide', exit); })(); //# sourceURL=gnu-checkout-pre-js-after