Tg-Interstitial: How to integrate the code?
VanillaJS
Follow the instructions below based on your setup type:
React SPA: Insert the code within the <head> tag into public/index.html.
Next.js: Insert the code within the <head> tag into app/layout.js.
Next.js with Pages Router: Insert the code within the <head> tag into pages/_document.tsx.
The code to insert:
for /head
React
Insert the code to index.js or app.js—the main file of the site. This ensures the code loads only once, which is essential.
for the site's main file
Other TMA formats for publishers
- Banner: How to integrate the code? →
- Video: How to integrate the code? →
- General article: How can I integrate code? →
Was this article helpful?