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

97
Views
TruConversion heatmap script with Next.js 11 Script

I am trying to install TruConversion's heatmap script on my Next.js 11 website.

On the homepage of TruConversion, they state that I should add their script before the </head> tag.

And the documentation of Next.js says that I shouldn't use the "next/script" in either a next/head component or in pages/_document.js.

So, I am confused. Where should I add that heatmap script?

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

0

To use TruConversion's Heatmap you need to first load the Tracking Code and then start Heatmap Tracking.

You can place the tracking code <script /> either in pages/_document.js using the Head component from this example or in pages/index.js with <Script /> (note uppercase) strategy="beforeInteractive" using the new technique with next/scripts as demonstrated here.

Either approach will load the tracking script early on page load.

With that preloaded, you can now trigger TruConversion to start Heatmap Tracking anywhere in your app.

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!