Skip to content

Commit

Permalink
fix: removed the warning restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedatadjust committed Feb 11, 2025
1 parent f8e188d commit 13baeab
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/content/docs/en/sdk/web/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ sidebar-position: 8

The Adjust Web SDK enables you to record attribution, events, and other data in your web app. This guide shows you how to integrate the SDK with your app.

<Callout type="important">

To use the Web SDK, you must create a dedicated web app in the Adjust dashboard, and connect the two. Don't integrate the Web SDK with a mobile app that already includes the Mobile App SDK.

</Callout>

## 1. Add the SDK to your project {#add-the-sdk-to-your-project}

To get started, add the SDK to your web app. The Adjust SDK works in both CommonJS and AMD (Asynchronous Module Definition) environments. You can access it through the global `Adjust` namespace when loaded through a CDN (Content Delivery Network).
Expand All @@ -22,8 +16,8 @@ To get started, add the SDK to your web app. The Adjust SDK works in both Common

When loading the SDK through a CDN, you should use a minified version in your production build.

- To load a specific version, add it to the CDN target, like this: `https://cdn.adjust.com/adjust-5.7.0.min.js`.
- To load the latest version, use the `adjust-latest` package, like this: `https://cdn.adjust.com/adjust-latest.min.js`. This package updates automatically so you don't need to change the target file.
- To load a specific version, add it to the CDN target, like this: `https://cdn.adjust.com/adjust-5.7.0.min.js`.
- To load the latest version, use the `adjust-latest` package, like this: `https://cdn.adjust.com/adjust-latest.min.js`. This package updates automatically so you don't need to change the target file.

<Callout type="tip">

Expand Down Expand Up @@ -88,10 +82,10 @@ Once you've installed the SDK, you need to initialize it. To do this, call the `

To initialize the SDK, you must add the following arguments to your `initSdk` call:

- `appToken` (`string`): Your [Adjust app token](https://help.adjust.com/en/article/app-token-and-reporting-currency#view-your-app-details).
- `environment` (`string`): The environment you want to run the SDK in:
- Pass `sandbox` to run the SDK in testing mode.
- Pass `production` to run the SDK in production mode for release.
- `appToken` (`string`): Your [Adjust app token](https://help.adjust.com/en/article/app-token-and-reporting-currency#view-your-app-details).
- `environment` (`string`): The environment you want to run the SDK in:
- Pass `sandbox` to run the SDK in testing mode.
- Pass `production` to run the SDK in production mode for release.

```js
Adjust.initSdk({
Expand Down

0 comments on commit 13baeab

Please sign in to comment.