mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-20 08:02:35 +02:00
Add linkedin pixel
This commit is contained in:
1
.astro/types.d.ts
vendored
1
.astro/types.d.ts
vendored
@@ -1 +1,2 @@
|
||||
/// <reference types="astro/client" />
|
||||
/// <reference path="content.d.ts" />
|
22
src/components/Analytics/LinkedIn.astro
Normal file
22
src/components/Analytics/LinkedIn.astro
Normal 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>
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user