|
This article covers the following: |
Overview
Audit in Feature Management helps you check whether a feature flag rule is working as intended before you rely on its results. It shows a real-time log of every event recorded for a flag, including which visitor triggered the event and which rule or variation they were assigned to. With Audit, you can verify within seconds of launch that visitors are bucketed correctly and event tracking is working as intended, without waiting for reporting data to populate. You can also open any event’s payload to check exactly what data your application sends to Wingify.
For more information on using Audit, see Use Audit to Monitor Live Events in Feature Management.
Understand How Audit Works
Audit is a live list of the events that occur on your website or in your application for a feature flag rule, such as a visitor being assigned to a variation or completing a purchase. As your application evaluates the feature flag and records these events, each one is added as a new row at the top of the list. The row displays when the event occurred and which visitor triggered it. When a visitor qualifies for a rule, the row also shows the variation the visitor was bucketed into. Rollout reports show the rule name instead, because a rollout has no variations.
Audit shows only the events for the report you have open, in the environment where its rule was created, such as Production, Staging, or Dev. A Rollout or Personalization report can contain several rules, and a testing or Multivariate report contains one. The list shows the events recorded for those rules in their respective environments. Events from other reports, feature flags, environments, or from the rest of your site do not appear.
The Audit page lists three kinds of events:
- VariationShown: recorded when a visitor is qualified. In Rollout reports, it shows the rollout rule. In Experimentation and Personalization reports, it shows the variation. In Multivariate reports, it shows the combination.
- Metric events: the events of the metrics created in Data Platform and connected to the feature flag, such as purchase or add_to_cart.
- syncVisitorProp: recorded when visitor properties are synced for a visitor.
For a description of each event and how it appears in each report type, see Events You Can Expect to View.
Use Audit to check whether your feature flag is recording the right events currently. You can:
-
Confirm that visitors are assigned correctly.
Check the VariationShown event to see which variation a visitor was assigned.
-
Confirm that the right rule applies.
In Rollout and Personalization reports, check the Rule name column to see which rule a visitor matched.
-
Confirm that your events are recorded.
Perform an action, such as adding an item to a cart, and check that the matching event appears with the name you configured. Audit shows every event it receives, including ones that do not meet your metric’s conditions. So an event showing up here confirms it was tracked, not that it counted as a conversion.
-
Verify changes.
After you edit a rule, confirm that events are still recorded and show the expected rule or variation.
-
Inspect event details.
Open the payload of an event to see the complete data recorded with it.
Understand Data Retention and Access in Audit
Audit is a live view of events. It does not store events or restrict access by role, and its behavior differs from a stored log in a few other ways. The following table explains how Audit handles permissions, retention, list size, timing, and other details.
| Topic | Details |
| Permissions | No permissions apply to Audit. Anyone who can view the report can see Audit and use the search, pause, resume, and clear controls. |
| Your view | Audit is specific to each user. If another user pauses or clears the list, your view is not affected. |
| Retention | Events are not stored. When you refresh the page, start a new session, or leave the page, Audit starts with an empty list. |
| Environment | The list shows events for the environment that the rule belongs to. |
| Traffic | Audit does not exclude internal or test traffic. |
| List Size | The list holds the 500 most recent events. When a new event is added at the top, and the list exceeds 500, the oldest row at the bottom is removed. |
| Timing | Events appear in real time. To keep the list readable, new rows are added at up to 10 events per second. |
| SDKs | Audit supports mobile and server-side SDKs, provided your application is integrated with Wingify Feature Management. |
Audit in a Feature Flag Lifecycle
A feature flag rule moves through several stages. You configure the rule, your application starts evaluating it, the rule assigns visitors to variations, and your application records events for those visitors. Reports then aggregate this data into results.
Audit sits before reporting in this workflow. It lists each event as your application records it, including the payload sent to Wingify, so you can confirm that every stage up to reporting works within seconds of a new rule or change, without waiting for reports to gather enough traffic.
The following table shows how to use Audit at each stage.
| Stage | Question to answer | How Audit helps |
| Before launch | Does the rule assign visitors correctly? | Trigger a visit and check the variationShown row. For the steps, see Use Audit to Verify Your Feature Flag. |
| Right after launch | Are metrics tracked? | Trigger the actions that fire your events and check that each one appears in the list. |
| After a change | Did the edit break anything? | Repeat the checks and compare against the expected events. |
Thus, Audit is useful to:
- Developers who need to confirm that the SDK is integrated and sending the right data.
- QA teams who need to verify that each rule and variation behaves as configured.
- Product managers who need to confirm that a feature reaches the right audience and that its events are being tracked.
Sample Use Cases for Audit
The following sample use cases show what to check and what you should see. The flag, rule, and event names are illustrative.
Use Case 1: Confirm that a rollout reaches the right audience (Rollout report)
A feature flag named new-checkout has two rollout rules: Beta testers and All other users. Before widening the rollout, you want to confirm that beta testers receive the right rule.
- Open the Audit page in the Rollout report, then click Clear data.
- Open your application while signed in as a beta tester.
- Check the new rows.
The rows show Beta testers in the Rule name column. This confirms that the rule applies to beta testers. If the rows show All other users, review the rule’s audience conditions.
Use Case 2: Confirm that an event is recorded in an experiment (Experimentation report)
A feature flag tests a redesigned search bar. The rule has a Default and one variation, and the search_submitted event is connected to the metrics of the feature flag.
- Open the Audit page in the Experimentation report, then click Clear data.
- Open your application and perform a search.
- Check the new rows.
A VariationShown row shows the variation your visitor was assigned. A search_submitted row also appears, with a dash in the Variation column. It confirms that your application recorded the event. To see whether the event counts toward the metric, and how it is attributed to a variation, use the feature flag report.
If the search_submitted row does not appear, check that the event name in your application matches the event name created in Data Platform.
Use Case 3: Confirm that a personalization rule matches a visitor (Personalization report)
A feature flag shows a loyalty banner to a rule named Returning customers, which is linked to Variation 1.
- Open the Audit page and click Clear data.
- Open your application as a returning customer.
- Check the new rows.
The row shows Returning customers in the Rule name column and Variation 1 in the Variation column. This confirms that the visitor matched the rule and received the linked variation.
Use Case 4: Check the data passed with an event (any report type)
Your application records an add_to_cart event with a property for the cart value. You want to confirm that the value reaches Wingify as expected.
- Open the Audit page and click Clear data.
- Open your application and add an item to the cart.
- Find the add_to_cart row in the list.
- Click the code icon at the end of the row.
The payload opens and shows the complete data your application passed with the event. Compare the cart value with the value you expect. If the value is missing or incorrect, correct it in your implementation, trigger the event again, and check the new payload.
For more information on how to access Audit, read the list for each report type, and verify a rule, see Use Audit to Monitor Live Events in Feature Management.
Need more help?
For more information or further assistance, contact Wingify Support.