Skip to Content
Getting StartedQuick Start

Quick Start

The fastest path from zero to seeing real data. About 10–15 minutes on a test WordPress site. Each step links to a detailed guide — this is the map.

Step 1 — Create your Organization

Sign up and create your company workspace. → Creating an Organization

Step 2 — Create a Product

Create a Product for the plugin you want to track. → Creating a Product

Step 3 — Copy your Product Key and Secret

Each Product has a pk_... key and an sk_... secret. You’ll need both. → Getting Your Product Key & Secret

Step 4 — Add the SDK to your plugin

Add the SDK package and its loader. → Installing the SDK

Step 5 — Bootstrap it (the key step)

At the top level of your main plugin file (not inside plugins_loaded):

require_once __DIR__ . '/vendor/appneck/wordpress-sdk/appneck-sdk.php'; appneck_sdk_load_latest(); $GLOBALS['my_sdk'] = \Appneck\Sdk\Sdk::bootstrap( 'pk_your_product_key', 'sk_your_product_secret', 'https://appneck.com', // for local testing: http://localhost:8080 __FILE__ );

→ Initializing the SDK

Step 6 — Confirm it worked

Activate your plugin on a test site, click Allow & Continue on the opt-in card (a free plugin sends nothing until you do), then check Org Panel → your Product → Installations — a new Installation should appear shortly. → Testing Your Integration

Step 7 — Let users change their mind (free plugins)

The opt-in card promises “You can change this anytime in Settings”, but the SDK doesn’t place those settings anywhere by itself. Add one call to your plugin’s own settings page:

$GLOBALS['acme_sdk']->consent_notice()->render_settings_section();

It shows two switches, Share usage data and Receive update emails. Without it, a user who clicked Allow & Continue has no way to opt out. Pro builds ('is_premium' => true) have no consent to manage and can skip this. → Handling User Consent

That’s basic tracking done. From here you can add custom events, announcements, and the uninstall survey.