PageSourceSearch

https://www.customerlift.ai/_next/static/chunks/pages/select-audience-064ab5abf1b73346.js

js customerlift.ai collected 2026-10-05 15:31:32 UTC 9,049 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[917],{3726:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/select-audience",function(){return s(2683)}])},3325:function(e,t,s){"use strict";var r=s(5893);s(7294),t.Z=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"bg-myPaleRed rounded-full border border-black py-3 px-6 text-center inline-block lg:text-xl",children:t})}},6884:function(e,t,s){"use strict";var r=s(5893),n=s(5187);t.Z=e=>{let{errorMsg:t}=e;return(0,r.jsx)("div",{className:"grow flex items-center justify-center",children:t||(0,r.jsx)(n.Z,{height:90,width:90})})}},2683:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return k}});var r=s(5893),n=s(1664),o=s.n(n),l=s(4871),a=s(3325),i=s(2484),c=s(3922),d=s(6884),u=s(9580),m=s(5187),h=s(2158),x=s(6951),p=s(1901);s(7294);var b=e=>{let{children:t}=e;return(0,r.jsxs)("p",{className:"text-center text-sm mt-5 text-red-400",children:["Error: ",t]})},g=e=>{let{title:t,description:s,href:n,errorMsg:o}=e;return(0,r.jsxs)("div",{className:"max-w-xs lg:max-w-full mx-auto border border-black rounded-3xl pt-5 pb-8 mb-4 bg-white flex flex-col",children:[(0,r.jsx)("h2",{className:"text-center border-b border-b-black pb-4 px-6 lg:px-4",children:t}),(0,r.jsx)("div",{className:"px-6 lg:px-4 mt-4 flex flex-col flex-grow",children:o?(0,r.jsx)(b,{children:o}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-center mb-4",children:s}),(0,r.jsx)("div",{className:"flex justify-center mt-auto",children:(0,r.jsx)(p.Z,{href:n,size:"sm",bg:"primary",children:"Select"})})]})})]})},f=e=>{var t;let{user:s}=e,n=(0,h.Z)(u.z0+"/api/premade-audiences/last-years-purchasers"),o=null!==(t=n.data)&&void 0!==t?t:null,{isLoading:l,errorMsg:a}=n;if(console.log("Commonly used auds:"),console.log(n),console.log("Order total: "+(null==o?void 0:o.order_totals)),l)return(0,r.jsx)(m.Z,{height:25,width:25});let i=s.storeCurrency.symbol;return(0,r.jsx)(g,{title:"Last Year's Purchasers",description:["Did you know that last year’s purchasers have spent ",(0,r.jsx)("b",{children:(null==o?void 0:o.order_totals)===null||(null==o?void 0:o.order_totals)===void 0?"".concat(i,0):"".concat(i).concat((0,x.p)(null==o?void 0:o.order_totals))})," this year?"],href:(()=>{let e=new Date().getFullYear()-1;return"/dashboard?selection_type=timeframe&date_min=".concat("".concat(e,"-01-01"),"&date_max=").concat("".concat(e,"-12-31"))})(),errorMsg:a})},y=s(5829),j=()=>{var e;let t=(0,h.Z)(u.z0+"/api/premade-audiences/top-50-percent-1st-purchase-aov"),s=null!==(e=t.data)&&void 0!==e?e:null,{isLoading:n,errorMsg:o}=t;return n?(0,r.jsx)(m.Z,{height:25,width:25}):(0,r.jsx)(g,{title:"Top 50% 1st Purchase AOV",description:["Did you know your top 50% 1st Purchase AOV customers buy ",(0,r.jsx)("b",{children:(null==s?void 0:s.product_title)&&s.product_title})," as their most popular 1st product purchased?"],href:"/dashboard?selection_type=product&product_selection_type=product&values_arr=".concat((0,y.U)([null==s?void 0:s.product_id]),"&names_arr=").concat((0,y.U)([null==s?void 0:s.product_title])),errorMsg:o})},v=()=>{var e;let t=(0,h.Z)(u.z0+"/api/premade-audiences/customer-newsletter-ltv"),s=null!==(e=t.data)&&void 0!==e?e:null,{isLoading:n,errorMsg:o}=t;console.log("Newsletter subs ltv:"),console.log(t);let l=()=>{var e;let t=new Date().toISOString().split("T")[0];return"/dashboard?selection_type=newsletter&date_min=".concat(null!==(e=null==s?void 0:s.store_first_order_date)&&void 0!==e?e:t,"&date_max=").concat(t)};return(console.log("Dash url"),console.log(l()),n)?(0,r.jsx)(m.Z,{height:25,width:25}):(0,r.jsx)(g,{title:"Newsletter Subscriber",description:(()=>{let e=null==s?void 0:s.percentage_difference;return void 0===e?[]:e>0?["Did you know your newsletter subscribers have a ",(0,r.jsxs)("b",{children:[e.toLocaleString(),"% higher"]})," LTV than your non-newsletter subscribers?"]:e<0?["Did you know your newsletter subscribers have a ",(0,r.jsxs)("b",{children:[Math.abs(e).toLocaleString(),"% lower"]})," LTV than your non-newsletter subscribers?"]:["Did you know your newsletter subscribers have an ",(0,r.jsx)("b",{children:"identical"})," LTV to your non-newsletter subscribers?"]})(),href:l(),errorMsg:o})},w=()=>{var e;
1let t=(0,h.Z)(u.z0+"/api/premade-audiences/most-popular-product-in-2nd-order"),s=null!==(e=t.data)&&void 0!==e?e:null,{isLoading:n,errorMsg:o}=t;return(console.log("Commonly used auds:"),console.log(t),n)?(0,r.jsx)(m.Z,{height:25,width:25}):(0,r.jsx)(g,{title:"One-Time Purchasers",description:["Did you know that ",(0,r.jsx)("b",{children:null!==s&&s.product_title})," is your most popular 2nd product purchased?"],href:"/dashboard?selection_type=total_customer_orders&value=1",errorMsg:o})},_=s(9008),N=s.n(_),k=()=>{let{user:e,isLoading:t,errorMsg:s}=(0,c.Z)(u._e);return!e||t?(0,r.jsx)(d.Z,{errorMsg:s}):(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)(N(),{children:(0,r.jsxs)("title",{children:["Select Audience | ",u.iC]})}),(0,r.jsxs)("div",{className:"mt-10 mb-10 lg:mb-12 md:mb-12 mx-auto",style:{maxWidth:1060},children:[(0,r.jsx)("h1",{className:"text-4xl text-center font-bold mb-6",children:"Welcome to CustomerLift"}),(0,r.jsx)("p",{className:"mb-6",children:"We're excited you're here and we want you to get the most out of using CustomerLift for your business! We created CustomerLift to help you quickly learn more about your customers and their buying behavior. You can turn data into revenue by making smart decisions in your marketing and communications program."}),(0,r.jsx)("p",{className:"mb-6",children:"Let's get started…"}),(0,r.jsxs)("p",{className:"mb-6",children:[(0,r.jsx)("span",{className:"font-bold",children:"Step 1: "}),"Think about your business, close your eyes (if you'd like), and jot down 2-3 of the most pressing questions facing your business. A few common examples are:"]}),(0,r.jsxs)("ul",{className:"list-disc list-inside mb-6",children:[(0,r.jsx)("li",{children:"What product makes the most sense to market to prospective customers based on margin and near-term LTV?"}),(0,r.jsx)("li",{children:"I spend a lot of time on my newsletter, is it actually worth it or should I spend that time doing something else?"}),(0,r.jsx)("li",{children:"I run a lot of sales, do those customers that I acquire through sale periods behave differently than my average customer?"})]}),(0,r.jsxs)("p",{className:"mb-6",children:[(0,r.jsx)("span",{className:"font-bold",children:"Step 2: "}),"Start to think about what audience segment will provide you the most information to help answer your question(s). We’ve created easy ways to segment an audience to answer your question. The custom segmentation available is based on products purchased, timeframe of purchase, discount code used, collection purchased, and more."]}),(0,r.jsxs)("p",{className:"mb-6",children:[(0,r.jsx)("span",{className:"font-bold",children:"Step 3: "}),"Once you build a segment, it’s time to analyze the results with our 4-part dashboard and use what you’ve learned to implement change(s) to your marketing plan."]}),(0,r.jsxs)("p",{className:"mb-14",children:[(0,r.jsx)("span",{className:"font-bold",children:"Step 4: "}),"Return to CustomerLift and check on revenue growth from this audience segment on a monthly basis."]}),(0,r.jsx)("h2",{className:"text-center text-4xl",children:"Time to create your first segment! Choose from a Commonly Used Segment or scroll down to begin building your first custom audience segment."})]}),(0,r.jsx)("div",{className:"text-center mb-8 lg:mb-10",children:(0,r.jsx)(a.Z,{children:"Commonly Used Customer Segments"})}),(0,r.jsxs)("div",{className:"mb-10 lg:grid lg:gap-10 lg:auto-cols-fr lg:grid-flow-col",children:[(0,r.jsx)(f,{user:e}),(0,r.jsx)(j,{}),(0,r.jsx)(v,{}),(0,r.jsx)(w,{})]}),(0,r.jsx)("h5",{className:"text-xl text-center leading-8 mb-6",children:"Want to define your own Customer Segment?"}),(0,r.jsx)("div",{className:"flex justify-center pb-20",children:(0,r.jsx)(o(),{href:"/select-audience/custom",legacyBehavior:!0,children:(0,r.jsx)("span",{children:(0,r.jsx)(l.Z,{bg:"secondary",Svg:i.Z,children:"Get Started"})})})})]})}},6951:function(e,t,s){"use strict";s.d(t,{A:function(){return r},p:function(){return n}});let r=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return e===t?o?s+n(e,2):s+e.toFixed(r):o?"".concat(s).concat(n(e,2)," - ").concat(s).concat(n(t,2)):"".concat(s).concat(e.toFixed(r)," - ").concat(s).concat(t.toFixed(r))};function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;
1return"string"==typeof e&&(e=parseFloat(e)),e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})}},5829:function(e,t,s){"use strict";function r(e){return encodeURIComponent(JSON.stringify(e))}s.d(t,{U:function(){return r}})},9008:function(e,t,s){e.exports=s(7828)}},function(e){e.O(0,[888,774,179],function(){return e(e.s=3726)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.