Developer documentation

Set up Attriloop. Verify what you measure.

Find setup and testing guidance for websites, web apps, mobile apps and products that send events through the API.

From app project to verified events

Choose one app project, one environment and one event you can send and verify.

  1. Create an app project

    Identify the workspace, platform and environment that own the data. Keep development and production traffic separate.

  2. Create a scoped key

    Confirm the approved app and environment scope for the integration. Use the designated client credential in a client app and keep server-only keys in your backend.

  3. Choose an SDK or the API

    Check the SDK and API availability table, then confirm the approved package or API contract for your workspace. Record the package version and build you test.

  4. Send a test event

    Use the approved payload to send one representative event in the test environment. Confirm accepted event names and required typed properties.

  5. Validate identity and delivery

    Inspect the debugger where available. Check timestamp, identity, consent state, duplicate handling and delivery health against the expected journey.

  6. Roll out to production

    Move to production only after supported-platform, event, identity, routing and delivery checks pass. Keep ownership and rollback steps documented.

Platform integration guides
PlatformGuideReleases
WebPlanning guideChangelog
ExpoPlanning guideChangelog
React Native CLIPlanning guideChangelog
AndroidPlanning guideChangelog
iOSPlanning guideChangelog
Direct APIPlanning guideChangelog

App projects

Use app projects to organise platform, environment and measurement ownership.

  1. Choose a workspace

    Keep client or organisational ownership clear. An app project belongs to one workspace.

  2. Identify the platform

    Document your Android, iOS and web app identifiers and the environments you will measure.

  3. Separate environments

    Use development traffic to validate changes before introducing them to your production reporting.

API keys

Treat integration credentials as part of your access model.

  1. Scope the key

    Limit a key to the app, environment and permissions required by the integration.

  2. Protect credentials

    Keep server credentials out of browser bundles, mobile source and public repositories.

  3. Plan rotation

    Record who owns the key and how it will be replaced when team access or integrations change.

Product architecture

Attriloop is an API-first mobile measurement and analytics SaaS product. See how the backend collects and reports data, and which infrastructure changes are planned.

  1. Event ingestion and tenant context

    The Node.js and Express backend authenticates tenant-scoped API keys and records first-party app events in MongoDB. Event occurrence and ingestion timestamps support journey analysis. Integrations should send only permitted data and avoid unnecessary personal information.

  2. Links, attribution context and funnels

    Dynamic links connect clicks to intended destinations and preserve click identifiers where applicable. Install and app-event context support attribution analysis. Conversion funnels evaluate ordered user actions, time windows and drop-off from stored events.

  3. Cloud deployment planning

    The infrastructure design describes building Docker images, storing them in Amazon ECR and deploying API containers to Amazon EC2 with Nginx routing. Confirm current hosting and service requirements with Attriloop.

  4. Cloud scaling roadmap

    The infrastructure plan adds private networking, encrypted Amazon S3 backups and exports, Amazon CloudWatch observability and a derived ClickHouse analytics layer. These are planned infrastructure components. The goal is to separate analytical workloads from canonical event storage while improving recovery, monitoring and cost visibility.

Web integration

Plan consistent browser events, visitor identity and consent behaviour.

  1. Confirm your setup

    Ask for the SDK version and installation instructions that match your workspace before integrating.

  2. Map browser events

    Define when page, session and conversion events should fire. Check that a re-render sends each event only once.

  3. Validate the journey

    Check consent state, visitor identity and campaign metadata across navigation and conversion.

Android

Plan first-open tracking and campaign referrer for native Android.

  1. Document app configuration

    Provide the package identifier, minimum SDK and release setup for integration planning.

  2. Plan install context

    Confirm how install-referrer and campaign context are captured and connected to first open.

  3. Test device paths

    Validate installed and uninstalled app journeys, privacy settings and conversion events.

iOS

Plan native iOS events, universal links and consent-aware identity.

  1. Document app configuration

    Provide your bundle identifier, target version and app-link configuration.

  2. Review privacy behaviour

    Define consent and permitted identity collection before enabling measurement.

  3. Validate universal links

    Test app routing, browser fallbacks and first-open context on physical devices.

Expo

Prepare measurement for managed React Native applications.

  1. Review your build setup

    Share the Expo version and build workflow so native integration requirements can be confirmed.

  2. Map app lifecycle events

    Define first open, app open and conversion events without duplicating automatically captured events.

  3. Test routing

    Test installed-app and deferred journeys on real devices and the intended release build.

React Native CLI

Plan the native bridge, lifecycle and deep-link behaviour of your application.

  1. Review native requirements

    Confirm Android and iOS native configuration with the integration guide for your workspace.

  2. Handle lifecycle consistently

    Define measurement on cold start, background resume and authenticated user changes.

  3. Validate release builds

    Test delivery and routing in the same type of build your customers will install.

API, authentication and errors

