DUOLABS
Work

Shared marketing-analytics module

We designed and built a shared library that collects customer screen visits, product browsing, cart, and purchase behaviour in one consistent way for a cosmetics company's shopping app. Shopping analytics measures the path from product view to add-to-cart to purchase, along with revenue, as events, to see at which step customers stop buying. If event names or values differ slightly by screen or platform, the same behaviour shows up as different numbers in marketing analysis. The library fixes one way of creating events, and event names and values were organised around the marketers' analysis criteria. The work ran from the collection structure to the marketing analytics connection and the event specification.

Launch
2019
Client
A Korean cosmetics company
Type
Data & Visualization

01 / 04

Customer behaviour recorded the same way, from product view to purchase

For a cosmetics shopping app, we built a shared library that collects screen visits, product views, searches, add-to-cart, and purchases in the same way. When each screen writes its own tracking code, the same behaviour gets recorded under different names. We mapped which screen each event happens on and what data it carries, so a customer's purchase journey can be analysed end to end.

Customer behaviour recorded the same way, from product view to purchase
02 / 04

Events assembled with required and optional values kept apart

Each type of analytics event has its own set of values that must be present and values that may be left out. We designed event objects to be assembled step by step, separating required values from optional ones so each event's combination of values is put together safely. However different the situation, every event goes through the same frame.

Events assembled with required and optional values kept apart
03 / 04

Event delivery that lines up with the marketers' analysis criteria

Events raised in the shopping app were wired to pass through a tag management tool into the marketing analytics tool. With a tag management tool in between, which events go to which analytics tool can be adjusted without shipping a new version of the app's collection code. The event names and values used in the app, and the order of customer actions, have to match the marketers' analysis criteria before the results can be used as they are. We checked with the marketers which data was actually needed and which event should fire on which screen, and aligned the specification.

Event delivery that lines up with the marketers' analysis criteria
04 / 04

An event specification aligned so both platforms produce the same analysis

Even for the same customer action, analysis results split when event names, values, or firing points differ between platforms. We set the event specification side by side with the developer who handled the other platform's app and adjusted names, values, and firing points into one.

An event specification aligned so both platforms produce the same analysis

Highlights

01

A tracking library that collects screen visits, product views, cart, and purchases one way

02

An event structure assembled with required and optional values kept apart

03

An event specification agreed with marketers and the other platform's developer

Insights

Read the blog