Skip to content

Commit acbd801

Browse files
committed
Add URL parameter handling for campaign tracking and update content in CARTO page
1 parent 725e51f commit acbd801

File tree

4 files changed

+55
-34
lines changed

4 files changed

+55
-34
lines changed

Diff for: assets/js/app.js

+33
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,36 @@ clipboard.on('error', function(e) {
2929
console.error('Trigger:', e.trigger);
3030
});
3131
/* eslint-enable */
32+
33+
// code which reads ?ref=ads-c-* or ?utm_campaign= from entry URL and adds utm_campaign= to all all links on the page
34+
(function() {
35+
var urlParams = new URLSearchParams(window.location.search);
36+
var ref = urlParams.get('ref');
37+
var utm_campaign = urlParams.get('utm_campaign');
38+
if (ref || utm_campaign) {
39+
var links = document.querySelectorAll('a');
40+
links.forEach(function(link) {
41+
var href = link.getAttribute('href');
42+
if (href) {
43+
if (ref) {
44+
if (href.indexOf('?') === -1) {
45+
href += '?';
46+
} else {
47+
href += '&';
48+
}
49+
href += 'utm_campaign=' + ref;
50+
}
51+
if (utm_campaign) {
52+
if (href.indexOf('?') === -1) {
53+
href += '?';
54+
} else {
55+
href += '&';
56+
}
57+
href += 'utm_campaign=' + utm_campaign;
58+
}
59+
link.setAttribute('href', href);
60+
}
61+
});
62+
}
63+
}
64+
)();

Diff for: assets/scss/common/_global.scss

-4
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,3 @@ body {
204204
-webkit-text-fill-color: transparent;
205205
-moz-text-fill-color: transparent;
206206
}
207-
208-
.btn {
209-
margin: 8px;
210-
}

Diff for: content/carto/index.md

+19-27
Original file line numberDiff line numberDiff line change
@@ -8,51 +8,43 @@ type: "html-content"
88

99
<article class="pb-5">
1010
<div class="container pt-5">
11-
<h1 class="cloud-title display-2 text-center mt-0 mb-4"><span>Maps for your Data Team</span></h1>
11+
<h1 class="cloud-title display-2 text-center mt-0 mb-4"><span>Light alternative to CARTO</span></h1>
1212
<div class="lead text-center mb-4 py-1 row justify-content-center">
13-
<div class="text-center lead col-lg-10">Dekart is <mark>lightweight alternative to CARTO</mark> for BigQuery and Snowflake users. You will create maps instantly with SQL without moving data and share your insights with immersive up-to-date maps.</div>
13+
<div class="text-center lead col-lg-10">Dekart is light and fast map analytics for <b>BigQuery</b> and <b>Snowflake</b>. <br/> Your data team will create up-to-date maps in seconds with SQL without moving data.</div>
1414
</div>
1515
</div>
16-
<div class="text-center">
17-
<p><a class="btn btn-primary btn-lg" href="http://cloud.dekart.xyz/workspace?ref=carto-alternative-1" role="button">Sign up for free</a></p>
18-
<p><a href="https://calendly.com/vladi-dekart/30min" target="_blank">Book a call with a team</a></p>
16+
<div class="text-center py-3">
17+
<p><a class="btn btn-primary btn-lg m-2" href="http://cloud.dekart.xyz/workspace?ref=carto-alternative-2" role="button">Start Free</a> <a class="btn btn-outline-primary btn-lg" href="https://calendly.com/vladi-dekart/30min" target="_blank">Book a call</a></p>
18+
</div>
19+
<div class="text-center d-flex flex-column align-items-center">
20+
<!-- <h2 class="display-3">Create Maps in Seconds</h2> -->
21+
<p class="lead">Watch short demo video</p>
22+
<div class="container mb-4" style="max-width: 900px;">
23+
<div class="embed-responsive embed-responsive-16by9">
24+
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/qwOqLm3i7Ik" allowfullscreen></iframe>
25+
</div>
26+
</div>
1927
</div>
20-
{{< landing-image src="berlin-roads.png" caption="Watch 40 seconds demo" >}}
2128
<div class="d-flex flex-column align-items-center mb-3">
22-
<div class="col-xl-12">
29+
<div class="col-xl-12 text-left">
2330
<h2 class="display-3">Why Choose Dekart <span class="d-inline-block">Over CARTO?</span></h2>
2431
<!-- item -->
2532
<h4>Transparent Pricing</h4>
26-
<p>Plans start at $49/month – no surprises, no overpaying. Explore <a href='/cloud/'>our pricing options</a> to find the right fit.</p>
33+
<p>Free Personal Plan. Grow plans start at <i>$49/month</i> – no surprises, no overpaying. <br/><span class="d-inline-block">👉 <a href='/cloud/'>Dekart Cloud pricing</a></span></p>
2734
<!-- item -->
2835
<h4>No Vendor Lock-In</h4>
29-
<p>Open-source license, commercial license, SaaS, or self-hosting – Dekart meets any deployment needs.</p>
36+
<p>Open-source license, commercial code license, SaaS, or self-hosting – Dekart meets any deployment needs. <br/><span class="d-inline-block">👉 <a href='/self-hosted/'>Self-hosting options</a></span></p>
3037
<!-- item -->
3138
<h4>High-performance Map Visualization</h4>
32-
<p>Dekart uses the same Kepler.gl and deck.gl libraries as CARTO, delivering stunning, high-performance maps.</p>
39+
<p>Dekart uses the same Kepler.gl and deck.gl libraries as CARTO, delivering stunning, high-performance maps. <br/><span class="d-inline-block">👉 <a href='/docs/about/overture-maps-examples/'>Live map examples</a></span></p>
3340
<!-- item -->
3441
<h4>Faster Data Connectors</h4>
3542
<p>Built with contributions from Google and Snowflake experts, Dekart's data connectors use multithreading and multiple caching techniques to fetch data faster and cheaper.</p>
3643
</div>
3744
</div>
3845

