You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent.mdx
+28-12Lines changed: 28 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,10 @@ There are four ways to install the browser agent. Depending on your specific nee
32
32
33
33
<Tabs>
34
34
<TabsBar>
35
+
<TabsBarItemid="npm">
36
+
Install with npm
37
+
</TabsBarItem>
38
+
35
39
<TabsBarItemid="1">
36
40
Get JavaScript via UI
37
41
</TabsBarItem>
@@ -43,13 +47,25 @@ There are four ways to install the browser agent. Depending on your specific nee
43
47
<TabsBarItemid="3">
44
48
Create JavaScript via NerdGraph
45
49
</TabsBarItem>
46
-
47
-
<TabsBarItemid="4">
48
-
Install via NerdGraph and npm
49
-
</TabsBarItem>
50
50
</TabsBar>
51
51
52
52
<TabsPages>
53
+
<TabsPageItemid="npm">
54
+
Go to <DNT>**[one.newrelic.com](https://one.newrelic.com) > Integrations & Agents > Browser and mobile > Browser monitoring**</DNT> and follow the instructions to generate the browser npm snippet in the UI.
55
+
56
+
<ButtonGroup>
57
+
<ButtonLink
58
+
role="button"
59
+
to="https://onenr.io/0MRNpYqNqQn"
60
+
variant="primary"
61
+
>
62
+
Get your browser snippet
63
+
</ButtonLink>
64
+
</ButtonGroup>
65
+
66
+
Once you have the snippet, paste it at the first line of your source file, before any other code. This ensures that the browser agent is loaded before any other scripts execute.
67
+
68
+
</TabsPageItem>
53
69
<TabsPageItemid="1">
54
70
Go to <DNT>**[one.newrelic.com](https://one.newrelic.com) > Integrations & Agents > Browser and mobile > Browser monitoring**</DNT> and follow the instructions to generate the browser JavaScript snippet in the UI.
55
71
@@ -67,8 +83,6 @@ There are four ways to install the browser agent. Depending on your specific nee
67
83
68
84
For more detailed information about the placing the snippet, see [JavaScript placement requirements](/docs/browser/new-relic-browser/page-load-timing-resources/instrumentation-browser-monitoring#javascript-placement).
69
85
70
-
(If you'd like to install the browser agent via npm, see our [`@newrelic/browser-agent` package](https://www.npmjs.com/package/@newrelic/browser-agent).)
71
-
72
86
<Collapser
73
87
id="browser_delay"
74
88
title="Delay browser monitoring"
@@ -104,7 +118,7 @@ There are four ways to install the browser agent. Depending on your specific nee
104
118
<TabsPageItemid="2">
105
119
With an APM agent, you can deploy browser monitoring without manually adding the snippet to your code. When you restart the agent, it automatically uses the latest version of the browser agent.
106
120
107
-
If you're using an APM (application performance monitoring) agent to monitor the backend of your browser app and you've got a non-[SPA](/docs/browser/single-page-app-monitoring/get-started/introduction-single-page-app-monitoring) app, then we recommend using this method.
121
+
If you're using an APM agent to monitor the backend of your browser app and you've got a non-[SPA](/docs/browser/single-page-app-monitoring/get-started/introduction-single-page-app-monitoring) app, then we recommend using this method.
108
122
109
123
There are specific steps for each APM agent:
110
124
@@ -125,14 +139,16 @@ There are four ways to install the browser agent. Depending on your specific nee
125
139
Once you have the snippet, add it to the `<head>` tag of your app.
126
140
</TabsPageItem>
127
141
128
-
<TabsPageItemid="4">
129
-
If you want to automate browser monitoring deployment across multiple web apps, you can use NerdGraph and our browser agent npm package to configure and deploy the agent as part of your application build process.
130
-
131
-
For more on this, see [instrument multiple apps with npm and NerdGraph](/docs/apis/nerdgraph/examples/combining-npm-nerdgraph/).
132
-
</TabsPageItem>
133
142
</TabsPages>
134
143
</Tabs>
135
144
145
+
<Calloutvariant="important">
146
+
147
+
If you want to automate browser monitoring deployment across multiple web apps, you can use NerdGraph and our browser agent npm package to configure and deploy the agent as part of your application build process.
148
+
149
+
For more on this, refer to [instrument multiple apps with npm and NerdGraph](/docs/apis/nerdgraph/examples/combining-npm-nerdgraph/).
150
+
</Callout>
151
+
136
152
## What's next? [#whats-next]
137
153
138
154
When you've installed the browser agent, wait a few minutes and look for the data in [our browser monitoring UI](https://one.newrelic.com/nr1-core?filters=%28domain%3D%27BROWSER%27%20AND%20type%3D%27APPLICATION%27%29&state=1f7bae2d-dd3a-0027-3079-b60bcd19ded9&_gl=1*15f78ub*_ga*MTE0MTA2MTA5MS4xNzE4OTI0MDkw*_ga_R5EF3MCG7B*MTcyMTMxMzk2MC41Ny4xLjE3MjEzMTg2MzcuNDcuMS4xMDYwNTI3Njcw).
0 commit comments