Skip to content
Feralin

Developers

Godot GDScript: quickstart

Install and first-use steps for sending events to Feralin with Godot GDScript. Code samples come from the SDK's own README and statuses from the capability record.

Install

feralin 0.2.0 is published on Git etiketi; install it with your package manager using the command below.

# OYUN_DIZINI oyununuzun project.godot dosyasının bulunduğu dizin
git clone --depth 1 --branch sdks/godot/v0.2.0 --filter=blob:none --sparse https://github.com/feralincom/sdk.git feralin-sdk
git -C feralin-sdk sparse-checkout set sdks/godot/addons/feralin
mkdir -p OYUN_DIZINI/addons
cp -r feralin-sdk/sdks/godot/addons/feralin OYUN_DIZINI/addons/feralin
# Depo kökünden; OYUN_DIZINI oyununuzun project.godot dosyasının bulunduğu dizin
mkdir -p OYUN_DIZINI/addons
cp -r sdks/godot/addons/feralin OYUN_DIZINI/addons/feralin

First use

func _ready() -> void:
	Feralin.configure("pk_live_ORNEK", "https://collect.ornek.com")
	# Karar oyunun izin ekranından gelir; SDK izni kendisi varsaymaz ve saklamaz.
	Feralin.set_consent({"analytics": true})
	Feralin.track_level_start("dunya_1", 1)
	Feralin.track_revenue({"transaction_id": "tx_1001", "amount_minor": 4999, "currency": "TRY", "product_id": "gold_pack"})
	Feralin.flush()
	var result: Dictionary = await Feralin.flushed
	print(result["status"], " ", result["retained"])

Code samples are taken as they are from sdks/godot/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

Godot GDScript capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentityPartial
AttributionPartial
Deep linksPartial
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

Godot GDScript verification chain
LinkStatus
SourcePassed
BuildPassed
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.