Add linkedin pixel

This commit is contained in:
Kamran Ahmed committed 2025-07-28 17:29:57 +01:00
1 parent b32cb60f8e
commit cf078e515f
3 files changed
+26

No files matched your search

+1
View File
@@ -1 +1,2 @@
/// <reference types="astro/client" />
/// <reference path="content.d.ts" />
+22
View File
@@ -0,0 +1,22 @@
---
// LinkedIn Analytics component
---
<script type="text/javascript">
_linkedin_partner_id = "8596409";
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=[]}
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>
<noscript>
<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=8596409&fmt=gif" />
</noscript>
+3
View File
@@ -21,6 +21,7 @@ import { siteConfig } from '../lib/config';
import type { ResourceType } from '../lib/resource-progress';
import Bluconic from '../components/Analytics/Bluconic.astro';
import OneTrust from '../components/Analytics/OneTrust.astro';
import LinkedIn from '../components/Analytics/LinkedIn.astro';
import { cn } from '../lib/classname';
import { GlobalUpgradeModal } from '../components/Billing/GlobalUpgradeModal';
@@ -261,5 +262,7 @@ const gaPageIdentifier = Astro.url.pathname
resourceType={resourceType}
client:load
/>
{!import.meta.env.DEV && <LinkedIn />}
</body>
</html>