- Navigate to the
pages/_document.tsxfile. - Add the following code in the Start of
<head>tag section.
Page Router
Step 1: Embed Surface Tag
Add a Surface Tag to your Next.js Site
Add a Surface Tag to your Next.js Site
pages/_document.tsx file.<head> tag section.