Skip to content

Commit 5fdd028

Browse files
authored
Fixed Pricing and FAQ nodes opened clicks tracking (#2101)
* Fixed pricing opened clicks tracking * Added ids for switch to PC and Calculator buttons * FAQ clicks tracking fix * minor fixes * case studies contact us clicks tracking * tbmq title fix
1 parent 2ba29a4 commit 5fdd028

File tree

11 files changed

+42
-33
lines changed

11 files changed

+42
-33
lines changed

_data/hardware-partners.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
name: Things On Edge
225225
logo: /images/partners/things-on-edge.svg
226226
site:
227-
href: https://thingsonedge.com/
227+
href: /#
228228
links:
229229
0:
230230
label: Integration guide

_includes/contact-us-modal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h2>Get your brand featured across our global channels — website, social media
6161
<input type="text" name="_gotcha" style="display:none">
6262
</div>
6363
<div class="submit-button-container">
64-
<input class="button" value="Submit" type="submit">
64+
<input id="modalContactUsSent" class="button gtm_button" value="Submit" type="submit">
6565
</div>
6666
</fieldset>
6767
</form>

_includes/hardware-partners-cards.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414
<div class="text">
1515
<p class="title">
16-
<a href="{{ card.site.href }}" target="_blank">
16+
<a href="{{ card.site.href }}" target="_blank" {% if card.site.href == "/#" %} style="pointer-events: none" {% endif %}>
1717
{{ card.name }}
1818
</a>
1919
</p>

_includes/private-cloud-plan-calculator.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,8 @@ <h4 class="wrap">
768768
'calculator_addon_test_envs': testEnvsCheckbox.checked,
769769
'calculator_addon_mobile_app': mobileAppCheckbox.checked,
770770
'calculator_plan': optimalPlanName,
771-
'calculator_extra_storage_cost': extraStoragePrice,
772-
'calculator_price': price
771+
'calculator_extra_storage_cost': Math.round(extraStoragePrice),
772+
'calculator_price': Math.round(price)
773773
});
774774
}
775775
}

_layouts/pricing.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
}
6060

