You might wonder - If Edgee processes everything at the edge, why do I need a client-side SDK?Great question! This SDK acts as a bridge and replaces the SDKs of all the components you’ve enabled for your project.
The SDK allows our edge processing capabilities to kick in.
When the Edgee proxy intercepts this script, it triggers analytics events and other services directly at the edge.
This means you get real-time processing without compromising your application’s performance.
Plus, the SDK lets you track client-side events such as button clicks or custom actions without reloading the page,
communicating directly with the Edgee proxy so it can’t be blocked.
Note: once Edgee is deployed in front of your website, it will automatically
convert the SDK into an inline <script> to improve performance
and to make sure that all client-side events are collected successfully.
The simplest way to integrate Edgee into your website is by using our Automatic SDK Injection feature. When enabled, Edgee will automatically inject the SDK into your web pages without requiring any manual code changes. This feature:
Eliminates the need for manual code integration
Ensures proper SDK initialization across all pages
Maintains optimal performance through automatic optimization
Reduces implementation errors
How to enable Automatic SDK Injection. Click on the image to zoom in.
You can enable this feature in your project settings with a simple toggle. If you prefer manual control, you can still integrate the SDK manually using the methods described below.
The Edgee SDK also supports autocapture, which is a feature that automatically captures events from your application.To enable autocapture, you need to enable the feature in your project settings.
Don’t hesitate to check the Autocapture documentation for more information.
Integrate the SDK of your project in your local environment and… that’s it! With this simple step, the SDK will run only client-side,
so you won’t benefit from Edgee’s edge processing capabilities. But it’s a good way to test your application’s behavior with the SDK.
Integrate the SDK AND install Edgee open-source proxy on your local machine. This way, you can test the full capabilities of Edgee, including edge processing.
To do this, follow the instructions in the Edgee open-source repository