@servicetitan/marketing-ui 1.12.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/charts/pie-chart/utils/const.js +1 -1
- package/dist/utils/ads-texts.d.ts +1 -1
- package/dist/utils/ads-texts.d.ts.map +1 -1
- package/dist/utils/ads-texts.js +2 -1
- package/dist/utils/ads-texts.js.map +1 -1
- package/package.json +3 -2
- package/src/components/charts/pie-chart/utils/const.ts +1 -1
- package/src/utils/ads-texts.tsx +4 -1
|
@@ -12,7 +12,7 @@ const formatValue = (val) => {
|
|
|
12
12
|
if (!val) {
|
|
13
13
|
return '0%';
|
|
14
14
|
}
|
|
15
|
-
const valueMain = val ? Math.abs(Math.
|
|
15
|
+
const valueMain = val ? Math.abs(Math.round(val)) : 0;
|
|
16
16
|
if (valueMain > 0) {
|
|
17
17
|
return (0, accounting_1.formatNumber)(valueMain, 0) + '%';
|
|
18
18
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare type AdsStatType = 'impressions' | 'views' | 'clicks' | 'clickRate' | 'conversionRate' | 'closeRate' | 'sessions' | 'conversions' | 'allConversions' | 'transactions' | 'bookedJobs' | 'ranJobs' | 'ranRate' | 'leads' | 'leadRate' | 'completedJobs' | 'soldJobs' | 'revenue' | 'marketingRevenue' | 'expenseToIncomeRatio' | 'costPerBookedJob' | 'costPerLead' | 'costPerRanJob' | 'costPerSoldJob' | 'costPerConversion' | 'cost' | 'averageCostPerClick' | 'averageJobValue' | 'roi' | 'bookingRate' | 'opportunityRate' | 'newCustomerLeads' | 'newCustomerLeadRate' | 'ranJobsFromMarketing' | 'existingCustomerLeads';
|
|
1
|
+
export declare type AdsStatType = 'impressions' | 'views' | 'clicks' | 'clickRate' | 'conversionRate' | 'closeRate' | 'sessions' | 'conversions' | 'allConversions' | 'transactions' | 'bookedJobs' | 'ranJobs' | 'ranRate' | 'leads' | 'leadRate' | 'completedJobs' | 'soldJobs' | 'revenue' | 'marketingRevenue' | 'expenseToIncomeRatio' | 'costPerBookedJob' | 'costPerLead' | 'costPerRanJob' | 'costPerSoldJob' | 'costPerConversion' | 'cost' | 'averageCostPerClick' | 'averageJobValue' | 'roi' | 'bookingRate' | 'callBookingRate' | 'opportunityRate' | 'newCustomerLeads' | 'newCustomerLeadRate' | 'ranJobsFromMarketing' | 'existingCustomerLeads';
|
|
2
2
|
export declare const adsStatDescriptions: Record<AdsStatType, string>;
|
|
3
3
|
//# sourceMappingURL=ads-texts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ads-texts.d.ts","sourceRoot":"","sources":["../../src/utils/ads-texts.tsx"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GACjB,aAAa,GACb,OAAO,GACP,QAAQ,GACR,WAAW,GACX,gBAAgB,GAChB,WAAW,GACX,UAAU,GACV,aAAa,GACb,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,eAAe,GACf,UAAU,GACV,SAAS,GACT,kBAAkB,GAClB,sBAAsB,GACtB,kBAAkB,GAClB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,MAAM,GACN,qBAAqB,GACrB,iBAAiB,GACjB,KAAK,GACL,aAAa,GACb,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,sBAAsB,GACtB,uBAAuB,CAAC;AAE9B,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ads-texts.d.ts","sourceRoot":"","sources":["../../src/utils/ads-texts.tsx"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GACjB,aAAa,GACb,OAAO,GACP,QAAQ,GACR,WAAW,GACX,gBAAgB,GAChB,WAAW,GACX,UAAU,GACV,aAAa,GACb,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,eAAe,GACf,UAAU,GACV,SAAS,GACT,kBAAkB,GAClB,sBAAsB,GACtB,kBAAkB,GAClB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,MAAM,GACN,qBAAqB,GACrB,iBAAiB,GACjB,KAAK,GACL,aAAa,GACb,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,sBAAsB,GACtB,uBAAuB,CAAC;AAE9B,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAuD3D,CAAC"}
|
package/dist/utils/ads-texts.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.adsStatDescriptions = {
|
|
|
11
11
|
transactions: 'The number of completed jobs where revenue was generated',
|
|
12
12
|
leads: 'Phone Calls that are longer than 60 seconds and not dismissed, plus online bookings and manual jobs',
|
|
13
13
|
ranJobs: 'A booking where a truck was dispatched. On the marketing dashboard, we show Ran Jobs that have marketing attribution',
|
|
14
|
-
ranRate: 'The percentage of
|
|
14
|
+
ranRate: 'The percentage of Booked Jobs that turned into Ran Jobs. This is a measure of how many booked jobs are not cancelled or left unfulfilled',
|
|
15
15
|
bookedJobs: 'Leads that were booked/scheduled for a job',
|
|
16
16
|
completedJobs: 'Scheduled jobs that were actually completed',
|
|
17
17
|
soldJobs: 'Jobs that have estimates that were closed. This is useful in determining how many of your ran jobs are turning into actual sales',
|
|
@@ -32,6 +32,7 @@ exports.adsStatDescriptions = {
|
|
|
32
32
|
averageJobValue: 'The average income generated across all your jobs',
|
|
33
33
|
roi: 'The number of dollars generated from each dollar of marketing spend. For example, and ROI of 5x means that every $1 spent on marketing leads to $5 of revenue',
|
|
34
34
|
bookingRate: 'The percentage of leads that resulted in Booked Job',
|
|
35
|
+
callBookingRate: 'The percentage of lead calls that resulted in Booked Jobs',
|
|
35
36
|
opportunityRate: 'The percentage of Ran Jobs that resulted in an Opportunity',
|
|
36
37
|
newCustomerLeads: 'Leads that came from someone not already part of your database, ie. you have never ran a job for them before',
|
|
37
38
|
newCustomerLeadRate: 'The percentage of Leads that came from someone not already part of your database. If this number is low, then you are mostly reaching your existing customers with marketing',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ads-texts.js","sourceRoot":"","sources":["../../src/utils/ads-texts.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ads-texts.js","sourceRoot":"","sources":["../../src/utils/ads-texts.tsx"],"names":[],"mappings":";;;AAsCa,QAAA,mBAAmB,GAAgC;IAC5D,WAAW,EAAE,oCAAoC;IACjD,KAAK,EAAE,2HAA2H;IAClI,MAAM,EAAE,4EAA4E;IACpF,QAAQ,EACJ,gSAAgS;IACpS,WAAW,EACP,sLAAsL;IAC1L,cAAc,EACV,uHAAuH;IAC3H,YAAY,EAAE,0DAA0D;IACxE,KAAK,EAAE,qGAAqG;IAC5G,OAAO,EACH,sHAAsH;IAC1H,OAAO,EACH,0IAA0I;IAC9I,UAAU,EAAE,4CAA4C;IACxD,aAAa,EAAE,6CAA6C;IAC5D,QAAQ,EACJ,kIAAkI;IACtI,OAAO,EAAE,uEAAuE;IAChF,gBAAgB,EACZ,wFAAwF;IAC5F,oBAAoB,EAChB,2HAA2H;IAC/H,WAAW,EAAE,0CAA0C;IACvD,gBAAgB,EAAE,gDAAgD;IAClE,aAAa,EACT,iGAAiG;IACrG,cAAc,EAAE,mDAAmD;IACnE,iBAAiB,EAAE,0DAA0D;IAC7E,mBAAmB,EACf,8JAA8J;IAClK,IAAI,EAAE,2DAA2D;IAEjE,SAAS,EAAE,kEAAkE;IAC7E,cAAc,EACV,wLAAwL;IAC5L,SAAS,EACL,2LAA2L;IAC/L,QAAQ,EACJ,iJAAiJ;IACrJ,eAAe,EAAE,mDAAmD;IACpE,GAAG,EAAE,+JAA+J;IACpK,WAAW,EAAE,qDAAqD;IAClE,eAAe,EAAE,2DAA2D;IAC5E,eAAe,EAAE,4DAA4D;IAC7E,gBAAgB,EACZ,8GAA8G;IAClH,mBAAmB,EACf,8KAA8K;IAClL,qBAAqB,EACjB,mGAAmG;IACvG,oBAAoB,EAChB,2FAA2F;CAClG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/marketing-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Marketing UI component and utils",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
11
|
"typings": "./dist/index.d.ts",
|
|
12
|
+
"sideEffects": false,
|
|
12
13
|
"files": [
|
|
13
14
|
"dist",
|
|
14
15
|
"src"
|
|
@@ -50,5 +51,5 @@
|
|
|
50
51
|
"less": true,
|
|
51
52
|
"webpack": false
|
|
52
53
|
},
|
|
53
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "bfc86a5824b6ce93fa989aa0945c56e62b3b769a"
|
|
54
55
|
}
|
package/src/utils/ads-texts.tsx
CHANGED
|
@@ -29,6 +29,7 @@ export type AdsStatType =
|
|
|
29
29
|
| 'averageJobValue'
|
|
30
30
|
| 'roi'
|
|
31
31
|
| 'bookingRate'
|
|
32
|
+
| 'callBookingRate'
|
|
32
33
|
| 'opportunityRate'
|
|
33
34
|
| 'newCustomerLeads'
|
|
34
35
|
| 'newCustomerLeadRate'
|
|
@@ -49,7 +50,8 @@ export const adsStatDescriptions: Record<AdsStatType, string> = {
|
|
|
49
50
|
leads: 'Phone Calls that are longer than 60 seconds and not dismissed, plus online bookings and manual jobs',
|
|
50
51
|
ranJobs:
|
|
51
52
|
'A booking where a truck was dispatched. On the marketing dashboard, we show Ran Jobs that have marketing attribution',
|
|
52
|
-
ranRate:
|
|
53
|
+
ranRate:
|
|
54
|
+
'The percentage of Booked Jobs that turned into Ran Jobs. This is a measure of how many booked jobs are not cancelled or left unfulfilled',
|
|
53
55
|
bookedJobs: 'Leads that were booked/scheduled for a job',
|
|
54
56
|
completedJobs: 'Scheduled jobs that were actually completed',
|
|
55
57
|
soldJobs:
|
|
@@ -79,6 +81,7 @@ export const adsStatDescriptions: Record<AdsStatType, string> = {
|
|
|
79
81
|
averageJobValue: 'The average income generated across all your jobs',
|
|
80
82
|
roi: 'The number of dollars generated from each dollar of marketing spend. For example, and ROI of 5x means that every $1 spent on marketing leads to $5 of revenue',
|
|
81
83
|
bookingRate: 'The percentage of leads that resulted in Booked Job',
|
|
84
|
+
callBookingRate: 'The percentage of lead calls that resulted in Booked Jobs',
|
|
82
85
|
opportunityRate: 'The percentage of Ran Jobs that resulted in an Opportunity',
|
|
83
86
|
newCustomerLeads:
|
|
84
87
|
'Leads that came from someone not already part of your database, ie. you have never ran a job for them before',
|