Pushwoosh automatically tracks push notification opens and clicks (including deep link usage). To attribute a downstream purchase to that click, send the purchase back to Pushwoosh as a conversion event.
Recommended: send the purchase as a conversion event
Pushwoosh records revenue as PW_Conversion, a built-in event. Each record can include:
-
value— the transaction amount (required) -
currency— ISO 4217 currency code (required) -
transaction_idandproduct_id— optional identifiers
There are two ways to set this up:
-
Send
PW_Conversionfrom your code: call the SDK'spostEventmethod at the point where the purchase completes, after the user has arrived via the deep link. Once conversion events are set up in the Control Panel, go to Audience > Events and click View code on the Conversion events tracking card for a ready-made sample (JavaScript, Swift, Objective-C, Java) to hand to your developers. -
Track revenue for an existing event: if you already send a purchase event (for example
OrderPlaced,CheckoutSuccess,PW_InAppPurchase, or a Stripe/Shopify webhook event), go to Audience > Events, click Set up events and choose it as a conversion event with revenue. Pushwoosh then generatesPW_Conversionrecords from it without changing any code.
Use only one path per transaction. If you send PW_Conversion directly and track revenue for another event that fires for the same purchase, Pushwoosh records two separate conversions, unless both carry the same transaction_id: Pushwoosh records each transaction_id once per application for 30 days and drops later PW_Conversion events that repeat it.
Once conversions are recorded you can attribute revenue to campaigns and journeys, build RFM segments for high-value users, and see revenue in dashboards. See Conversion events.
Alternative: custom event or Tag
If the conversion carries no revenue (for example a completed registration), send a custom event instead, or set a Tag from your app with the SDK's setTags method (e.g. {"registration_completed": true}) and segment on that Tag afterwards.
Comments
0 comments
Please sign in to leave a comment.