Skip to content

Commit

Permalink
Ajout des scripts de tracking au site
Browse files Browse the repository at this point in the history
  • Loading branch information
mariheck committed Oct 2, 2024
1 parent 07d72b4 commit 3c47730
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@nestjs/platform-express": "^10.4.4",
"@nestjs/swagger": "^7.4.2",
"@next/mdx": "^13.5.6",
"@next/third-parties": "^14.2.13",
"@nivo/axes": "^0.81.0",
"@nivo/bar": "^0.81.0",
"@nivo/core": "^0.81.0",
Expand Down
56 changes: 56 additions & 0 deletions packages/site/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import './global.css';
import AppHeader from './AppHeader';
import { Metadata, Viewport } from 'next';
import Script from 'next/script';
import { GoogleTagManager } from '@next/third-parties/google';
import { getMetaData } from './utils';
import Footer from '@tet/site/components/layout/Footer';
import { PHProvider } from '@tet/site/providers/posthog';
Expand Down Expand Up @@ -80,7 +82,61 @@ export default function RootLayout({ children }: { children: JSX.Element }) {
</div>
<Footer />
<TrackPage />

<noscript>
<img
height="1"
width="1"
style={{ display: 'none' }}
alt=""
src="https://px.ads.linkedin.com/collect/?pid=1701996&fmt=gif"
/>
</noscript>

<noscript>
<p style={{ margin: '0', padding: '0', border: '0' }}>
<img
src="https://server.adform.net/Serving/TrackPoint/?pm=2867378&ADFPageName=2024-09-territoiresentransitions.fr-PageArrivee-LP&ADFdivider=|"
width="1"
height="1"
alt=""
/>
</p>
</noscript>
</body>

<GoogleTagManager gtmId="DC-2967404" />

<Script id="linkedin" type="text/javascript">
{`
_linkedin_partner_id = "1701996";
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>

<Script id="adform" type="text/javascript">
{`
window._adftrack = Array.isArray(window._adftrack) ? window._adftrack : (window._adftrack ? [window._adftrack] : []);
window._adftrack.push({
HttpHost: 'server.adform.net',
pm: 2867378,
divider: encodeURIComponent('|'),
pagename: encodeURIComponent('2024-09-territoiresentransitions.fr-PageArrivee-LP')
});
(function () { var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://s2.adform.net/banners/scripts/st/trackpoint-async.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })();
`}
</Script>
</html>
</PHProvider>
);
Expand Down
20 changes: 20 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c47730

Please sign in to comment.