Skip to content

Event parameters ​

Send details such as plan, product, or level with an event, then filter and break down your reports by them.

Event parameters let you see purchases by plan, sign-ups by referral source, or levels by difficulty without creating a separate event for each one. You send them with the events you already track, as key-value pairs: eventData in the SDKs and event_data in the server API.

json
{
    "plan": "gold",
    "billing_period": "yearly",
    "is_trial": false,
    "seats": 3
}

Linkrunner stores every parameter you send. In the dashboard you can then filter any event by its parameters ("purchase where plan is gold") and break a report down by a parameter (one row or column per plan).

Already sending eventData? You do not need to change your app. Linkrunner already stores the parameters you send.

One event with a parameter, not one event per variant ​

Send one purchase event with a plan parameter instead of purchase_gold, purchase_silver, and purchase_diamond.

One event per variantOne event with a parameter
What your app sendspurchase_gold, purchase_silver, purchase_diamondpurchase with plan: "gold"
Total purchasesAdd up three columns by handOne purchase column
Purchases by planOne column per eventFilter or break down purchase by plan
New plan launchedApp release with a new event nameNo change. The new value shows up on its own

The same rule applies to any detail that changes from one event to the next: a product category, a payment method, a level number, a screen name. Keep the event name for the action and put the details in parameters.

Meta, Google, TikTok, Snapchat, Reddit, and ChatGPT Ads mappings can check parameters, so one of these networks can receive only gold purchases. See Send a mapping only when parameters match. The other networks, such as LinkedIn and ShareChat, affiliate partner and Everflow mappings, and SKAN conversion values still work by event name. If one of these must receive only one variant, keep a separate event for that variant and send the parameter as well.

Send event parameters ​

Pass the parameters as the second argument of trackEvent (or track on the web). Each tab uses the call documented in that SDK's guide.

kotlin
CoroutineScope(Dispatchers.IO).launch {
    LinkRunner.getInstance().trackEvent(
        eventName = "purchase",
        eventData = mapOf(
            "plan" to "gold",
            "billing_period" to "yearly",
            "is_trial" to false,
            "seats" to 3
        )
    )
}

See Tracking Custom Events for the full method.

Parameters on payments ​

A payment is an in-app event with revenue, so it takes parameters the same way. In the SDKs, put your own keys in eventData next to the payment keys (amount, paymentId, currency, userId). From your server, send event_data next to the payment fields on POST /api/v1/capture-event. The amount still goes in amount, so revenue is counted as usual. See Track payments with trackEvent for the payment keys and the SDK versions that support them.

javascript
await linkrunner.trackEvent("purchase", {
    amount: 999,
    paymentId: "payment456",
    currency: "INR",
    userId: "user123",
    plan: "gold",
    billing_period: "yearly",
});

This example uses React Native. Each SDK guide shows the same call for its platform under Tracking Payments.

Shopify and Appbrew ​

  • Shopify: the checkout pixel sends value, currency, order_id, email, and phone with each purchase. Add parameters to your own storefront events with the second argument of lr.track. See Track custom events.
  • Appbrew: the tracker sends Appbrew's events for you, with each event's Appbrew data as its parameters and the Meta catalog fields added from its items. See What the tracker does on its own.

Value types and limits ​

Send eventData as an object of key-value pairs. Linkrunner reads the type of each value from what you send:

You sendShows in the dashboard asFilters you can use
Text, such as "gold"Textis, is not, contains, does not contain, is set, is not set
A number, such as 3 or 49.99Numberis equal to, is not equal to, is greater than (or equal to), is less than (or equal to), is between, is not between, is set, is not set
true or falseTrue or falseis true, is false, is set, is not set
A list or an object, such as ["a", "b"]List or objectcontains, does not contain, is set, is not set

