Skip to content

Commit

Permalink
remove then due to errors with amplitude (#183)
Browse files Browse the repository at this point in the history
unable to test it on mobile
  • Loading branch information
ail3ngrimaldi authored Sep 12, 2024
1 parent 13d3c2f commit 5e8ef5f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions landings/a/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ document.addEventListener('DOMContentLoaded', function() {
let redirectUrl = new URL('https://t.me/+573107887042');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:a:click-telegram')
.then(() => {
newWindow.location = redirectUrl.toString();
})
setTimeout(() => {
newWindow.location = redirectUrl.toString();
}, 200)
});
let whatsapp = document.getElementById("whatsapp");
Expand All @@ -186,9 +186,9 @@ document.addEventListener('DOMContentLoaded', function() {
let redirectUrl = new URL('https://api.whatsapp.com/send?phone=573107887042');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:a:click-whatsapp')
.then(() => {
newWindow.location = redirectUrl.toString();
})
setTimeout(() => {
newWindow.location = redirectUrl.toString();
}, 200)
});
const $ = document.querySelector.bind(document);
Expand Down
12 changes: 6 additions & 6 deletions landings/b/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ document.addEventListener('DOMContentLoaded', function() {
let redirectUrl = new URL('https://t.me/+573107887042');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:b:click-telegram')
.then(() => {
newWindow.location = redirectUrl.toString();
});
setTimeout(() => {
newWindow.location = redirectUrl.toString();
}, 200)
});
let whatsapp = document.getElementById("whatsapp");
Expand All @@ -182,9 +182,9 @@ document.addEventListener('DOMContentLoaded', function() {
let redirectUrl = new URL('https://api.whatsapp.com/send?phone=573107887042');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:b:click-whatsapp')
.then(() => {
newWindow.location = redirectUrl.toString();
});
setTimeout(() => {
newWindow.location = redirectUrl.toString();
}, 200)
});
const $ = document.querySelector.bind(document);
Expand Down
12 changes: 6 additions & 6 deletions landings/c/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ document.addEventListener('DOMContentLoaded', function() {
let redirectUrl = new URL('https://t.me/+573107887042');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:c:click-telegram')
.then(() => {
newWindow.location = redirectUrl.toString();
})
setTimeout(() => {
newWindow.location = redirectUrl.toString();
}, 200)
});
let whatsapp = document.getElementById("whatsapp");
Expand All @@ -179,9 +179,9 @@ document.addEventListener('DOMContentLoaded', function() {
let redirectUrl = new URL('https://api.whatsapp.com/send?phone=573107887042');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:c:click-whatsapp')
.then(() => {
newWindow.location = redirectUrl.toString();
})
setTimeout(() => {
newWindow.location = redirectUrl.toString();
}, 200)
});
const $ = document.querySelector.bind(document);
Expand Down

0 comments on commit 5e8ef5f

Please sign in to comment.