Netmera Developer Guide
Netmera Docs
  • Netmera Developer Guide
  • Platforms
    • iOS
      • New iOS (Swift)
        • SDK Integration
        • Push Notifications
          • Delegate Methods
          • Widget and In-App Messages
          • Media Push
          • Carousel, Slider and Thumbnail Push
        • Deep Linking
          • Custom Deep Links
        • Sound & Vibration
        • Push Inbox
        • Events
        • Geofence & Location
        • User Attributes & Preferences
        • Advertising ID
        • Changelog
      • Former iOS (Objective-C)
        • SDK Integration
        • Push Notifications
          • Delegate Methods
          • Push Payload Receivers
          • Widget and In-App Messages
          • Customizing In-App Messages
          • Media Push
          • Carousel, Slider and Thumbnail Push
          • Custom Web View Presentation
          • Push Icon
        • Live Activities
        • Deep Linking
          • Custom Deep Links
        • Sound & Vibration
        • Push Inbox
        • Events
        • Geofence & Location
        • User Attributes & Preferences
        • Data Transfer
        • Advertising ID
        • SSL Pinning
        • Changelog
    • Android
      • SDK Integration
        • Huawei Integration
        • Huawei Message Receipt
        • Android Integration FAQs
      • Push Notifications
        • Widget and In-App Messages
        • Push Callbacks
        • Custom Web View Presentation
        • Push Icon
      • Deep Linking
        • Custom Deep Links
      • Sound & Vibration
      • Push Inbox
      • Events
      • Geofence & Location
        • Background Location Permission
      • User & Attributes
      • Data Transfer
      • Advertising ID
      • App Tracking
      • SSL Pinning
      • Changelog
    • Web
      • SDK Setup
        • Self-Hosted SDK Setup
      • Mobile Web Push for iOS
      • Deep Linking
        • Custom Deep Links
      • Events
      • User & Attributes
    • React Native
      • SDK Integration
      • Push Notifications
        • Widget and In-App Messages
        • Push Callbacks
      • Deep Linking
        • Custom Deep Links
      • Sound & Vibration
      • Push Inbox
      • Events
      • Geofence & Location
      • User & Attributes
      • Changelog
    • Flutter
      • SDK Integration
      • Push Notifications
        • Push Notification Permissions
        • Widget and In-App Messages
        • Flutter iOS Media Push
      • Deep Linking
        • Custom Deep Links
      • Sound & Vibration
      • Push Inbox
      • Events
      • Geofence & Location
      • User & Attributes
      • SSL Pinning
      • Changelog
    • Cordova
      • SDK Integration
      • Push Notifications
      • Sound & Vibration
      • Push Inbox
      • Events
      • User & Attributes
    • Unity
      • SDK Integration
      • Sound & Vibration
      • Events
      • User & Attributes
      • Changelog
  • Integrated Modules
    • Optimove
    • Adjust
    • Mixpanel
    • IYS Integration
    • VIA Integration
      • Short URL Consent Requests
      • OTP Consent Requests
        • OTP Confirmation Completion
      • VIA Email Rejection Link Generation
      • ETK Rejection via SMS
  • API Documentation
    • REST API
      • Setup
      • Notifications
      • Events
      • User & Device Management
      • Inbox Feature
      • GDPR
      • Error Responses
  • FAQs
    • Push Notifications FAQs
Powered by GitBook
On this page
  • Step 1: Access the Netmera Panel
  • Step 2: SDK Integration
  • Integration Files
  • Important Command Modification

Was this helpful?

  1. Platforms
  2. Web
  3. SDK Setup

Self-Hosted SDK Setup

PreviousSDK SetupNextMobile Web Push for iOS

Last updated 2 months ago

Was this helpful?

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.

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.

Instead, refer to the documentation provided at the link .

Integration Documentation