- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
6,100 Addons
-
Popular Downloads
- Top World of Warcraft Addons
- Top Minecraft Server Mods
- Top Rift Addons
- Top Skyrim Mods
- Top World of Tanks Skins
- Top StarCraft II Maps
- Top Terraria Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top The Secret World Mods
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Forums
- Store
Analyst
- 0 Likes
- World of Warcraft
- 189 Monthly Downloads
- Supports: 5.0.4
- 94,127 Total Downloads
- Updated 09/07/2012
- Created 01/16/2008
- 234 Favorites
- Project Site
- Comments
- Release Type: Release
- License: MIT License
- Newest File: 1.2.0
About Analyst
About Analyst
Analyst collects information about the virtual economy and presents that information to the player. In its Economy panel, Analyst answers questions such as the following:
- How much gold did I earn and how?
- How much gold did I spend and on what?
- How am I doing in the auction house?
- What have I looted from mobs?
- What items did I consume?
- What items did I produce?
- How many currencies (marks, badges, emblems) have I collected?
- What have I deposited or withdrawn from the guild bank?
- What is my gathering and crafting activity?
- ... and much more
All reports can be shown over a configurable period (days, weeks, month).
Screenshots
The Economy panel lets you choose between the various reports offered by Analyst. Also, the reporting period of time can be chosen. Central information is displayed in the top frame. Data from two selected reports in shown in the bottom frames.
For the This Week report, the start day of week can be configured in the options. For example, a raid player may want to set the start day of week to the beginning of the raid ID period.
If you mouseover a statistic item, a tooltip provides detailed drill-down information on that statistic:
Usage
If you have a Lightweight Data Broker (LDB) container add-on such as Titan Panel, Analyst shows in that container. Left-clicking the Analyst icon toggles the Economy panel; right-clicking the icon shows the options.
If you do not have an LDB container, type /analyst economy to toggle the Economy panel and /analyst options to show the options.
Analyst provides a key binding to toggle the Economy panel. You may want to assign a key to that binding to gain quick access to Analyst.
Reporting Bugs
Please use the Ticket System on WowAce when reporting bugs. This ensures that your error reports receive proper and timely processing. You can log in on WowAce with your Curse Network account. Posting error reports in the comments section on Curse.com is not recommended.
Analyst Release Notes
---------------------
* Release 1.2.0 for World of Warcraft 5.0.4 (2012-09-08)
- CHANGE: Adapted to World of Warcraft 5.0.4
* Release 1.1.5 for World of Warcraft 4.3.0 (2011-12-27)
- CHANGE: Adapted to World of Warcraft 4.3.0
* Release 1.1.4 for World of Warcraft 4.2.0 (2011-07-09)
- CHANGE: Adapted to World of Warcraft 4.2.0
* Release 1.1.3 for World of Warcraft 4.1.0 (2011-04-28)
- CHANGE: Adapted to World of Warcraft 4.1.0
* Release 1.1.2 for World of Warcraft 4.0.6 (2011-02-14)
- CHANGE: Improved support for the archaeology profession.
- CHANGE: Improved performance during combat.
- CHANGE: Improved processing of mailbox actions.
* Release 1.1.1 for World of Warcraft 4.0.3 (2010-12-01)
- FEATURE: Added tacking for honorable kills.
* Release 1.1.0 for World of Warcraft 4.0.1 (2010-10-13)
- CHANGE: Merged from Cataclysm development branch
* Release 1.1.0 Beta 2 for World of Warcraft 4.0.1 (2010-09-19)
- CHANGE: Adapted to archaeology API changes in build 12984.
* Release 1.1.0 Beta 1 for World of Warcraft 4.0.1 (2010-09-13)
- CHANGE: Adapted to World of Warcraft 4.0.1
- FEATURE: Added support for the Archaeology profession.
* Release 1.0.13 for World of Warcraft 3.3.3
- FEATURE: Added a minimap icon.
- CHANGE: Changed internal data structure to support item stacks up to 9999
(was 999.)
- FIX: Added optional dependencies to ensure that Analyst works properly when
running in disembedded mode.
* Release 1.0.12 for World of Warcraft 3.3.0 (2009-12-28)
- CHANGE: Added support for pushed loots and LFG completion rewards in order
to properly handle pushed rewards, such as emblems.
* Release 1.0.11 for World of Warcraft 3.3.0 (2009-12-10)
- CHANGE: Adapted to World of Warcraft 3.3.0.
* Release 1.0.10 for World of Warcraft 3.2.0 (2009-11-09)
- CHANGE: Added a safe-guard to prevent excessive timer creation
and cancellation if an event is triggered repeatedly within a short
time window.
- FIX: Showing the LDB tooltip when displaying session statistics
raises Lua error.
* Release 1.0.9 for World of Warcraft 3.2.0 (2009-08-05)
- FEATURE: Added support for the engineering profession.
- FEATURE: Added support for currencies obtained through opening
items.
- CHANGE: Adapted to World of Warcraft 3.2.0.
- CHANGE: Implemented spell translations in a generic way.
* Release 1.0.9 Beta 1 for World of Warcraft 3.1.3 (2009-07-30)
- FEATURE: Added support for session statistics.
- CHANGE: All configuration options are now managed by profiles. The
profiles dialog is accessible from the game interface options dialog.
- CHANGE: Options that are relevant on the command line only have
been hidden in the options dialog.
* Release 1.0.8 for World of Warcraft 3.1.1 (2009-05-01)
- FIX: Incorrect hooking of game tooltip causes unwanted side effects.
* Release 1.0.7 for World of Warcraft 3.1.0 (2009-04-18)
- CHANGE: Adapted to World of Warcraft 3.1
* Release 1.0.6 for World of Warcraft 3.0.9 (2009-02-14)
- CHANGE: The implementation of the GetSellValue API in Analyst now
checks for (illegal) nil arguments and no longer fails if a nil argument
is passed.
- FIX: Analyst may not capture most events under specific add-on loading
conditions.
* Release 1.0.5 for World of Warcraft 3.0.8 (2009-02-05)
- FIX: Receiving currencies as quest rewards, such as Dalaran Cooking
Awards, no longers triggers a Lua error.
- CHANGE: Adapted to World of Warcraft 3.0.8, fixing an issue with
UIDropDownMenu.
* Release 1.0.4 for World of Warcraft 3.0.2 (2008-11-02)
- FIX: Looting corpses in battlegrounds no longer causes Lua errors
related to currency processing.
* Release 1.0.3 for World of Warcraft 3.0.2 (2008-10-21)
- FEATURE: Added support for currencies.
- FEATURE: Added support for the Inscription professsion (milling,
inscription trade skill).
- FEATURE: Added support for Lightweight Data Broker (LDB).
- CHANGE: Removed per-char database.
- CHANGE: Removed FuBar support.
- CHANGE: Ported to Ace3 and World of Warcraft 3.0.
- CHANGE: The add-on is now licensed under the MIT license.
* Release 1.0.2 for World of Warcraft 2.4.3 (2008-07-26)
- FEATURE: All data can now optionally be presented for all characters
on the account. Previously, data was available for the currently logged
in character only.
- FEATURE: The add-on title text in the FuBar now optionally shows
the amount of gold gained or lost in the period.
- FEATURE: Analyst now displays a tooltip on the FuBar. The tooltip
contains information from the Overview report.
- FEATURE: The Flights popup now shows detail information on the
flights taken.
- CHANGE: The default key bindings have been removed. New users can
bind them manually if they so desire.
- CHANGE: Economy data is now stored in an account-wide saved variable.
It used to be stored in a per-character saved variable. Existing
data is silently migrated when each character is logged in.
- FIX: Gold gained from opening objects such as chests is now processed.
- FIX: Gold gained from enchanting in the trade window is now processed.
- FIX: Corrected an error in the TOC file with regard to the optional
dependencies.
* Release 1.0.1 for World of Warcraft 2.4.1 (2008-04-19)
- CHANGE: Costs for repairing all items are now processed synchronously.
This is to avoid possible event overlap resulting from repairing, buying
and selling in quick succession.
- CHANGE: Default key bindings are now applied only once.
- CHANGE: Adapted to World of Warcraft 2.4.0
- FIX: Uncategorized activities are now properly processed.
- FIX: Fixed a problem preventing the proper processing of flights.
* Release 1.0.0 for World of Warcraft 2.3.2
- FIX: Receiving mail from "Unknown" senders no longer causes an error.
* Release 0.9.2 (Beta) for World of Warcraft 2.3.0
- FEATURE: Added "Miscellaneous" measures for gaining and spending gold
as well as producing and consuming items. These measures track activities
that are not currently categorized by Analyst but have an impact on the
gold balance or the items of the player.
- FEATURE: Added measures for tracking items received or sent by mail.
- FEATURE: Added a measure for tracking smelting activity.
- FEATURE: Items used as payment in vendor transactions, such as battleground
tokens or tier set tokens, are now properly recorded in a new measure
"Items Swaped".
- FIX: Automated vendor selling is no longer processed as "Using" the
items sold. Proceeds from automated selling are now properly reported.
- FIX: Gold looted in parties with two players is now properly processed.
- FIX: Activities are now properly processed in raids and parties.
- FIX: Opening objects is now properly reported and no longer causes
errors.
* Release 0.9.1 (Beta) for World of Warcraft 2.3.0
- FEATURE: Added support for FuBar. The Economy Panel can now be toggled
by clicking the Analyst button on the FuBar or on the minimap. The settings
of this add-on are shown in the menu which is opened by right-clicking
on the Analyst button.
- FIX: Destroyed items were not properly recorded. Destroyed items are now
properly recorded and shown in a new measure in the Items Consumed report.
- FIX: Battleground tokens were not properly recorded. Battleground tokens
awarded when a battleground closes are now properly recorded and shown in
a new measure in the Items Produced report.
* Release 0.9.0 (Beta) for World of Warcraft 2.3.0
- Initial release
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| 1.2.0 | Release | 5.0.4 | 4,321 | 09/07/2012 |
| 1.2.0-nolib | Release | 5.0.4 | 31 | 09/07/2012 |
| 1.1.5 | Release | 4.3 | 4,933 | 12/26/2011 |
| 1.1.5-nolib | Release | 4.3 | 37 | 12/26/2011 |
| 1.1.4 | Release | 4.2 | 8,994 | 07/09/2011 |
| 1.1.4-nolib | Release | 4.2 | 66 | 07/09/2011 |
| 1.1.3 | Release | 4.1 | 5,685 | 04/27/2011 |
| 1.1.3-nolib | Release | 4.1 | 41 | 04/27/2011 |
| 1.1.2 | Release | 4.0.6 | 5,226 | 02/14/2011 |
| 1.1.2-nolib | Release | 4.0.6 | 44 | 02/14/2011 |
| 1.1.1 | Release | 4.0.3a | 5,595 | 12/01/2010 |
| 1.1.1-nolib | Release | 4.0.3a | 81 | 12/01/2010 |
| 1.1.0 | Release | 4.0.1 | 3,570 | 10/13/2010 |
| 1.1.0-nolib | Release | 4.0.1 | 41 | 10/13/2010 |
| 1.1.0 Beta 2 | Beta | 4.0.1 | 268 | 09/19/2010 |
| 1.1.0 Beta 2-nolib | Beta | 4.0.1 | 2 | 09/19/2010 |
| 1.1.0 Beta 1 | Beta | 4.0.1 | 138 | 09/13/2010 |
| 1.1.0 Beta 1-nolib | Beta | 4.0.1 | 1 | 09/13/2010 |
| 1.0.12 | Release | 3.3.0 | 398 | 12/28/2009 |
| 1.0.12-nolib | Release | 3.3.0 | 3 | 12/28/2009 |
| 1.0.11 | Release | 3.3.0 | 120 | 12/10/2009 |
| 1.0.11-nolib | Release | 3.3.0 | 1 | 12/10/2009 |
| 1.0.10 | Release | 3.2.0 | 185 | 11/08/2009 |
| 1.0.10-nolib | Release | 3.2.0 | 4 | 11/08/2009 |
| 1.0.9 | Release | 3.2.0 | 314 | 08/04/2009 |
| 1.0.9-nolib | Release | 3.2.0 | 5 | 08/04/2009 |
| 1.0.9 Beta 1 | Beta | 3.1.0 | 103 | 07/29/2009 |
| 1.0.9 Beta 1-nolib | Beta | 3.1.0 | 1 | 07/29/2009 |
| 1.0.8 | Release | 3.1.0 | 166 | 05/01/2009 |
| 1.0.8-nolib | Release | 3.1.0 | 5 | 05/01/2009 |
| 1.0.7 | Release | 3.1.0 | 85 | 04/18/2009 |
| 1.0.7-nolib | Release | 3.1.0 | 1 | 04/18/2009 |
| 1.0.6 | Release | 3.0.9 | 185 | 02/14/2009 |
| 1.0.6-nolib | Release | 3.0.9 | 2 | 02/14/2009 |
| 1.0.6 Beta 2 | Beta | 3.0.9 | - | 02/13/2009 |
| 1.0.6 Beta 2-nolib | Beta | 3.0.9 | - | 02/13/2009 |
| 1.0.6 Beta 1 | Beta | 3.0.8 | 47 | 02/08/2009 |
| 1.0.6 Beta 1-nolib | Beta | 3.0.8 | 1 | 02/08/2009 |
| 1.0.5 | Release | 3.0.8 | 78 | 02/05/2009 |
| 1.0.5-nolib | Release | 3.0.8 | 1 | 02/05/2009 |
| 1.0.5 Beta 2 | Beta | 3.0.8 | 49 | 02/01/2009 |
| 1.0.5 Beta 2-nolib | Beta | 3.0.8 | 1 | 02/01/2009 |
| 1.0.5 Beta 1 | Beta | 3.0.3 | 3 | 11/27/2008 |
| 1.0.5 Beta 1-nolib | Beta | 3.0.3 | - | 11/27/2008 |
| 1.0.4 | Release | 3.0.2 | 13 | 11/01/2008 |
| 1.0.4-nolib | Release | 3.0.2 | - | 11/01/2008 |
| 1.0.4 Beta 1 | Beta | 3.0.2 | - | 10/28/2008 |
| 1.0.4 Beta 1-nolib | Beta | 3.0.2 | - | 10/28/2008 |
| 1.0.3 | Release | 3.0.2 | - | 10/21/2008 |
| 1.0.3-nolib | Release | 3.0.2 | - | 10/21/2008 |
Addon Packs Containing This...
Top Downloads
-
- Deadly Boss Mods
- Combat, PvP, and Boss Encounters
- 1,011,007 Monthly Downloads
-
- Bagnon
- Bags & Inventory
- 484,403 Monthly Downloads
-
- Auctioneer
- Mail, Tooltip, Bags & Inventory, Professions, and Auction & Economy
- 336,889 Monthly Downloads
-
- Recount
- Combat
- 322,013 Monthly Downloads
-
- HealBot Continued
- Healer and Unit Frames
- 295,551 Monthly Downloads


