[ad_1]
H,
I want to track outbound links from my website to third party software.
What is the best way for doin so, preferably free of charge …
I thought, I can use Google tag manager. They ask me to put the following code as high as possible in the tag <head>. Where can I find this?
<!– Google Tag Manager –>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-TCNGKQL’);</script>
<!– End Google Tag Manager –>
Plak deze code vervolgens ook onmiddellijk na de openingstag <body>:
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-TCNGKQL”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>
The same for the following code to be put immediately after <body>
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-TCNGKQL”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>
The page I need help with: [log in to see the link]
