Skip to content

Commit

Permalink
feat(website): Add GTM.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayfri committed Mar 19, 2024
1 parent 25a0c5f commit 0125972
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import org.commonmark.node.CustomBlock
import org.commonmark.node.Text
import kotlinx.html.link
import kotlinx.html.script
import kotlinx.html.unsafe

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -39,6 +40,15 @@ kobweb {
attributes["crossorigin"] = "anonymous"
}
link("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;500;900&display=swap", "stylesheet")

script("text/javascript", "https://www.googletagmanager.com/gtag/js?id=G-3ZXF56FSLH") {
async = true
}
script("text/javascript") {
unsafe {
+"""function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-3ZXF56FSLH")"""
}
}
}
}

Expand Down

0 comments on commit 0125972

Please sign in to comment.