Skip to content

Commit

Permalink
feat(nx-dev): move Twitter pixel to site-level
Browse files Browse the repository at this point in the history
  • Loading branch information
juristr committed Nov 13, 2023
1 parent b4fbdf1 commit 059b061
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 12 additions & 0 deletions nx-dev/nx-dev/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ export default function CustomApp({
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,
}}
/>
<Script
id="twitter-campain-pixelcode"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `
!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);
},s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='https://static.ads-twitter.com/uwt.js',
a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script');
twq('config','obtp4');
`,
}}
/>
</>
);
}
12 changes: 0 additions & 12 deletions nx-dev/nx-dev/pages/conf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -491,18 +491,6 @@ export default function ConfPage(): JSX.Element {
</div>
</main>
<Footer />
<Script
id="twitter-campain-pixelcode"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `
!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);
},s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='https://static.ads-twitter.com/uwt.js',
a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script');
twq('config','obtp4');
`,
}}
/>
</>
);
}

1 comment on commit 059b061

@vercel
Copy link

@vercel vercel bot commented on 059b061 Nov 13, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

nx-dev – ./

nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.