Skip to content

Commit

Permalink
Add umami & partytown
Browse files Browse the repository at this point in the history
Signed-off-by: Little Human <[email protected]>
  • Loading branch information
Little Human committed Sep 12, 2022
1 parent 725afc7 commit d62d987
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,4 @@ jobs:
---
### Skynet deployment
- **Latest Url**: [`${{ steps.skynet.outputs.skylink }}`](${{ steps.skynet.outputs.skylink-url }})
- **Resolver Url**: [`${{ steps.skynet.outputs.resolver-skylink }}`](${{ steps.skynet.outputs.resolver-skylink-url }})
11 changes: 11 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"cid": "node cidv0"
},
"dependencies": {
"@builder.io/partytown": "^0.7.0",
"next": "^12.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
12 changes: 12 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Footer from "../src/components/Footer";
import RoundArt from "../src/components/RoundArt";
import GridArt from "../src/components/GridArt";
import ClipArt from "../src/components/ClipArt";
import { Partytown } from "@builder.io/partytown/react";

export default function Home() {
return (
Expand Down Expand Up @@ -88,6 +89,17 @@ export default function Home() {
property="twitter:image"
content="https://kongkowitpku.xyz/og.png"
/>
{/* ==== Third Party Scripts ==== */}
<Partytown debug={true} forward={["dataLayer.push"]} />
{/* Analytics */}
<script
async
defer
data-website-id="d1583115-1cef-471b-ba5e-904a35920fe4"
src="https://umami.kongkowitpku.xyz/mojok.js"
// TODO: Uncomment this line
// type="text/partytown"
/>
</Head>
<TopBar />
<HeadLine />
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ __metadata:
version: 6
cacheKey: 8

"@builder.io/partytown@npm:^0.7.0":
version: 0.7.0
resolution: "@builder.io/partytown@npm:0.7.0"
bin:
partytown: bin/partytown.cjs
checksum: fac24fbe8f223e3e36dec5a729cda8ce4f4db6cd8547bda61455d247d7d01438ebd7708aea215961aa7adb64c83145a60383f7b0f8455ccbea4dcc8a0adce752
languageName: node
linkType: hard

"@gar/promisify@npm:^1.1.3":
version: 1.1.3
resolution: "@gar/promisify@npm:1.1.3"
Expand All @@ -16,6 +25,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@kongkowitpku/soon@workspace:."
dependencies:
"@builder.io/partytown": ^0.7.0
autoprefixer: ^10.4.8
multiformats: ^9.5.8
next: ^12.3.0
Expand Down

1 comment on commit d62d987

@vercel
Copy link

@vercel vercel bot commented on d62d987 Sep 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.