39-
<div>
40-
<div class="text-center d-flex flex-column align-items-center">
41-
<h2 class="display-3">Create Maps in Seconds</h2>
42-
<p class="lead">Watch short demo video</p>
43-
<div class="container mb-4" style="max-width: 900px;">
44-
<div class="embed-responsive embed-responsive-16by9">
45-
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/qwOqLm3i7Ik" allowfullscreen></iframe>
46-
</div>
47-
</div>
4846
<div class="text-center">
49-
<p><a class="btn btn-primary" href="http://cloud.dekart.xyz/workspace?ref=carto-alternative-2" role="button">Create Free Workspace</a> <a class="btn btn-outline-primary" href="/docs/about/overture-maps-examples/" target="_blank">Start with Example</a></p>
50-
<p></p>
47+
<p><a class="btn btn-primary m-2" href="http://cloud.dekart.xyz/workspace?ref=carto-alternative-2" role="button">Create Free Workspace</a> <a class="btn btn-outline-primary" href="/docs/about/overture-maps-examples/" target="_blank">Book a call</a></p>
48+
<p>Book a call with a team to unlock insider discounts</p>
5149
</div>
52-
</div>
53-
</div>
54-
<div class="text-center">
55-
<h3 class="display-3">Save your team from <span class="d-inline-block">slow, expensive maps</span></h3>
56-
<p class="lead mt-5"><a target="_blank" href="https://calendly.com/vladi-dekart/30min">Book a call with the Dekart team</a> — Unlock insider discounts and learn about our roadmap.</p>
57-
</div>
5850
</article>

Diff for: layouts/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h2 class="h3"><a class="stretched-link text-body" href="{{ .Permalink }}">{{ .P
8383
<!-- <h2 class="h3 mt-0 mb-5 text-center">Connectors</h2> -->
8484
<div class="row justify-content-center g-4">
8585
<div class="col-sm">
86-
<div class="text-center">
86+
<div class="text-center mb-5">
8787
<img class="connector" src="/bigquery.svg" alt="BigQuery">
8888
<div class="h5 connector">BigQuery</div>
8989
<div class="configure-in-cloud">
@@ -93,7 +93,7 @@ <h2 class="h3"><a class="stretched-link text-body" href="{{ .Permalink }}">{{ .P
9393
</div>
9494
</div>
9595
<div class="col-sm">
96-
<div class="text-center">
96+
<div class="text-center mb-5">
9797
<img class="connector" src="/snowflake.svg" alt="snowflake">
9898
<div class="h5 connector">Snowflake</div>
9999
<div class="configure-in-cloud">
@@ -104,7 +104,7 @@ <h2 class="h3"><a class="stretched-link text-body" href="{{ .Permalink }}">{{ .P
104104
</div>
105105
</div>
106106
<div class="col-sm">
107-
<div class="text-center">
107+
<div class="text-center mb-5">
108108
<img class="connector" src="/athena.svg" alt="AWS Athena">
109109
<div class="h5 connector">Athena</div>
110110
<div class="configure-in-cloud">

0 commit comments

Comments
 (0)