added linkedin tracking code
This commit is contained in:
parent
b8fc80ce0b
commit
0d495c47a5
1 changed files with 29 additions and 19 deletions
|
|
@ -33,7 +33,7 @@ export default function RootLayout({
|
|||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
{/* Meta Pixel - Facebook will track automatically */}
|
||||
{/* ✅ Meta Pixel (Facebook) */}
|
||||
<Script id="meta-pixel" strategy="afterInteractive">
|
||||
{`
|
||||
!function(f,b,e,v,n,t,s)
|
||||
|
|
@ -48,7 +48,6 @@ export default function RootLayout({
|
|||
fbq('track', 'PageView');
|
||||
`}
|
||||
</Script>
|
||||
|
||||
<noscript>
|
||||
<img
|
||||
height="1"
|
||||
|
|
@ -57,11 +56,13 @@ export default function RootLayout({
|
|||
src="https://www.facebook.com/tr?id=839207998082987&ev=PageView&noscript=1"
|
||||
/>
|
||||
</noscript>
|
||||
<script type="text/javascript">
|
||||
|
||||
{/* ✅ LinkedIn Insight Tag */}
|
||||
<Script id="linkedin-insight" strategy="afterInteractive">
|
||||
{`
|
||||
_linkedin_partner_id = "7722324";
|
||||
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
|
||||
window._linkedin_data_partner_ids.push(_linkedin_partner_id);
|
||||
</script><script type="text/javascript">
|
||||
(function(l) {
|
||||
if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])};
|
||||
window.lintrk.q=[]}
|
||||
|
|
@ -69,11 +70,20 @@ var s = document.getElementsByTagName("script")[0];
|
|||
var b = document.createElement("script");
|
||||
b.type = "text/javascript";b.async = true;
|
||||
b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";
|
||||
s.parentNode.insertBefore(b, s);})(window.lintrk);
|
||||
</script>
|
||||
s.parentNode.insertBefore(b, s);
|
||||
})(window.lintrk);
|
||||
`}
|
||||
</Script>
|
||||
<noscript>
|
||||
<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=7722324&fmt=gif" />
|
||||
<img
|
||||
height="1"
|
||||
width="1"
|
||||
style={{ display: "none" }}
|
||||
alt=""
|
||||
src="https://px.ads.linkedin.com/collect/?pid=7722324&fmt=gif"
|
||||
/>
|
||||
</noscript>
|
||||
|
||||
<Header />
|
||||
<main>{children}</main>
|
||||
<Footer />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue