Self-Hosted SDK Setup

Step 1: Access the Netmera Panel

  1. Navigate to Netmera Panel.

  2. Go to Developers > Netmera Onboarding > Web.

Step 2: SDK Integration

In this step, you’ll set up the SDK with the essential configurations for integrating with Netmera. Follow these instructions carefully.

  1. Site URL: Enter the URL of the website where the integration will be performed.

  2. API Key: This key determines which Netmera Panel will receive data from your site.

    • Find your Web API Key in Developer > App Info.

  3. Integration Code: Copy the code you see on the Netmera Panel and add it to the head section of every page on your website to complete the integration.

<script>var netmera = netmera || []</script>
<script src="CDN_GENERATED_ON_PANEL" async></script>

On-prem Integration Only:

If you are completing an on-prem integration, instead of using the code snippet from the panel, use the custom code snippet below with your own CDN host. Add this code to the head section of every page on your website to complete the integration.

<script>
  var netmera = netmera || [];
  netmera.apiKey = 'YOUR_API_KEY';
</script>
<script src="REPLACE_NM_CDN_HOST" async></script>
  • YOUR_API_KEY: Replace this placeholder with your actual API Key.

  • REPLACE_NM_CDN_HOST: Replace this with your own CDN host information.

Integration Files

  • Do not download the integration files directly from the panel.

  • Instead, refer to the documentation provided at the link Integration Documentation.

Important Command Modification

To modify the commands listed in the README, you need to add the following command:

REPLACE_NM_WEB_TOOLS_ENABLED

Note:

When this command is added, your Netmera CDN-powered widgets, personalization features, etc., will not function. It is essential for the you to implement this command.

Last updated

Was this helpful?