Download the Agent
Open the browser application in which you are interested.
From the left navigation menu, select Configuration.
Place the file somewhere accessible to the Nginx instance. The name of the saved file should be
Configure Nginx with
For example, modify the location context to replace the
<head> tag with the
Sample Nginx Configuration
/adrum.js is the path to a copy of the adrum file that is accessible to the server. Note the timer initialization:
<script>window['adrum-start-time'] = new Date().getTime();</script>. Keeping this as close as possible to the top of the document, preferably right after the
<head> tag, ensures the best possible timings.
If you use
<meta> tags, you should place them right after your
<meta> tag. This can avoid issues with some versions of IE.
You may need to escape some characters, depending on your platform. For example, on Mac OS:
This Nginx module is often used for adding the Google Analytics script. Be careful not to overwrite any existing GA script when you do this.
Configure Ngnix without
You can configure Ngnix without the
ngx_http_sub_module module if you prefer. Insert the required script into the conf.d/default.conf location.