Comments
Really nice addon :)
Would be nice with a Total view besides the month/week/day/session views
To avoid LUA errors in patch 5.0.4 you will need to edit Analyst/Capture.lua by changing GetNumPartyMembers() to GetNumGroupMembers() and removing GetNumRaidMembers().
ie. This:
if (GetNumPartyMembers() > 0 or GetNumRaidMembers() > 1) andto this:
if (GetNumGroupMembers() > 0) andThere are two instances in the functions Analyst:CHAT_MSG_MONEY (line 609) and Analyst:CHAT_MSG_LOOT (line 623).
Thanks for posting! An update will be out shortly!
In order to do its biddig, Analyst passively hooks numerous functions and listens to numerous events. None of them are specifically tied to the death of a mob, though. UNIT_DEATH is not even included in the events that Analyst listens to. So, I assume this is an undesired side effect. If you can gain any additional profiling insight into what function exactly consumes the CPU cycles, that would be much appreciated.
Date: 2011-04-19 13:32:16
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Analyst\Capture.lua line 2096:
bad argument #1 to 'find' (string expected, got nil)
Debug:
[C]: ?
[C]: find()
Analyst\Capture.lua:2096: GetEnchantString()
Analyst\Capture.lua:988:
Analyst\Capture.lua:948
(tail call): ?
[C]: DoTradeSkill()
GnomeWorks\MainWindow.lua:2042:
GnomeWorks\MainWindow.lua:2032
AddOns:
Swatter, v5.9.4960 (WhackyWallaby)
WowheadLooter, v40015
Afterlife, v40000-R3
Altoholic, v4.0.006b
Analyst, v1.1.2
Arh, v0.91
ArkInventory, v3.02
ArkInventoryRules, v
Atlas, v1.18.3
AtlasBattlegrounds, v1.18.3
AtlasDungeonLocs, v1.18.3
AtlasOutdoorRaids, v1.18.3
AtlasTransportation, v1.18.3
AtlasWorldEvents, v2.0
AtlasLootLoader, vv6.03.00-beta3
AucAdvanced, v5.9.4960 (WhackyWallaby)
AucFilterBasic, v5.9.4960 (WhackyWallaby)
AucFilterOutlier, v5.9.4960.2531
AucMatchUndercut, v5.9.4960.2531
AucScanData, v5.9.4960 (WhackyWallaby)
AucStatHistogram, v5.9.4960 (WhackyWallaby)
AucStatiLevel, v5.9.4960 (WhackyWallaby)
AucStatPurchased, v5.9.4960 (WhackyWallaby)
AucStatSales, v5.9.4960.2842
AucStatSimple, v5.9.4960 (WhackyWallaby)
AucStatStdDev, v5.9.4960 (WhackyWallaby)
AucStatWOWEcon, v5.9.4960.2530
AucUtilAHWindowControl, v5.9.4960.3311
AucUtilAppraiser, v5.9.4960.2530
AucUtilAskPrice, v5.9.4960.3175
AucUtilAutoMagic, v5.9.4960.3142
AucUtilCompactUI, v5.9.4960.2530
AucUtilEasyBuyout, v5.9.4960.3583
AucUtilFixAH, v5.9.4960 (WhackyWallaby)
AucUtilGlypher, v5.9.4960.2545
AucUtilItemSuggest, v5.9.4960.3108
AucUtilPriceLevel, v5.9.4960.2545
AucUtilScanButton, v5.9.4960.2530
AucUtilScanFinish, v5.9.4960.2530
AucUtilScanProgress, v5.9.4960.2530
AucUtilScanStart, v5.9.4960.4819
AucUtilSearchUI, v5.9.4960.3655
AucUtilSimpleAuction, v5.9.4960.4546
AucUtilVendMarkup, v5.9.4960.2530
Babylonian, v5.1.DEV.130
BeanCounter, v5.9.4960 (WhackyWallaby)
Carbonite, v4.034
CarboniteTransfer, v1.01
Configator, v5.1.DEV.282
DataStore, v4.0.001
DataStoreAchievements, v4.0.001
DataStoreAuctions, v4.0.001
DataStoreCharacters, v4.0.006
DataStoreContainers, v4.0.001
DataStoreCrafts, v4.0.001
DataStoreCurrencies, v4.0.001
DataStoreInventory, v4.0.005b
DataStoreMails, v4.0.001
DataStorePets, v4.0.001
DataStoreQuests, v4.0.001
DataStoreReputations, v4.0.001
DataStoreSpells, v4.0.001
DataStoreStats, v4.0.001
DataStoreTalents, v4.0.001
DBMBurningCrusade, v
DBMCore, v
DebugLib, v5.1.DEV.275
Enchantrix, v5.9.4960 (WhackyWallaby)
EnchantrixBarker, v5.9.4960 (WhackyWallaby)
FishingBuddy, v1.0.2 Beta 1
GatherMate2, v1.12
GearScore, v4.4.03
GnomeWorks, v144
Informant, v5.9.4960 (WhackyWallaby)
LightHeaded, v330
LilSparkysWorkshop, v
MarketWatcher, v2.11
Overachiever, v0.62
OverachieverTrade, v0.62
Postal, v3.4.4
Recount, v
SlideBar, v5.9.4960 (WhackyWallaby)
SmartBuff, v4.0g
SmartDebuff, v4.0g
Stubby, v5.9.4960 (WhackyWallaby)
SuperDuperMacro, v1.8.3
TelUIAddonSkins, v1.0-109
TradeSkillMaster, vv0.1.7Beta
TradeSkillMasterAuctionDB, vv0.2.2Beta
TradeSkillMasterAuctioning, vv0.2.2Beta
TradeSkillMasterCrafting, vv0.2.7Beta
TradeSkillMasterGathering, vv0.2.0.1Beta
TradeSkillMasterMailing, vv0.1.1Beta
TradeSkillMasterShopping, vv0.2.2Beta
Tukui, v13.04
TukuiClassTimer, v3.02
TukuiDBM, v
TukuiRaid, v
BlizRuntimeLib_enUS v4.0.6.40000
(ck=bdd)
Other than that, great addon. Thanks.
It says "total gold gained: 332", "total gold spent: 50", Total currency gained 29" ?! Surely that's 282 gained?!
For ex. you killed 36 different types of mobs. Instead of keeping the top ten, have all of them in the tooltip. Is there a way to do that?
Thanks ahead of time
Very Avid Fan
For your enjoyment - save for up to 450 days ...
in Locale\Local-enUS.lua, change this:
-- Periods
L["SESSION"] = "Session"
L["TODAY"] = "Today"
L["YESTERDAY"] = "Yesterday"
L["THIS_WEEK"] = "This Week"
L["THIS_MONTH"] = "This Month"
L["LAST_7_DAYS"] = "Last 7 Days"
L["LAST_30_DAYS"] = "Last 30 Days"
To this:
-- Periods
L["SESSION"] = "Session"
L["TODAY"] = "Today"
L["YESTERDAY"] = "Yesterday"
L["THIS_WEEK"] = "This Week"
L["THIS_MONTH"] = "This Month"
L["LAST_7_DAYS"] = "Last 7 Days"
L["LAST_30_DAYS"] = "Last 30 Days"
L["LAST_60_DAYS"] = "Last 60 Days"
L["LAST_90_DAYS"] = "Last 90 Days"
L["LAST_120_DAYS"] = "Last 120 Days"
L["LAST_150_DAYS"] = "Last 150 Days"
L["LAST_180_DAYS"] = "Last 180 Days"
L["LAST_270_DAYS"] = "Last 270 Days"
L["LAST_360_DAYS"] = "Last 360 Days"
L["LAST_450_DAYS"] = "Last 450 Days"
In the main Analyst.lua file, increase the data lifetime. Change this:
ANALYST_DATA_LIFETIME = 30
To this:
ANALYST_DATA_LIFETIME = 450
This next one is a little more involved. In EconomyFrame.lua, change this:
-- Periods
ANALYST_PERIOD_SESSION = "SESSION"
ANALYST_PERIOD_TODAY = "TODAY"
ANALYST_PERIOD_YESTERDAY = "YESTERDAY"
ANALYST_PERIOD_THIS_WEEK = "THIS_WEEK"
ANALYST_PERIOD_THIS_MONTH = "THIS_MONTH"
ANALYST_PERIOD_LAST_7_DAYS = "LAST_7_DAYS"
ANALYST_PERIOD_LAST_30_DAYS = "LAST_30_DAYS"
To this:
-- Periods
ANALYST_PERIOD_SESSION = "SESSION"
ANALYST_PERIOD_TODAY = "TODAY"
ANALYST_PERIOD_YESTERDAY = "YESTERDAY"
ANALYST_PERIOD_THIS_WEEK = "THIS_WEEK"
ANALYST_PERIOD_THIS_MONTH = "THIS_MONTH"
ANALYST_PERIOD_LAST_7_DAYS = "LAST_7_DAYS"
ANALYST_PERIOD_LAST_30_DAYS = "LAST_30_DAYS"
ANALYST_PERIOD_LAST_60_DAYS = "LAST_60_DAYS"
ANALYST_PERIOD_LAST_90_DAYS = "LAST_90_DAYS"
ANALYST_PERIOD_LAST_120_DAYS = "LAST_120_DAYS"
ANALYST_PERIOD_LAST_150_DAYS = "LAST_150_DAYS"
ANALYST_PERIOD_LAST_180_DAYS = "LAST_180_DAYS"
ANALYST_PERIOD_LAST_270_DAYS = "LAST_270_DAYS"
ANALYST_PERIOD_LAST_360_DAYS = "LAST_360_DAYS"
ANALYST_PERIOD_LAST_450_DAYS = "LAST_450_DAYS"
and this:
ANALYST_PERIODS = {
ANALYST_PERIOD_SESSION,
ANALYST_PERIOD_TODAY,
ANALYST_PERIOD_YESTERDAY,
ANALYST_PERIOD_THIS_WEEK,
ANALYST_PERIOD_THIS_MONTH,
ANALYST_PERIOD_LAST_7_DAYS,
ANALYST_PERIOD_LAST_30_DAYS
to this:
ANALYST_PERIODS = {
ANALYST_PERIOD_SESSION,
ANALYST_PERIOD_TODAY,
ANALYST_PERIOD_YESTERDAY,
ANALYST_PERIOD_THIS_WEEK,
ANALYST_PERIOD_THIS_MONTH,
ANALYST_PERIOD_LAST_7_DAYS,
ANALYST_PERIOD_LAST_30_DAYS,
ANALYST_PERIOD_LAST_60_DAYS,
ANALYST_PERIOD_LAST_90_DAYS,
ANALYST_PERIOD_LAST_120_DAYS,
ANALYST_PERIOD_LAST_150_DAYS,
ANALYST_PERIOD_LAST_180_DAYS,
ANALYST_PERIOD_LAST_270_DAYS,
ANALYST_PERIOD_LAST_360_DAYS,
ANALYST_PERIOD_LAST_450_DAYS,
And the last change - change this (@ line 227):
elseif period == ANALYST_PERIOD_THIS_MONTH then
local dayOfMonth = tonumber(date("%d", today))
start = today - (dayOfMonth - 1) * 86400
elseif period == ANALYST_PERIOD_LAST_7_DAYS then
start = today - 6 * 86400
elseif period == ANALYST_PERIOD_LAST_30_DAYS then
start = today - 29 * 86400
To this:
elseif period == ANALYST_PERIOD_THIS_MONTH then
local dayOfMonth = tonumber(date("%d", today))
start = today - (dayOfMonth - 1) * 86400
elseif period == ANALYST_PERIOD_LAST_7_DAYS then
start = today - 6 * 86400
elseif period == ANALYST_PERIOD_LAST_30_DAYS then
start = today - 29 * 86400
elseif period == ANALYST_PERIOD_LAST_60_DAYS then
start = today - 60 * 86400
elseif period == ANALYST_PERIOD_LAST_90_DAYS then
start = today - 90 * 86400
elseif period == ANALYST_PERIOD_LAST_120_DAYS then
start = today - 120 * 86400
elseif period == ANALYST_PERIOD_LAST_150_DAYS then
start = today - 150 * 86400
elseif period == ANALYST_PERIOD_LAST_180_DAYS then
start = today - 180 * 86400
elseif period == ANALYST_PERIOD_LAST_270_DAYS then
start = today - 270 * 86400
elseif period == ANALYST_PERIOD_LAST_360_DAYS then
start = today - 360 * 86400
elseif period == ANALYST_PERIOD_LAST_450_DAYS then
start = today - 450 * 86400