Impact
The user can follow-up the goal of the publications by calculating the Impact based on the number of actions on the content:
- Views
- Clicks
- Shares
- Likes
- Comments
However, Impact can be a calculated score. The value of Impact is generated from the following pre-defined weighting:
Number of Actions | Weighting |
---|---|
Number of Reaches | multiply by 5 |
Number of Clicks | multiply by 10 |
Number of Shares | multiply by 50 |
Number of Likes | multiply by 20 |
Number of Comments | multiply by 30 |
This weighting calculation occurs so long as the user manually overrides the Impact.
If the user manually inputs an Impact, this is returned. Otherwise, the Impact is the sum of the weighted values:
if (impactProperty.IsDirty) return;
var reaches = entity.GetPropertyValue<long>("Publication.Reach") * 5;
var clicks = entity.GetPropertyValue<long>("Publication.Clicks") * 10;
var shares = entity.GetPropertyValue<long>("Publication.Shares") * 50;
var likes = entity.GetPropertyValue<long>("Publication.Likes") * 20;
var comments = entity.GetPropertyValue<long>("Publication.Comments") * 30;
var impact = reaches + clicks + shares + likes + comments;
impactProperty.SetValue(impact);
This weighting can be amended from the Scripts under Manage. The weighting for Impact is found in CMP - M.Usage - Impact:
Once opened the weighting values can be amended in the script. Click on the
to open the script for editing:
In this example, the value of Reaches has been changed from 5 to 15. When the amendments have been completed, click on
and then on
.
The build output begins:
If the build output is Successful, click on
.
Prior to updating the script, the Impact of a publication can be checked in the Content administration page under Manage > Entities.
The Impact in the this table reflects the original weighting before the change:
Number of Actions | Weighting |
---|---|
1 Reach | 5 |
1 Click | 10 |
1 Share | 50 |
1 Like | 20 |
1 Comment | 30 |
Total | 115 |
Clearing the cache and re-checking the Impact will display the change:
Number of Actions | Weighting |
---|---|
1 Reach | 15 |
1 Click | 10 |
1 Share | 50 |
1 Like | 20 |
1 Comment | 30 |
Total | 125 |