We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lets add ability to track sessions for app usage.
Add the following script tag to the head section of your index.html file.
<html> <head> <script src="https://unpkg.com/highlight.run"></script> </head> <body> <!-- Your Application --> </body> </html>
Initialize the SDK.
<YOUR_PROJECT_ID> = 4d711qdo = let username = process.env.username || process.env.user; OR
4d711qdo
let username = process.env.username || process.env.user;
const os = require('os') const userName = process.env.username ?? process.env.user ?? os?.userInfo?.()?.username
<APP_VERSION> = app.getVersion()
app.getVersion()
<html> <head> <script src="https://unpkg.com/highlight.run"></script> <script> if (window.location.href.contains("&iframe")) { H.init('<YOUR_PROJECT_ID>', { isCrossOriginIframe: true, }) } else { H.init(`<YOUR_PROJECT_ID>', { // Get your project ID from https://app.highlight.io/setup environment: 'production', version: '<APP_VERSION>', enableStrictPrivacy: false, enableCanvasRecording: true, samplingStrategy: { canvas: 15, canvasQuality: 'low', canvasMaxSnapshotDimension: 480, }, networkRecording: { enabled: true, recordHeadersAndBody: true, urlBlocklist: [ // insert urls you don't want to record here ], }, }); } H.identify('<USERNAME>') </script> </head> <body> <!-- Your Application --> </body> </html>
Add meta
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://static.highlight.io; worker-src blob: https://static.highlight.io; connect-src https://pub.highlight.run;" />
Provide option to have a query string
The text was updated successfully, but these errors were encountered:
"http-equiv": "Content-Security-Policy", content: "default-src *; img-src * 'self' data: https:; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *; worker-src: 'self' 'unsafe-eval' blob:; connect-src 'self' 'unsafe-eval';"
Sorry, something went wrong.
No branches or pull requests
Lets add ability to track sessions for app usage.
Add the following script tag to the head section of your index.html file.
Initialize the SDK.
<YOUR_PROJECT_ID> =
4d711qdo
=
let username = process.env.username || process.env.user;
OR
<APP_VERSION> =
app.getVersion()
Add meta
Provide option to have a query string
The text was updated successfully, but these errors were encountered: