|
4 | 4 | window.dataLayer = window.dataLayer || []; |
5 | 5 | function gtag(){dataLayer.push(arguments);} |
6 | 6 | gtag('js', new Date()); |
| 7 | + |
7 | 8 | gtag('config', 'UA-121109725-1'); |
| 9 | +</script> |
| 10 | + |
| 11 | +<script> |
| 12 | +// From: https://support.google.com/analytics/answer/7478520?hl=en |
| 13 | +/** |
| 14 | +* Function that registers a click on an outbound link in Analytics. |
| 15 | +* This function takes a valid URL string as an argument, and uses that URL string |
| 16 | +* as the event label. Setting the transport method to 'beacon' lets the hit be sent |
| 17 | +* using 'navigator.sendBeacon' in browser that support it. |
| 18 | +*/ |
| 19 | +var getOutboundLink = function(urlOrEvent) { |
| 20 | + let url; |
| 21 | + let target; |
| 22 | + if(typeof urlOrEvent === 'string') { |
| 23 | + url = urlOrEvent; |
| 24 | + } else { |
| 25 | + let event = urlOrEvent || window.event; |
| 26 | + let el = event.target || event.srcElement; |
| 27 | + if(!el.href) el = el.parentNode; |
| 28 | + url = el.href; |
| 29 | + target = el.target; |
| 30 | + } |
| 31 | + //console.log(url); |
| 32 | + //console.log(target); |
| 33 | + if(window.google_tag_manager) { |
| 34 | + gtag('event', 'click', { |
| 35 | + 'event_category': 'outbound', |
| 36 | + 'event_label': url, |
| 37 | + 'transport_type': 'beacon', |
| 38 | + 'event_callback': function() { |
| 39 | + window.open(url, target); |
| 40 | + //document.location = url; |
| 41 | + } |
| 42 | + }); |
| 43 | + } else { |
| 44 | + window.open(url, target); |
| 45 | + } |
| 46 | +} |
8 | 47 | </script></head><body><div class="mdl-layout mdl-js-layout mdl-layout--fixed-header"><header class="mdl-layout__header mdl-layout__header--scroll" style="font-family: 'Roboto', 'Helvetica', sans-serif; background-color: #263238;"><div class="mdl-layout__header-row" style="padding: 0 2em 0 2em"><span class="mdl-layout__title"><a style="color: #FFF; text-decoration: none; padding-right: 1em" href="https://superuserlabs.github.io/">Superuser Labs</a></span><div class="mdl-navigation"><a class="mdl-navigation__link" href="https://getthankful.io/" style="font-weight: 500;">Thankful</a><a class="mdl-navigation__link" href="https://activitywatch.net/" style="font-weight: 500;">ActivityWatch</a></div><div class="mdl-layout-spacer"></div><div class="mdl-navigation"><a class="mdl-navigation__link" href="https://github.com/SuperuserLabs/thankful"><i class="fab fa-github fa-2x"></i></a><a class="mdl-navigation__link" href="https://twitter.com/getthankful"><i class="fab fa-twitter fa-2x"></i></a></div></div></header><main class="mdl-layout__content"><div style="position: relative; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05)); background-repeat: no-repeat; background-size: cover; background-position: center; padding: 5em 0em 2em 0"><div class="mdl-typography--text-center mdl-color-text--grey-800"><div><div class="mdl-typography--display-4"><div style="white-space: nowrap; font-size: 0.8em"><img src="/media/thankful-logo-512.png" style="width: 1em; display: inline-block; vertical-align: middle; margin: 0em 0em 0.2em 0"/><span style="display: inline-block; vertical-align: middle; font-family: 'Varela round'"><b>hankful</b></span></div></div></div><div style="font-family: 'Varela round'"><div style="margin-top: 1.5em; font-size: 1.5em; font-weight: bold;">Support the creators that you love using cryptocurrency</div><div style="margin-top: 0.6em; font-size: 1.25em">Easier, fairer, and without middlemen</div></div><hr style="width: 24em; margin: 2em auto 2em auto;"/><div style="padding: 0 1em"><h5><b>Try the early alpha!</b></h5><!--div+button("asd", style="background-color: #F82; color: white") |
9 | 48 | | <i class="fab fa-firefox" style="color: #FFF"></i> Firefox |
10 | | ---><div style="display: flex; align-items: center; justify-content: center;"><div style="margin-right: 1em"><a href="https://chrome.google.com/webstore/detail/thankful/eapbondnpopbiepnjfhnaaejfdfjhnde"><img src="https://developer.chrome.com/webstore/images/ChromeWebStore_BadgeWBorder_v2_206x58.png"/></a></div><div><a href="https://addons.mozilla.org/en-US/firefox/addon/getthankful/"><img src="https://addons.cdn.mozilla.net/static/img/addons-buttons/AMO-button_1.png"/></a></div></div><div class="mdl-typography--body-2-color-contrast" style="margin-top: 0.5em">...or get the code on <a class="mdl-typography--body-2-color-contrast" href="https://github.com/SuperuserLabs/thankful">GitHub</a></div><figure style="border: 1px solid #555; border-radius: 3px; width: 30em; max-width: 100%; margin: 1em auto;"><a href="/media/screenshot-thankful-1280x800.png"><img src="/media/screenshot-thankful-1280x800.png" width="100%"/></a></figure><!--div(style="margin: 1em 3em 0 3em")include /templates/email-signup-horizontal.pug |
| 49 | +--><div style="display: flex; align-items: center; justify-content: center;"><div style="margin-right: 1em"><a href="https://chrome.google.com/webstore/detail/thankful/eapbondnpopbiepnjfhnaaejfdfjhnde" target="_blank" onclick="getOutboundLink(event); return false;"><img src="https://developer.chrome.com/webstore/images/ChromeWebStore_BadgeWBorder_v2_206x58.png"/></a></div><div><a href="https://addons.mozilla.org/en-US/firefox/addon/getthankful/" target="_blank" onclick="getOutboundLink(event); return false;"><img src="https://addons.cdn.mozilla.net/static/img/addons-buttons/AMO-button_1.png"/></a></div></div><div class="mdl-typography--body-2-color-contrast" style="margin-top: 0.5em">...or get the code on <a class="mdl-typography--body-2-color-contrast" href="https://github.com/SuperuserLabs/thankful">GitHub</a></div><figure style="border: 1px solid #555; border-radius: 3px; width: 30em; max-width: 100%; margin: 1em auto;"><a href="/media/screenshot-thankful-1280x800.png"><img src="/media/screenshot-thankful-1280x800.png" width="100%"/></a></figure><!--div(style="margin: 1em 3em 0 3em")include /templates/email-signup-horizontal.pug |
11 | 50 | --></div><!--divh5(style='margin-bottom: 0.5em') |
12 | 51 | b Get started! |
13 | 52 | p |
|
0 commit comments