Skip to content
Get API access

Grona developer docs

Grona changes what shoppers see on your website and in your apps, and measures the result.

TryContent Security PolicySingle-page applicationsexternalIdGronaSlotView

Choose where Grona runs

Not sure? Choose your integration

Website script

HTML snippet, served from cdn.grona.ai

Three lines at the top of every page’s <head>. The script picks each visitor’s variation, applies it without flicker and measures the result.

<link rel="preconnect" href="https://cdn.grona.ai">
<script src="https://cdn.grona.ai/workspaces/YOUR_WORKSPACE_ID/antiflicker.js" data-grona-af-bg="#ffffff"></script>
<script src="https://cdn.grona.ai/workspaces/YOUR_WORKSPACE_ID/main.js" async></script>

Android SDK

Kotlin, Android Views, version 0.1.2

Place named slots once and ship one release; Grona decides what fills each slot. Requires Android 7.0 (API 24) or later.

dependencies {
implementation("ai.grona:grona-core:0.1.2")
}

iOS SDK

Swift, Swift Package Manager

Named slots and host-rendered decisions for UIKit and SwiftUI apps. Requires iOS 16 or later.

dependencies: [
.package(url: "https://YOUR_PACKAGE_HOST/grona-ios", exact: "0.1.0"),
],

Public API

JSON over HTTPS, v1 at services.grona.ai

Create campaigns, open the visual editor and set campaigns live from your own backend, server to server. Part of Grona Embed, with its own snippet.

curl https://services.grona.ai/api/public/v1/campaigns \
-H "Authorization: Bearer $GRONA_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Free delivery bar for returning buyers",
"url": "https://shop.example.com/",
"segmentId": "audience_id",
"segmentValue": "returning_buyer",
"externalId": "CMP-1024"
}'

Popular tasks

Recent changes

Full changelog
  1. iOS SDK

    iOS SDK 0.1.0

    The first version of the Grona iOS SDK, written in Swift for UIKit and SwiftUI. Requires iOS 16 or later.

  2. Android SDK

    Android SDK 0.1.2

    A debug view update with no public API change. Refresh now checks again and shows when it last ran, and Pin refuses variants that are not on the campaign.

  3. Public API

    Grona Embed connection details

    The Public API is part of Grona Embed. Its base URL is services.grona.ai/api/public/v1, and you manage your key in Settings > Secrets.