Skip to content

Instantly share code, notes, and snippets.

View simonvreeman's full-sized avatar

Simon Vreeman simonvreeman

View GitHub Profile
@simonvreeman
simonvreeman / Boilerplate.html
Last active September 15, 2020 12:55
Personal boilerplate with the basics for SEO and Google Analytics
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Boilerplate</title>
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1">
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin>
<link rel="dns-prefetch" href="https://www.google-analytics.com">
<style>
:root {
// Generate random Client ID
function uuid() {
var uuid = ( [1e7]+-1e3+-4e3+-8e3+-1e11 ).replace( /[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) );
return uuid;
}
(function() {
var ua = navigator.userAgent || navigator.vendor || window.opera;
var clientID = uuid();
var trackingID = 'UA-XXXXXX-YY';

Keybase proof

I hereby claim:

  • I am simonvreeman on github.
  • I am vreeman (https://keybase.io/vreeman) on keybase.
  • I have a public key ASDsJ_N4guUSOsMQ5tn2ORz38g1DHxnwx2g8SR_i7ZV77wo

To claim this, I am signing this object: