Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

127
Views
cannot render script in nextjs

I am trying to integrate LinkedIn follow button in my website made in nextjs. These two scripts return a follow button with follower count on it and I want to add it into my header.

<script src="https://platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script> <script type="IN/FollowCompany" data-id="76160368" data-counter="bottom"></script>

The issue is that when every I refresh my page this works but when I click on any button on my page it just disappears.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Use the script tag like this :

import Script from 'next/script'


<Script id="linkedinScript" src="https://platform.linkedin.com/in.js">lang: en_US</Script><Script id="yourScriptId" data-counter="bottom" type="IN/FollowCompany"></script> 
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!