Skip to content

Commit

Permalink
feature() - add splitbee for analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
vnglst committed Jul 13, 2020
1 parent 852a116 commit 9d3e9a1
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions src/template.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="theme-color" content="#266ec0" />

%sapper.base%

<link rel="stylesheet" href="global.css" />
<link rel="manifest" href="manifest.json" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="apple-touch-icon" href="images/icons/icon-192x192.png" />
<script async src="https://unpkg.com/pwacompat" crossorigin="anonymous"></script>

<!-- Sapper generates a <style> tag containing critical CSS
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="theme-color" content="#266ec0" />

%sapper.base%

<link rel="stylesheet" href="global.css" />
<link rel="manifest" href="manifest.json" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="apple-touch-icon" href="images/icons/icon-192x192.png" />
<script async src="https://cdn.splitbee.io/sb.js"></script>
<script
async
src="https://unpkg.com/pwacompat"
crossorigin="anonymous"
></script>

<!-- Sapper generates a <style> tag containing critical CSS
for the current page. CSS for the rest of the app is
lazily loaded when it precaches secondary pages -->
%sapper.styles%
%sapper.styles%

<!-- This contains the contents of the <svelte:head> component, if
<!-- This contains the contents of the <svelte:head> component, if
the current page has one -->
%sapper.head%
</head>
%sapper.head%
</head>

<body>
<!-- The application will be rendered inside this element,
<body>
<!-- The application will be rendered inside this element,
because `src/client.js` references it -->
<div id="sapper">%sapper.html%</div>
<div id="sapper">%sapper.html%</div>

<!-- Sapper creates a <script> tag containing `src/client.js`
<!-- Sapper creates a <script> tag containing `src/client.js`
and anything else it needs to hydrate the app and
initialise the router -->
%sapper.scripts%
</body>

</html>
%sapper.scripts%
</body>
</html>

0 comments on commit 9d3e9a1

Please sign in to comment.