This commit is contained in:
Daniel LaForce 2024-08-01 19:18:40 -06:00
parent e7acc7b115
commit 15ee1c942a
2 changed files with 10 additions and 6 deletions

2
_redirects Normal file
View File

@ -0,0 +1,2 @@
/redirect/google-maps https://www.google.com/maps/d/u/0/viewer?mid=1uaJCMW64w_zwERr9nFcVJchrZdocNbA&ll=39.035283304733184%2C-105.2908042761522&z=14 301
/redirect/gaia-gps https://www.gaiagps.com/map/?lat=39.03966489533956&lon=-105.32945964046155&zoom=14&loc=14.0/-105.3120/39.0318&pubLink=VVXcZPvEfvAbvRWi5F0DQPNT&folderId=e810350b-1b3f-49bf-8f67-6a497827f190 301

View File

@ -72,27 +72,29 @@
} }
document.getElementById('gaia-gps-link').addEventListener('click', function(event) { document.getElementById('gaia-gps-link').addEventListener('click', function(event) {
event.preventDefault();
const token = generateToken(16); const token = generateToken(16);
localStorage.setItem('gaiaAccessToken', token); localStorage.setItem('gaiaAccessToken', token);
const url = 'gaia-landing.html?token=' + token + '&utm_source=website&utm_medium=button&utm_campaign=map_redirect'; const url = 'https://argobox.com/redirect/gaia-gps?token=' + token;
gtag('event', 'click', { gtag('event', 'click', {
'event_category': 'Outbound Link', 'event_category': 'Outbound Link',
'event_label': 'Gaia GPS', 'event_label': 'Gaia GPS',
'value': url 'value': url
}); });
this.href = url; window.location.href = url;
}); });
document.getElementById('google-maps-link').addEventListener('click', function(event) { document.getElementById('google-maps-link').addEventListener('click', function(event) {
event.preventDefault();
const token = generateToken(16); const token = generateToken(16);
localStorage.setItem('googleMapsAccessToken', token); localStorage.setItem('googleMapsAccessToken', token);
const url = 'google-maps-landing.html?token=' + token + '&utm_source=website&utm_medium=button&utm_campaign=map_redirect'; const url = 'https://argobox.com/redirect/google-maps?token=' + token;
gtag('event', 'click', { gtag('event', 'click', {
'event_category': 'Outbound Link', 'event_category': 'Outbound Link',
'event_label': 'Google Maps', 'event_label': 'Google Maps',
'value': url 'value': url
}); });
this.href = url; window.location.href = url;
}); });
}); });
@ -107,8 +109,8 @@
<iframe src="https://www.google.com/maps/d/embed?mid=1uaJCMW64w_zwERr9nFcVJchrZdocNbA&ll=39.03966489533956%2C-105.32945964046155&z=14"></iframe> <iframe src="https://www.google.com/maps/d/embed?mid=1uaJCMW64w_zwERr9nFcVJchrZdocNbA&ll=39.03966489533956%2C-105.32945964046155&z=14"></iframe>
<iframe src="https://www.gaiagps.com/public/VVXcZPvEfvAbvRWi5F0DQPNT/?embed=True" seamless></iframe> <iframe src="https://www.gaiagps.com/public/VVXcZPvEfvAbvRWi5F0DQPNT/?embed=True" seamless></iframe>
<div id="button-container"> <div id="button-container">
<a href="#" target="_blank" class="button" id="google-maps-link">View in Google Maps</a> <a href="#" class="button" id="google-maps-link">View in Google Maps</a>
<a href="#" target="_blank" class="button" id="gaia-gps-link">View in Gaia GPS</a> <a href="#" class="button" id="gaia-gps-link">View in Gaia GPS</a>
</div> </div>
<div id="consent-banner"> <div id="consent-banner">
This site uses cookies to improve your experience. By continuing to browse, you accept the use of cookies. This site uses cookies to improve your experience. By continuing to browse, you accept the use of cookies.