Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Banner Report Modules View modes: 
User avatar
Member
Member
egarrison-wte - 10/22/2013 7:52:55 PM
   
Banner Report Modules
I am trying to provide a report on a secure page that would expose the banner reports. The CMS Desk under Tools > Web Analytics > Banner Hits has a nicer / self updating report.

/CMSModules/WebAnalytics/Tools/Analytics_Report.aspx?statCodeName=bannerhit&dataCodeName=bannerhit&reportCodeName=bannerhit.yearreport;bannerhit.monthreport;bannerhit.weekreport;bannerhit.dayreport;bannerhit.hourreport

Is it possible to add these module elements to a Tree page?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 10/23/2013 10:01:24 AM
   
RE:Banner Report Modules
Web Analytics are created using the Reports module. You can go into the Reports module and find that particular report, make changes, and display them on almost any page you want. Simply add a page to your content tree and add the Report webpart to it. Select that report and its "publicly" visible.

User avatar
Member
Member
egarrison-wte - 10/24/2013 4:47:48 PM
   
RE:Banner Report Modules
Thanks. I have started to use the Reporting system more.

Stupid questions and why I wanted to use Analytics Module.

On the From and To date. Do you know a macro to get from 9/23/2013 to 10/24/2013
I am filling with {%currentdatetime%}
And {%currentdatetime %}

If I run the report at 5PM. the from is from 9/23 @ 5PM. I need it to be 9/23/2013 @00:00

I can fix in the SQL, but I have other places where I could use the syntax.

User avatar
Member
Member
kentico_sandroj - 11/2/2013 3:21:33 PM
   
RE:Banner Report Modules
Hello,

One option would be to create a custom macro with code similar to the following:
case "customdate":
e.Match = true;
DateTime now = DateTime.Now.AddDays(-30);
string customdate = now.Date.ToString("MM/dd/yyyy") + " 00:00:00 AM";
e.Result = customdate;


Then you can use the custom macro anywhere ({% ProcessCustomMacro("customdate", "") %}) and it would return the following format: 10/03/2013 00:00:00 AM

Would this approach work for you?

Best Regards,
Sandro