Browser RUM - NextJS

Install

When using NextJS, you do not have direct access to the index.html or template HTML file. You must define the structure of your RUM application with one of the following methods:

App Router

Define the structure of your application with app routers.

Click here for more information on integrating third party libraries with NextJS using app structure.

Apply the following script to your application code:

Page Router

Define the structure of your application with page structure.

Click here for more information on integrating third party libraries with NextJS using page structure.

Apply the following script to your application code:

Need assistance or want to learn more about Middleware? Contact our support team at [email protected].