Configuration Experiment #R2
Goal
The goal of this experiment is to help you understand how configuration changes impact rewards. For this challenge, you will use a production workspace and enter some configuration. When asked to write down something, please copy the value to a document (along with the step #), as you will be using those values later on.
Difficulty
Easy.
Preparation
Create a CSV file with the following:
- Date,Unique ID,Owner,Revenue
- 2021-01-01,ID-1,Daniel Martinez,1
- 2021-01-01,ID-2,Daniel Martinez,10
- 2021-02-01,ID-3,Daniel Martinez,100
- 2021-02-01,ID-4,Daniel Martinez,1000
As you can see, there are 2 transactions in January, and 2 transactions in February. All transactions are assigned to "Daniel Martinez".
Steps
- Go to Account > My Workspaces
- Create a production workspace
- Go to Users > Add Users
- Add a user with email DanielMartinez@xyz.com
- Go to Transactions > Add Transactions
- Import your CSV file
- Go to Plans > All Plans
- Create plan "Test"
- Choose "Monthly"
- Choose "By Individual"
- Choose "All Workspace Users"
- Choose "Revenue" > "Raw Value"
- Add a per-transaction reward with the following formula
-
- Create the plan
- Go to Calculations > All Calculations
- Run a calculation for January 2021
- Open the calculation
- Go to the Credits tab
- Write down how many transactions were credited
- Why were 2 transactions credited in January?
- Click on "Export Credits" (choose "Export All Fields")
- Write down transaction unique IDs (ex: "ID-1", "ID-2") and commission amounts
- Are calculated commission amounts those you expected?
- Go to Transactions > All Transactions
- Search for "ID-2" (a January transaction)
- Click on the transaction to edit it
- Write down the transaction's URL
- Change the "Date" to any date in February 2021
- Save and select "Allow Overwrites"
- Go to Calculations > All Calculations
- Run a calculation for February 2021
- Open the calculation
- Go to the Credits tab
- Write down how many transactions were credited
- Why were 3 transactions credited in February?
- Click on "Export Credits" (choose "Export All Fields")
- Write down transaction unique IDs (ex: "ID-3", "ID-4") and commission amounts
- Are calculated commission amounts those you expected?
- Copy/paste the transaction URL into your browser
- Go to the Commissions tab
- Did you expect to see the displayed values?
- Go to Calculations > All Calculations
- Select both calculations
- Release credits for both calculations (ignore warnings)
- Grab coffee or lunch for ~1 hour
- Review alerts (the bell in the top right corner)
- Do you see a double-payment warning?
- Why is a double-payment warning expected?
- If you do NOT see a double-payment warning, please proceed to next steps. It can take 24 hours for this warning to be displayed. Here is what this type of warning looks like. It would of course look different for you.
- Go to Plans > All Plans
- Edit plan "Test"
- Go to the Incentives tab
- Change the per-transaction reward to this formula
- Save plan changes
- Go to Calculations > All Calculations
- Re-run the calculation for February 2021 (with delete)
- Open the calculation
- Click on the Credits tab
- Write down how many transactions were credited
- Why were 3 transactions credited in February?
- Click on "Export Credits" (choose "Export All Fields")
- Write down transaction unique IDs (ex: "ID-3", "ID-4") and commission amounts
- Are calculated commission amounts those you expected?
- Copy/paste the transaction URL into your browser
- Go to the Commissions tab
- Did you expect to see the displayed values?
- Go to Plans > All Plans
- Edit plan "Test"
- Go to the Limits tab
- Configure this filtering formula
- Save plan changes
- Go to Calculations > All Calculations
- Re-run the calculation for February 2021 (with delete)
- Open the calculation
- Go to the Credits tab
- Write down how many transactions were credited
- Why were 2 transactions credited in February?
Key Learnings
- If a transaction's date is moved to a later period, a duplicate commission can be issued
- Sales Cookie will generate double-payment warnings when this happens
- Generating those warnings can take time because computationally expensive and ran in the background
- It is possible to craft a reward formula which lookups the amount already paid to a payee on a transaction, and pay the difference
- This creates protection against double-payment, but can also be used for cases where facts have changed (ex: revenue is higher / lower) and the commission amount should be re-evaluated
- Note: the GetCommission() function takes additional parameters which can make the lookup more specific
- It is possible to also filter out transactions which already have had a commission paid to a payee
- This might be a good strategy if we also want to avoid not only double-payment, but also double-crediting
- If a commission was paid, we return 0, so the transaction will be filtered out
- If we cannot resolve a transaction's owner to a user, we prefer to let the transaction go through, so we can generate appropriate crediting alerts
- We recommend reading this KB
Related Articles
Configuration Experiment #V5
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...
Configuration Experiment #V3
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...
Configuration Experiment #V2
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...
Configuration Experiment #V1
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...
Configuration Experiment #V4
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...