PageSourceSearch

https://integrately.com/_nuxt/DAiLdfpi.js

js integrately.com collected 2026-09-24 08:36:54 UTC 11,887 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BhAJKeGI.js","./OrQHdHep.js","./DTN0ztWw.js"])))=>i.map(i=>d[i]);
2import{p as $,u as A,g as v,f as R,e as N,q as I,c as i,a as e,b as m,h as g,v as h,i as l,d as V,t as y,n as w,x as d,j as x,F as b,r as D,k as L,a0 as H,J as E,o as r,ac as U,ag as q}from"./OrQHdHep.js";import{_ as B,a as M,b as z}from"./DP0KfC8o.js";const O=$("/images/calculators/cpl-formula.png"),W=U(()=>q(()=>import("./BhAJKeGI.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(c=>c.default||c)),j={class:""},J={class:"calcSection bg-white"},K={class:"container"},Q={class:"calculatorSection"},Y={class:"calculatorContainer",id:"calculatorApp"},G={class:"calcFields"},X={class:"calcFieldContainer"},Z={class:"calcFieldVal"},ee={class:"calcFieldContainer"},te={class:"calcFieldVal"},ae={class:"calcFieldContainer"},le={class:"calcFieldVal"},oe={class:"calcResult"},se={class:"shareResultContainer"},ne={class:"shareResultInputWrap"},ie=["disabled"],re={key:0,width:"16",height:"16",class:"rightMarginSm",viewBox:"0 0 38 37"},de={key:1},ce={key:2},ue={key:3},pe={class:"calculatorContentContainer"},me={class:"calculatorfaqSection"},ge={class:"container"},he={class:"p-12 flex bg-white rounded-2xl flex-col tablet-p:p-5 tablet-p:py-8"},ye=["onClick"],be={class:"overflow-hidden max-h-0 transition-all pl-11"},fe={class:"mt-3 last:mb-5"},Ce={class:"py-32 desktop:py-24 laptop:py-20 tablet-p:py-16 bg-white"},xe={__name:"cpl-calculator",setup(c){A({title:"CPL Calculator",description:"Below, we have a CPL Calculator that may help you calculate your CPL and figure out how many leads and money you'll need to achieve a particular CPL.",link:[{rel:"canonical",href:v().url.canonicalURL}]}),R({contentType:"text/html; charset=UTF-8",title:"CPL Calculator",description:"Below, we have a CPL Calculator that may help you calculate your CPL and figure out how many leads and money you'll need to achieve a particular CPL.",ogTitle:"CPL Calculator",ogUrl:v().url.canonicalURL,ogDescription:"Below, we have a CPL Calculator that may help you calculate your CPL and figure out how many leads and money you'll need to achieve a particular CPL.",ogImage:"http://integrately.com/images/calculators/cpl-calculator.png",ogType:"website",twitterTitle:"CPL Calculator",twitterDescription:"Below, we have a CPL Calculator that may help you calculate your CPL and figure out how many leads and money you'll need to achieve a particular CPL.",twitterImage:"http://integrately.com/images/calculators/cpl-calculator.png",twitterCard:"summary_large_image",fbAppId:"301553917773270",msapplicationTileColor:"#ffffff",msapplicationTileImage:"/images/fav/ms-icon-144x144.png",themeColor:"#ffffff",viewport:"width=device-width, initial-scale=1"});const P=N(),a=L({cost:null,leads:null,email:"",emailSending:!1,emailSent:!1,costParamName:"cost",leadsParamName:"leads",title:"CPL Calculator"}),f=E(()=>{if(isNaN(a.cost)||isNaN(a.leads))return 0;try{var o=a.cost/a.leads;return isFinite(o)?o.toFixed(2):0}catch{return 0}}),_=L([{question:"How much does an average lead cost?",answer:"An average lead cost cannot be determined as it varies greatly depending on your industry, target market, and competition. It can vary from $30 to $250 and above.",isExpanded:!1}]);I(async()=>{let o=new URLSearchParams(P.query);o.has(a.costParamName)&&(a.cost=o.get(a.costParamName)),o.has(a.leadsParamName)&&(a.leads=o.get(a.leadsParamName))});function S(o,t){o.isExpanded=!o.isExpanded;let n=t.target.nextElementSibling;n.style.maxHeight?n.style.maxHeight=null:n.style.maxHeight=n.scrollHeight+"px"}function C(){let o=a.email;return/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(o)}function k(){var o={Name:"CPL Calculator",Description:"Below, we have a CPL Calculator that may help you calculate your CPL and figure out how many leads and money you'll need to acquire a particular CPL.",Inputs:[{Label:"Total Amount Spent",Value:a.cost},{Label:"Total Attributed Leads",Value:a.leads}],Outputs:[{Label:"CPL (Cost per lead)",Value:f.value}],URL:window.location.origin+window.location.pathname+`?${a.costParamName}=${a.cost}&${a.leadsParamName}=${a.leads}`};return o}async function F(){var o=a.email;if(C()){a.emailSending=!0;var t={Email:o,Subject:"CPL Calculator Results",Result:k()};await H("/api/calculator/send-email",{server:!1,method:"POST",body:t,onResponse({request:n,response:u,options:p}){a.emailSending=!1,a.emailSent=!0,setTimeout(function(){a.emailSent=!1},2e3)},onResponseError({request:n,response:u,options:p}){a.emailSending=!1,a.emailSent=!0}},"$aI7sJk3CyK")}}return(o,t)=>{const n=z,u=M,p=W;return r(),i(b,null,[e("section",null,[e("div",j,[m(n,{heading:"CPL Calculator","image-src":"cpl-calculator.svg","image-alt":"cpl calculator"})])]),e("section",J,[e("div",K,[e("div",Q,[e("div",Y,[e("div",G,[e("div",X,[t[5]||(t[5]=e("div",{class:"calcFieldLabel"}," Total Amount Spent ",-1)),e("div",Z,[t[4]||(t[4]=e("div",{class:"calcFieldValHelp"},"$",-1)),g(e("input",{type:"text",class:"calcFieldInput",placeholder:"0","onUpdate:modelValue":t[0]||(t[0]=s=>l(a).cost=s)},null,512),[[h,l(a).cost]])])]),e("div",ee,[t[6]||(t[6]=e("div",{class:"calcFieldLabel"}," Total Attributed Leads ",-1)),e("div",te,[g(e("input",{type:"text",class:"calcFieldInput",placeholder:"0","onUpdate:modelValue":t[1]||(t[1]=s=>l(a).leads=s)},null,512),[[h,l(a).leads]])])]),e("div",ae,[t[8]||(t[8]=e("div",{class:"calcFieldLabel"},[V(" CPL "),e("div",{class:"calcFieldLabelHelper"},"Cost per lead")],-1)),e("div",le,[t[7]||(t[7]=e("div",{class:"calcFieldValHelp"},"$",-1)),e("div",oe,y(l(f)),1)])])]),e("div",se,[t[10]||(t[10]=e("div",{class:"hareResultHeading"},[e("img",{width:"56",height:"56",class:"rightMarginSm",loading:"lazy",src:B,alt:"email result"}),e("div",{class:"hareResultHeadingTxt"},"Email this result to me")],-1)),e("div",ne,[g(e("input",{type:"email",placeholder:"Enter your email address","onUpdate:modelValue":t[2]||(t[2]=s=>l(a).email=s),disabled:l(a).emailSending},null,8,ie),[[h,l(a).email]]),e("button",{onClick:t[3]||(t[3]=s=>F()),class:w({disabled:!C(),loading:l(a).emailSending,success:l(a).emailSent})},[!l(a).emailSending&&!l(a).emailSent?(r(),i("svg",re,[...t[9]||(t[9]=[e("path",{fill:"#f35a38",d:"M36.7,0.6l-36,15.1v2l13.7,5.3l5.3,13.7h2L36.7,0.6z"},null,-1)])])):d("",!0),!l(a).emailSending&&!l(a).emailSent?(r(),i("span",de,"Send")):d("",!0),l(a).emailSending?(r(),i("span",ce,"Sending...")):d("",!0),l(a).emailSent?(r(),i("span",ue,"Sent!")):d("",!0)],2)])])]),e("div",pe,[m(u,{title:l(a).title,"image-src":"cpl-calculator.png"},null,8,["title"]),t[11]||(t[11]=e("p",null,"Cost per lead is an important metric to track when optimizing your marketing campaigns.It helps you understand how much you're spending to acquire a new customer.",-1)),t[12]||(t[12]=e("h2",null,"How to Calculate CPL (Cost Per Lead)",-1)),t[13]||(t[13]=e("h3",null,"CPL (Cost Per Lead) Formula",-1)),t[14]||(t[14]=e("table",{cellpadding:"10",cellspacing:"0",style:{"margin-bottom":"15px"}},[e("tbody",null,[e("tr",null,[e("td",{rowspan:"2",style:{"padding-right":"10px"}},[e("b",null,"Cost Per Lead =")]),e("td",{style:{"border-bottom":"1px solid #272727","text-align":"center"}},[e("b",null,"Total Amount Spent")])]),e("tr",null,[e("td",{align:"center",rows
2pan:"2"},[e("b",null,"Total Attributed Leads")])])])],-1)),t[15]||(t[15]=x('<p>Here,</p><ul><li><b>Cost Per Lead:</b> It is the amount spent to get a lead.</li><li><b>Total Amount Spent:</b> Total amount spent on acquiring leads.</li><li><b>Total Attributed Leads:</b> Total number of leads acquired.</li></ul><img src="'+O+'" width="492" height="197" alt=" CPL (Cost Per Lead) Calculator" loading="lazy"><h2>What Does CPL (Cost Per Lead) Mean?</h2><p>Cost Per Lead (CPL) is the average cost of generating a lead. </p><h2>What is an example of a cost per lead?</h2><p>Imagine you are a marketer for a regional car dealership. Your total marketing budget is $10,000 per month. In the past month, your campaign generated 500 leads, then</p>',7)),t[16]||(t[16]=e("table",{cellpadding:"10",cellspacing:"0",style:{"margin-bottom":"15px"}},[e("tbody",null,[e("tr",null,[e("td",{rowspan:"2",style:{"padding-right":"10px"}},"CPL = "),e("td",{style:{"border-bottom":"1px solid #272727","text-align":"center"}},"$10,000"),e("td",{rowspan:"2",style:{"padding-left":"10px"}},"= $20")]),e("tr",null,[e("td",{align:"center",rowspan:"2"},"$500")])])],-1)),t[17]||(t[17]=x("<h2>Why do you need to calculate the cost per lead?</h2><p>Knowing your current CPL is important, to assess your campaign performance.</p><p>If <b>Current CPL &gt; Desired CPL</b>, then you&#39;ll need to find ways to lower your costs or increase the number of leads you&#39;re generating.</p><h2>How to decrease cost per lead?</h2><p>There are many different ways to decrease your CPL, but some common methods include:</p><ul><li><b>Create targeted ad campaigns:</b> Focus your spending on the most-likely convertible audiences.</li><li><b>Use retargeting:</b> Show ads to people who have already visited your website and increase your conversion rate</li><li><b>Focus on quality:</b> High-quality content and products help convince people the worth of the investment</li><li><b>Use lead magnets:</b> Offer something valuable in exchange for contact information.</li><li><b>Use social media:</b> Use the right channels and post interesting and relevant content to your target audience.</li><li><b>Optimize your website:</b> People stay longer on websites that are easy to navigate.</li><li><b>Test and track:</b> Always test and track your campaigns to see what is working and what isn’t.</li></ul><h2>What Is The Desired Cost Per Lead</h2><p>The desired cost per lead is the CPL you would like to achieve in order to be profitable. To calculate this, you&#39;ll must know your:</p><ul><li>Average Selling Price, and</li><li>Desired Profit Margin.</li></ul><p>Once you have these numbers, simply perform the following calculation to get your Desired Cost Per Lead</p>",10)),t[18]||(t[18]=e("table",{cellpadding:"10",cellspacing:"0",style:{"margin-bottom":"15px"}},[e("tbody",null,[e("tr",null,[e("td",{rowspan:"2",style:{"padding-right":"10px"}},"Desired CPL = "),e("td",{style:{"border-bottom":"1px solid #272727","text-align":"center"}},"(Average Selling Price) - (Desired Profit Margin)")]),e("tr",null,[e("td",{align:"center",rowspan:"2"},"(Current CPL)")])])],-1)),t[19]||(t[19]=e("p",null,"For example, if you want to make a $100 profit and your Average Selling Price is $200 with a current CPL of $25, then",-1)),t[20]||(t[20]=e("table",{cellpadding:"10",cellspacing:"0",style:{"margin-bottom":"15px"}},[e("tbody",null,[e("tr",null,[e("td",{rowspan:"2",style:{"padding-right":"10px"}},"Desired CPL = "),e("td",{style:{"border-bottom":"1px solid #272727","text-align":"center"}},"$200 - $100"),e("td",{rowspan:"2",style:{"padding-left":"10px"}},"= $4")]),e("tr",null,[e("td",{align:"center",rowspan:"2"},"$25")])])],-1))])])])]),e("div",me,[e("div",ge,[e("div",he,[t[21]||(t[21]=e("div",{class:"text-5xl desktop:text-4xl laptop:text-4xl tablet-l:text-3xl tablet-p:text-[28px] tablet-p:leading-[36px] font-extrabold tracking-tighter leading-[66px] desktop:leading-[50px] laptop:leading-[44px] font-extrabold mb-6"},"Frequently Asked Questions",-1)),(r(!0),i(b,null,D(l(_),s=>(r(),i(b,null,[e("h3",{class:w(["relative cursor-pointer p-5 hover:bg-skin-secondary rounded-lg flex items-center gap-4 font-bold text-[22px] desktop:text-xl laptop:text-lg tablet-l:text-lg tablet-p:text-base tablet-p:leading-[24px] before:inline-flex before:relative before:w-[10px] before:h-[10px] before:border-r-2 before:border-skin-dark before:border-b-2 before:rotate-45 tablet-p:p-3",{expanded:s.isExpanded}]),onClick:T=>S(s,T)},y(s.question),11,ye),e("div",be,[e("p",fe,y(s.answer),1)])],64))),256))])])]),e("section",Ce,[m(p,{"cal-name":"cpl-calculator"})])],64)}}};export{xe as default};

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.