A few rules decide how values match:

  • Send numbers as numbers and true or false as booleans. The dashboard gives a key the type most of its values have, and offers the filters for that type. "5" and 5 still count as the same value.
  • Only top-level keys can be filtered or broken down. For a nested list or object, use contains to search its text.
  • Keys and exact matches are case sensitive. Plan and plan are two different parameters, and is gold does not match Gold. contains ignores case.
  • The "not" filters also match events without the key. is not and does not contain include events that do not carry the parameter at all. Add is set to leave them out.
  • Put changing values in the value, not in the key name. Send { "level": 5 }, not { "level_5": true }. Keys built from IDs or dates fill the parameter list with one-off names.

These limits apply:

WhatLimitWhat happens past it
Request size, apps and server API1 MB per requestThe request is rejected with 413
Request size, websites (Web SDK and Shopify)64 KB per requestThe request is rejected with 413
All parameters of one Web SDK event2,048 characters as JSON textThe Web SDK sends parameters as one piece of text. Longer text is cut, and the parameters can no longer be read
Parameters listed per event200, most sent firstThe rest are stored but not offered in the parameter list
Key name length128 charactersLonger keys are stored but cannot be filtered on
Value length256 charactersLonger values are stored but are not listed as values or matched by an exact filter
Different values for one key1,000 in 30 daysThe key is marked Filter only: you can filter by an exact value, but not break down by it
Filters on one event10
Values in one filter50
Filters in one request, all events together60 filters and 1,000 valuesThe request is rejected
Break downsTop 10 values, the rest grouped as OtherIn App Campaigns, up to 10 columns from one break down
Filtered event columns in App Campaigns25 per view

The parameter list for each event covers the last 30 days. For payments, the list is built from completed payments.

Do not send passwords, card details, or other sensitive data as parameters.

Reserved keys ​

Some keys have a meaning to Linkrunner or to an ad network. You can still filter and break down by them like any other parameter, but use them only for what they mean.

KeyUsed onWhat it does
amount, paymentId, currency, userId, statusSDK trackEventWith amount, paymentId, and currency together in eventData, the SDK sends the event as a payment. On their own, amount and currency are ordinary parameters. See Track payments with trackEvent
value, currencyCustom eventsMeta reads value (a number) and currency (text) from a custom event's parameters. See Meta Ads for when revenue is sent
value, currencyPaymentsOn a payment sent without a top-level amount, such as one from an older SDK, value becomes the payment amount. A missing currency is read from currency
content_ids, contents, content_type, num_items, order_idEcommerce eventsSent to Meta as catalog fields when the event is mapped to a Meta commerce event. Google receives content_ids as item IDs. See Meta Commerce Manager and Google Commerce Manager

Your own keys sit next to these in the same object, for example { "content_ids": ["sku_1"], "value": 799, "currency": "INR", "plan": "gold" }.

Where parameters show up ​

WhereWhat you can do
Events → Your EventsThe Parameters column counts each event's parameters. Click it to see each parameter's type, the share of events that sent it, how many different values it has, and its most common values
Events → Events LogPick an event, click Filter, and add rows such as "where plan is gold". Expand a row to see its parameters under Additional Data, and click Filter by this value next to one to filter by it
Events → Events FunnelFilter any step by its parameters, for example step 2 is "purchase where plan is gold". Break the funnel down by a parameter of the step 1 event
Users and cohortsFilter users by events with parameters, for example "did purchase where plan is diamond", and save the filter as a cohort. A user's Journey shows each event's Parameters
App CampaignsIn Edit Columns, use Filter by a parameter on an event column to count only matching events, for example "purchase (plan is gold)". Break down by a parameter adds one column for each value you tick, up to 10. The CSV export and a campaign's Flow use the same columns
Reporting APIRequest the same filtered columns with event_columns
Ad network event mappingUse Only when to send a mapping only for matching events, for example purchase sent to Meta as Subscribe_Gold only when plan is gold. Works for Meta, Google, TikTok, Snapchat, Reddit, and ChatGPT Ads
Affiliate partner postbacksTo send one of your event parameters to an affiliate partner, ask support@linkrunner.io. Linkrunner staff add it to that partner's postback URL

Filters and break downs work on app events and are available to project Admin and Member roles. Parameters you send from a website (the Web SDK or Shopify) are stored, but website reports cannot filter by them yet.

Need help? Contact support@linkrunner.io