GTM template with instructions video from Simo Ahava!
Event Creation Rules let you automatically create or transform tracking events based on data arriving in Tracklution without changing your website code or dataLayer. You define the logic once, and Tracklution applies it to every matching event in real time.
Common use cases include remapping webhook fields to standard event fields, splitting a single event type by order source, optimizing ad platform conversions on profit instead of revenue, and filtering out test or internal orders.
:::Info Event Creation Rules is a beta feature. Rules run directly in the live event collection pipeline. Test carefully before applying rules to production traffic. See Before you start below. :::
When you create your first rule, Tracklution shows a disclaimer you must acknowledge before proceeding. It covers four points you should keep in mind throughout:
Go to Settings → Event Creation Rules. This area lists all existing rules with their status, source event, and output event. Use the + Create Rule button in the top-right corner to add a new rule.
Each rule follows this logic:
When a [SourceEvent] event arrives and [conditions are met], create a new event called [OutputEvent] with [field mappings], then [discard / keep] the original event and [render / do not render] a pixel for the new event.
Rules are evaluated as soon as a matching event arrives. If conditions are not met, the rule is skipped and the original event continues as normal.
Revenue Purchase).Purchase).webhook.revenue, webhook.source_name)exists, equals, contains)Purchase, PurchasePOS, ProfitMargin).value, currency)webhook.revenue, webhook.revenue-webhook.cost)In the Then section, choose what happens to the original event:
Choose whether to render a pixel for the new event:
Click Save.
On the Event Creation Rules, each rule shows:
| Column | Description |
|---|---|
| Name | The rule name and a short summary of its logic. |
| Status | Whether the rule is active or paused. |
| Source Event | The event type that triggers the rule. |
| Output Event | The name of the event the rule creates. |
Use Edit to modify a rule, Status to toggle active / paused, or Remove to delete it permanently.
These are examples of how you can use the Event Creation Rules feature. You can use different names for your output event, and different trigger and condition rules that suit your use case.
Split POS orders from web orders into separate events.
Purchasewebhook.source_name equals posPurchasePOSSend margin-based values to ad platforms instead of gross revenue.
PurchaseProfitMarginvalue = value - webhook.cost_of_goods - webhook.shipping_costPurchasePurchasevalue = value - webhook.total_taxUseful when your webhook uses non-standard field names.
PurchasePurchasevalue = webhook.revenue, currency = webhook.currencyCodePurchasesource_alias equals affiliatePurchaseAwinPurchasewebhook.isFirstOrder equals trueNewCustomerPurchasePurchaseevent_source_url contains staging.myshop.comPurchaseTestServer Side Tracking
Google Ads Server Side Tracking
Facebook Server Side Tracking Connector
TikTok Server Side Tracking
Shopify Server Side Tracking
GA4 Server Side Tracking
LinkedIn Server Side Tracking
Snapchat Server Side Tracking
WooCommerce Server Side Tracking
WordPress Server Side Tracking
Pinterest Conversions API
Microsoft (Bing) Server Side Tracking
Stripe Conversion Tracking


4.8+ Rating on G2 and Trustpilot
Helsinki
Simonkatu 6 A
00100 Helsinki, Finland
New York
307 W 38th St
NY 11105, United States



© Tracklution Oy 2026. All rights reserved.
GTM template with instructions video from Simo Ahava!