Plan the route, credential, payload and error-handling details of your integration.

  1. Document routes and authentication

    Record endpoint URLs, credential scheme and scope from the integration contract. Keep client-safe and server-only credentials separate.

  2. Define payloads and error codes

    Use your test API URL and scoped key to send a synthetic event from a server or terminal. Set the environment variables in the shell before running this example.

    curl --fail-with-body --request POST \
      "$ATTRILOOP_API_BASE_URL/v1/sdk/events" \
      --header "X-API-Key: $ATTRILOOP_INGEST_KEY" \
      --header "Content-Type: application/json" \
      --data '{"eventName":"INTEGRATION_TEST","platform":"web","visitorId":"test-visitor","sessionId":"test-session","idempotencyKey":"integration-test-001"}'

    Check the response for the accepted count and any duplicates. Find the test event in your workspace and compare the name and identifiers. Use a fresh idempotency key for a new event and reuse that key when retrying the same event.

    400 · Invalid request
    Check the body and required fields for the endpoint.
    401 · Missing API key
    Check for a key in the request header and confirm that the URL and environment match.
    402 · Usage allowance
    Read the event-ingestion response and review your workspace’s event allowance.
    403 · Key or scope denied
    Check that the key is active and has the scope required for the requested operation.
    429 · Too many requests
    Reduce the request rate and use the Retry-After header to decide when to retry.
  3. Document limits and duplicate handling

    Confirm rate and batch limits, idempotency semantics, retry eligibility, ordering and timeouts with engineering.

  4. Separate environments

    Keep test and production destinations, keys and validation procedures distinct. Record the checks required before moving live traffic.

Event guidance

A shared event plan makes acquisition and product reporting easier to understand.

  1. Name events consistently

    Use clear names such as onboarding_completed, purchase and subscription_started. Record the trigger for each event.

  2. Define properties

    Choose stable property names and types. Use explicit currency with monetary values.

  3. Avoid sensitive payloads

    Collect only the data needed for your measurement purpose. Keep secrets and unnecessary personal data out of event properties.

Keep destinations, campaign context and fallbacks explicit.

Attribution

Make attribution windows and decision evidence part of your reporting model.

  1. Define the outcome

    Distinguish first open, install, purchase and other conversion events in your analysis.

  2. Review match evidence

    Check the available click, visitor, session and referrer context behind a decision.

  3. Document the window

    Keep lookback-window assumptions visible when comparing sources or campaigns.

Install referrer and first open

Plan how acquisition context reaches the first recorded app open.

  1. Confirm supported capture

    Verify platform and SDK support for referrer capture before relying on it. Document the source fields and collection conditions.

  2. Test installation and first open

    Trace a fresh install, first launch and duplicate or reinstall path. Verify timing and evidence under the configured attribution rules.

Partner postbacks

Validate event mapping and delivery behaviour before sending partner traffic.

  1. Map the partner payload

    Match event names and property types to the destination’s documented expectations.

  2. Run a test delivery

    Check the destination, headers and response before enabling live traffic.

  3. Review replay behaviour

    Confirm which failures can be retried and how duplicate delivery is handled.

Event debugger and delivery validation

Inspect representative test journeys where debugger tooling is available.

  1. Check event acceptance

    Compare the sent event with the recorded name, properties, identity and timestamp. Capture the request ID and acknowledgement where available.

  2. Investigate missing records

    Check environment, key scope, consent state, schema validation, batching and network outcomes using the approved reference.

  3. Escalate with evidence

    Share workspace, app, platform, SDK version, request ID, steps and expected/actual results. Redact secrets and unnecessary personal data.

Campaigns and traffic-quality review

Keep campaign context and suspicious-signal investigations explainable.

  1. Align campaign context

    Confirm source taxonomy, reporting timezone, attribution window and connected or imported cost coverage.

  2. Review quality signals

    Inspect timing, repeated identifiers and traffic patterns together. A suspicious signal is not a confirmed fraud verdict.

Exports and request operations

Review scope, permissions and completion evidence for supported export workflows.

  1. Confirm scope and permissions

    Verify which records and fields are requested and who is authorised to receive them.

  2. Inspect job outcome

    Use the supported status and error details before retrying. Confirm retry behaviour and avoid creating unnecessary duplicate jobs.

  3. Record delivery

    Use the approved secure-delivery process and retain the appropriate operation evidence.

Privacy operations

Keep ownership, consent and lifecycle requests visible in the measurement workflow.

  1. Define the data lifecycle

    Document collection purposes, retention requirements and access boundaries.

  2. Review requests

    Verify the subject and requested action before exporting or deleting records.

  3. Keep an audit trail

    Record the request, responsible team and outcome without exposing sensitive details unnecessarily.

Keep planning your integration

SDK and API availabilityHelp centre

FAQs

Integration questions

Where should I start integrating Attriloop?

Choose one project and a test environment. Confirm the SDK or API contract for your platform, then send one representative event before expanding the setup.

How do I know a test event was accepted?

Compare the expected and recorded event name, properties, timestamp, and identity. Check the acknowledgement or event debugger where available and keep the request ID if one is provided.

Which API key can I use in my client app?

Confirm the client-safe credential for your SDK, app, and environment. Keep server-only keys in your backend and limit each credential to its required scope.

What should I check when an event is missing?

Check the environment, key scope, consent state, payload schema, and delivery outcome. If the event is batched, confirm whether it was sent.

What should I verify before sending production traffic?

Run a test journey that checks event delivery, identity, consent, and duplicate handling. For campaign links, verify the destination and any supported fallback on the intended platform.

Need integration support?

Share your workspace, platform, SDK version, and request ID if available. Keep keys and sensitive payloads private.

Contact integration support