1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-21 00:21:35 +02:00

Add linkedin pixel

This commit is contained in:
Kamran Ahmed
2025-07-28 17:29:57 +01:00
parent b32cb60f8e
commit cf078e515f
3 changed files with 26 additions and 0 deletions

1
.astro/types.d.ts vendored
View File

@@ -1 +1,2 @@
/// <reference types="astro/client" /> /// <reference types="astro/client" />
/// <reference path="content.d.ts" />

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>

View File

@@ -21,6 +21,7 @@ import { siteConfig } from '../lib/config';
import type { ResourceType } from '../lib/resource-progress'; import type { ResourceType } from '../lib/resource-progress';
import Bluconic from '../components/Analytics/Bluconic.astro'; import Bluconic from '../components/Analytics/Bluconic.astro';
import OneTrust from '../components/Analytics/OneTrust.astro'; import OneTrust from '../components/Analytics/OneTrust.astro';
import LinkedIn from '../components/Analytics/LinkedIn.astro';
import { cn } from '../lib/classname'; import { cn } from '../lib/classname';
import { GlobalUpgradeModal } from '../components/Billing/GlobalUpgradeModal'; import { GlobalUpgradeModal } from '../components/Billing/GlobalUpgradeModal';
@@ -261,5 +262,7 @@ const gaPageIdentifier = Astro.url.pathname
resourceType={resourceType} resourceType={resourceType}
client:load client:load
/> />
{!import.meta.env.DEV && <LinkedIn />}
</body> </body>
</html> </html>