6161
function onPopPricingState() {
62-
console.log(123132)
6362
const params = Qs.parse(window.location.search, { ignoreQueryPrefix: true });
6463
let sectionId = params['section'] || params['active'];
6564
if (!sectionId) {

case-studies/asg-tech.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: Discover how ASG Tech leveraged ThingsBoard platform to rapidly del
1010
<section class="case-study-hero">
1111
<div class="card">
1212
<div class="text">
13-
<p class="category"> MART IOT SOLUTIONS</p>
13+
<p class="category"> SMART IOT SOLUTIONS</p>
1414
<h1>From Concept to Launch: ASG Tech’s Rapid IoT Innovation with ThingsBoard</h1>
1515
<div class="image inner" style="background-image: url('/images/case-studies/asg-tech.webp')">
1616
<img src="/images/case-studies/asg-tech.svg" title="ASG Tech" alt="ASG Tech logo" width="500" height="126">
@@ -22,7 +22,7 @@ description: Discover how ASG Tech leveraged ThingsBoard platform to rapidly del
2222
</div>
2323
</div>
2424
</section>
25-
<section class="quote-with-mark">
25+
<section class="quote-with-mark fill-background">
2626
<img src="/images/case-studies/quote.svg" title="Quote mark" alt="Quote mark" width="96" height="90">
2727
<div class="quote-text">
2828
<p>“We are delighted to share our exceptional experience working with ThingsBoard's development unit for custom widget development. As a company specializing in delivering innovative loT solutions, working with ThingsBoard Professional Edition platform, we sought their expertise to reduce our time to market. From the initial estimation to the final delivery, ThingsBoard's development team demonstrated remarkable professionalism and technical prowess.”</p>

case-studies/case-study-page.sass

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,17 @@
316316
gap: 64px
317317
align-items: flex-start
318318

319+
&.fill-background
320+
&:before
321+
content: ""
322+
position: absolute
323+
width: 300%
324+
height: 100%
325+
background-color: #F4F8FE
326+
z-index: -1
327+
left: -100%
328+
top: 0
329+
319330
.quote-text
320331
h2
321332
color: #202021

case-studies/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ description: Discover how companies in retail, energy, logistics, and more drive
160160
<h2>Got a success story to tell?</h2>
161161
<p>Real stories, real impact — share your experience with ThingsBoard!</p>
162162
</div>
163-
<button class="button" onclick="openContactUsModal()">Contact Us</button>
163+
<button id="caseStudiesContactUs" class="button gtm_button" onclick="openContactUsModal()">Contact Us</button>
164164
</div>
165165
<div class="pagination-container">
166166
<button id="showMoreBtn" class="button">Show more</button>

case-studies/keners.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ description: Discover how Keners boosted agricultural efficiency using ThingsBoa
2222
</div>
2323
</div>
2424
</section>
25-
<section class="quote-with-mark">
25+
<section class="quote-with-mark fill-background">
2626
<img src="/images/case-studies/quote.svg" title="Quote mark" alt="Quote mark" width="96" height="90">
2727
<div class="quote-text">
2828
<p>“We started using the Thingsboard (TB) in 2017, and later switched to the professional edition (PE). We are very satisfied with the platform as it provides us with high flexibility and stability. We highly appreciate the visual editor for Rule engine new Multitenancy approach. The platform provides for us a unique possibility to create our own data connectors, which allows us to create dashboards and combine data from multiple data sources. <br><br> We highly appreciate the support of the creators, their feedback is simply excellent!”</p>

js/script.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,8 @@ var tb = (function () {
230230
if (checkGTagDataLayer() || !nodeId) {
231231
return;
232232
}
233-
234-
gtag("event", "FaqNode", {
235-
"event_category": nodeId
233+
window.dataLayer.push({'event': 'faq_node_interaction',
234+
'faq_node_id': nodeId
236235
});
237236
}
238237

pricing/index.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,22 @@ selfManagedPlan:
6969
</div>
7070
<div id="thingsboard-pe-options" class="select-product-content justify-content-center align-items-center" style="display: none;">
7171
<div class="product-selector product-selector-outlined">
72-
<div id="Pricing_PE_Cloud"
72+
<div id="Pricing_PE_Cloud"
7373
class="solution thingsboard-cloud active defaultselection gtm_button"
7474
data-product-id="thingsboard-cloud"
7575
onClick="activateProductSection('thingsboard-cloud')">
76-
<h3 data-faq-id="tb-cloud-definition"
76+
<h3 id="Pricing_PE_Cloud" class="gtm_button" data-faq-id="tb-cloud-definition"
7777
data-faq-link-size="70%">Cloud</h3>
7878
</div>
7979
<div id="Pricing_PE_PrivateCloud"
8080
class="solution thingsboard-private-cloud gtm_button"
8181
data-product-id="thingsboard-private-cloud"
8282
onClick="activateProductSection('thingsboard-private-cloud')">
83-
<h3 data-faq-id="tb-private-cloud-what-does-thingsboard-private-cloud-stand-for"
83+
<h3 id="Pricing_PE_PrivateCloud" class="gtm_button" data-faq-id="tb-private-cloud-what-does-thingsboard-private-cloud-stand-for"
8484
data-faq-link-size="70%">Private Cloud</h3>
8585
</div>
8686
<div id="Pricing_PE_SM" class="solution thingsboard-pe gtm_button" data-product-id="thingsboard-pe" onClick="activateProductSection('thingsboard-pe')">
87-
<h3 data-faq-id="pe-pay-as-you-go-self-managed-definition" data-faq-link-size="70%">Self-managed</h3>
87+
<h3 id="Pricing_PE_SM" class="gtm_button" data-faq-id="pe-pay-as-you-go-self-managed-definition" data-faq-link-size="70%">Self-managed</h3>
8888
</div>
8989
</div>
9090
</div>
@@ -95,14 +95,14 @@ selfManagedPlan:
9595
class="solution trendz-cloud gtm_button"
9696
data-product-id="trendz-cloud"
9797
onClick="activateProductSection('trendz-cloud')">
98-
<h3 data-faq-id="trendz-cloud-definition" data-faq-link-size="70%">Cloud</h3>
98+
<h3 id="Pricing_TA_Cloud" class="gtm_button" data-faq-id="trendz-cloud-definition" data-faq-link-size="70%">Cloud</h3>
9999
</div>
100100
<div id="Pricing_TA_SM"
101101
data-solutionId="trendz-self-managed"
102102
class="solution trendz-self-managed active defaultselection gtm_button"
103103
data-product-id="trendz-self-managed"
104104
onClick="activateProductSection('trendz-self-managed')">
105-
<h3 data-faq-id="trendz-pay-as-you-go-self-managed" data-faq-link-size="70%">Self-managed</h3>
105+
<h3 id="Pricing_TA_SM" class="gtm_button" data-faq-id="trendz-pay-as-you-go-self-managed" data-faq-link-size="70%">Self-managed</h3>
106106
</div>
107107
</div>
108108
</div>
@@ -133,15 +133,15 @@ selfManagedPlan:
133133
data-toggle="#northAmerica"
134134
data-description-toggle="#northAmericaHeader"
135135
onClick="activateServerSection('cloud-north-america', '/docs/paas/')">
136-
<h3>North America</h3>
136+
<h3 id="Pricing_PE_Cloud_NorthAmerica" class="gtm_button">North America</h3>
137137
</div>
138138
<div id="Pricing_PE_Cloud_Europe"
139139
data-solutionId="cloud-europe"
140140
class="solution europe gtm_button"
141141
data-toggle="#europe"
142142
data-description-toggle="#europeHeader"
143143
onClick="activateServerSection('cloud-europe', '/docs/paas/eu/')">
144-
<h3>Europe</h3>
144+
<h3 id="Pricing_PE_Cloud_Europe" class="gtm_button">Europe</h3>
145145
</div>
146146
</div>
147147
</div>
@@ -351,7 +351,7 @@ selfManagedPlan:
351351
<div class="text">
352352
<h2 class="no-margin">Ready to scale past 1,000 devices?</h2>
353353
</div>
354-
<button onclick="switchToPrivateCloud()" class="button clulator gtm_button">See Private Cloud Options</button>
354+
<button onclick="switchToPrivateCloud()" id="see_private_cloud_options" class="button gtm_button">See Private Cloud Options</button>
355355
</div>
356356
</div>
357357
</div>
@@ -493,7 +493,7 @@ selfManagedPlan:
493493
<h2>Not sure which plan fits?</h2>
494494
<p>Use our calculator to estimate the best plan for your needs.</p>
495495
</div>
496-
<button onclick="openModal()" class="button clulator gtm_button">Calculate your pricing</button>
496+
<button onclick="openModal()" id="calculate_your_pricing" class="button gtm_button">Calculate your pricing</button>
497497
</div>
498498
<div class="add-ons">
499499
<h2>Optional add-ons</h2>
@@ -667,15 +667,15 @@ selfManagedPlan:
667667
data-toggle="#payAsYouGo"
668668
data-description-toggle="#payAsYouGoHeader"
669669
onClick="activateSolutionSection('pe-pay-as-you-go')">
670-
<h3 data-faq-id="pe-pay-as-you-go-self-managed-subscription-plans" data-faq-link-size="70%">Pay-as-you-go</h3>
670+
<h3 id="Pricing_PE_SM_PayAsYouGo" class="gtm_button" data-faq-id="pe-pay-as-you-go-self-managed-subscription-plans" data-faq-link-size="70%">Pay-as-you-go</h3>
671671
</div>
672672
<div id="Pricing_PE_SM_Perpetual"
673673
data-solutionId="pe-perpetual"
674674
class="solution perpetual gtm_button"
675675
data-toggle="#perpetual"
676676
data-description-toggle="#perpetualHeader"
677677
onClick="activateSolutionSection('pe-perpetual')">
678-
<h3 data-faq-id="pe-perpetual-perpetual-meaning" data-faq-link-size="70%">Perpetual</h3>
678+
<h3 id="Pricing_PE_SM_Perpetual" class="gtm_button" data-faq-id="pe-perpetual-perpetual-meaning" data-faq-link-size="70%">Perpetual</h3>
679679
</div>
680680
</div>
681681
</div>
@@ -904,15 +904,15 @@ selfManagedPlan:
904904
data-toggle="#trendzPayAsYouGo"
905905
data-description-toggle="#trendzPayAsYouGoHeader"
906906
onClick="activateSolutionSection('trendz-pay-as-you-go')">
907-
<h3 data-faq-id="trendz-pay-as-you-go-subscription-plans" data-faq-link-size="70%">Pay-as-you-go</h3>
907+
<h3 id="Pricing_TA_SM_PayAsYouGo" class="gtm_button" data-faq-id="trendz-pay-as-you-go-subscription-plans" data-faq-link-size="70%">Pay-as-you-go</h3>
908908
</div>
909909
<div id="Pricing_TA_SM_Perpetual"
910910
data-solutionId="trendz-perpetual"
911911
class="solution perpetual trendz-perpetual gtm_button"
912912
data-toggle="#trendzPerpetual"
913913
data-description-toggle="#trendzPerpetualHeader"
914914
onClick="activateSolutionSection('trendz-perpetual')">
915-
<h3 data-faq-id="trendz-perpetual-license-meaning" data-faq-link-size="70%">Perpetual</h3>
915+
<h3 id="Pricing_TA_SM_Perpetual" class="gtm_button" data-faq-id="trendz-perpetual-license-meaning" data-faq-link-size="70%">Perpetual</h3>
916916
</div>
917917
</div>
918918
</div>
@@ -1093,15 +1093,15 @@ selfManagedPlan:
10931093
data-toggle="#trendzNorthAmerica"
10941094
data-description-toggle="#trendzNorthAmericaHeader"
10951095
onClick="setActiveSolutionSection('trendz-cloud-north-america')">
1096-
<h3>North America</h3>
1096+
<h3 id="Pricing_Trendz_Cloud_NorthAmerica" class="gtm_button">North America</h3>
10971097
</div>
10981098
<div id="Pricing_Trendz_Cloud_Europe"
10991099
data-solutionId="trendz-cloud-europe"
11001100
class="solution europe gtm_button"
11011101
data-toggle="#trendzEurope"
11021102
data-description-toggle="#trendzEuropeHeader"
11031103
onClick="setActiveSolutionSection('trendz-cloud-europe')">
1104-
<h3>Europe</h3>
1104+
<h3 id="Pricing_Trendz_Cloud_Europe" class="gtm_button">Europe</h3>
11051105
</div>
11061106
</div>
11071107
</div>
@@ -1393,23 +1393,23 @@ selfManagedPlan:
13931393
data-toggle="#community-edition"
13941394
data-description-toggle="#communityEditionHeader"
13951395
onClick="activateSolutionSection('edge-community')">
1396-
<h3>Community Edition</h3>
1396+
<h3 id="Pricing_Edge_CE" class="gtm_button">Community Edition</h3>
13971397
</div>
13981398
<div id="Pricing_Edge_PayAsYouGo"
13991399
data-solutionId="edge-pay-as-you-go"
14001400
class="solution pay-as-you-go active defaultselection gtm_button"
14011401
data-toggle="#payAsYouGo"
14021402
data-description-toggle="#payAsYouGoHeader"
14031403
onClick="activateSolutionSection('edge-pay-as-you-go')">
1404-
<h3 data-faq-id="edge-pay-as-you-go-model" data-faq-link-size="70%">Pay-as-you-go</h3>
1404+
<h3 id="Pricing_Edge_PayAsYouGo" class="gtm_button" data-faq-id="edge-pay-as-you-go-model" data-faq-link-size="70%">Pay-as-you-go</h3>
14051405
</div>
14061406
<div id="Pricing_Edge_Perpetual"
14071407
data-solutionId="edge-perpetual"
14081408
class="solution perpetual"
14091409
data-toggle="#perpetual"
14101410
data-description-toggle="#perpetualHeader"
14111411
onClick="activateSolutionSection('edge-perpetual')">
1412-
<h3 data-faq-id="edge-perpetual-license" data-faq-link-size="70%">Perpetual</h3>
1412+
<h3 id="Pricing_Edge_Perpetual" class="gtm_button" data-faq-id="edge-perpetual-license" data-faq-link-size="70%">Perpetual</h3>
14131413
</div>
14141414
</div>
14151415
</div>
@@ -1752,7 +1752,7 @@ selfManagedPlan:
17521752
<div class="additional-content">
17531753
<div class="plan-calculator-block">
17541754
<div class="text">
1755-
<h2 class="no-margin">Whant to know more about the subsription?</h2>
1755+
<h2 class="no-margin">Want to know more about the subscription?</h2>
17561756
</div>
17571757
<a class="button reset gtm_button" href="/docs/mqtt-broker/subscription/">See full details</a>
17581758
</div>

0 commit comments

Comments
 (0)