Add the LinkedIn Insight Tag to Joomla
You're running LinkedIn Ads to a Joomla landing page, but the campaign reports stop at the click. You can't see which visitors converted, retarget the people who read the page, or tell LinkedIn what a good lead looks like.
The LinkedIn Insight Tag closes that loop, and installing it in Joomla doesn't have to mean another plugin. You can add the LinkedIn Insight Tag to your Joomla site using Code Snippets.
What is the LinkedIn Insight Tag
The LinkedIn Insight Tag is a small JavaScript tracker that reports website conversions, builds retargeting audiences, and provides demographic reporting on the professionals visiting your site.
How to get the LinkedIn Insight Tag
You need a LinkedIn Campaign Manager account with access to an ad account.
- Go to LinkedIn Campaign Manager and sign in.
- Click Analyze → Insight Tag in the left menu.
- Click Install my Insight Tag.
- Choose I will install the tag myself.
- Copy the tag code, or note your Partner ID (the numeric value shown in the snippet).
How to Add the LinkedIn Insight Tag to Joomla
- Install Code Snippets if it is not installed already.
- Go to Joomla Administrator.
- Open Components → Code Snippets.
- Click New.
- Give your snippet a descriptive title like "LinkedIn Insight Tag".
- Select HTML snippet type.
- Paste the following code, replacing
YOUR_PARTNER_IDwith your actual Partner ID (it appears twice):<script type="text/javascript"> _linkedin_partner_id = "YOUR_PARTNER_ID"; 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=YOUR_PARTNER_ID&fmt=gif" /> </noscript> - Select Site Header as the "Insertion Method".
- Publish the snippet.
- Optionally, open the
Conditional Logictab to restrict which pages the snippet runs on. Leave it empty to run it site-wide. Learn more in Using Conditional Logic.
Congrats! You've successfully added the LinkedIn Insight Tag to your Joomla site without installing another plugin.
Verify it Works
Visit your website once, then return to Analyze → Insight Tag in Campaign Manager. The tag status changes from Unverified to Active once LinkedIn receives the first signal, which usually takes a few minutes. If it stays unverified, confirm the snippet is published, the Partner ID is correct in both places, and no ad blocker is active in your test browser.
For more information about snippet types and insertion methods, visit our documentation: https://www.tassos.gr/docs/code-snippets/