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.
2 Replies
Use the script tag like this :
import Script from 'next/script';
<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>
I hope this will solve your problem..............HAPPY_CODING..........
thanks now it is running .