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