Skip to content

Commit

Permalink
Use the normal script tag instead
Browse files Browse the repository at this point in the history
  • Loading branch information
zainfathoni committed Jul 9, 2021
1 parent 13ce279 commit e4da93e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Head from "next/head";
import Script from "next/script";

type Props = {
html: string;
Expand All @@ -16,7 +15,7 @@ export default function Home(props: Props) {
return (
<>
<Head>
<Script
<script
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l] = w[l] || [];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
Expand Down

0 comments on commit e4da93e

Please sign in to comment.