Where can I find AnalyticsUtil to call page view events

Hi All,
I have a Webcenter Portal Application and I am trying to integrate Analytics Service to count the number of page views.I have installed Analytics Collector and tried to setup the connection to ActivitiesDS through JDeveloper.I am following the steps from the below document:
http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10148/jpsdg_analytics.htm#BABEHEHC
I am stuck at section 47.2.3.1.As mentioned in the section I have added the custom javascript code on the page but I am not sure where exactly to find the AnalyticsUtil as mentioned in the document which will actually send the page view event.I am assuming it to be a util similar to ADFUtils, JSFUtils etc.Any help appreciated.
Thanks,
Swathi Patnam

Have you noticed the lines-
"To send page events, you must add *event code to each page*. Following is an example using a client JavaScript event on the page which, in turn, calls the Java Analytics API to send the actual event. To implement this example, you add the following code just below the <af:document> tag, replacing the pageName value with the name of the page for which you are sending events:"
in your java bean (managedbean) you will get the number of page views-
public void sendPageEvent (ClientEvent event) {
// Checks whether Analytics events must be sent
if (!AnalyticsUtil.isSendingEvents())
return;
HTTPServletRequest request = (HTTPServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
String requestUser = request.getRemoteUser = request.getRemoteUser();
//SEND PAGE VIEW EVENT
String pageName = (String)event.getParameters().get("pageName");
if(pageName == null || pageName.isEmpty() || requestUser == null)
return;
AnalyticsUtil.sendPageViewEvent(FacesContext.getCurrentInstance().
getViewRoot..getViewId(), //viewID
"PortalApp", //spaceDisplayName
requestUser, //username
0,
pageName,
false,
request);
you have to import AnalyticsUtil in your bean class.thats all.
Apart from it,could u tell me what's the issue you are facing really?
Regards,
Hoque

Similar Messages

  • Where can I find manual Crystal 11.0 viewer activex control for download?

    Hello,
    Where can I find manual Crystal 11.0 viewer activex control for download?
    I'm having a heck of a time installing the control on a client machine.
    Thanks,
    -Drew
    Moved to Crystal Forums Edited by: Marilyn Pratt on Apr 20, 2010 1:58 AM

    The ActiveXViewer is not downloadable from our SAP site. The file is hosted on your web server, and also installed on the system where you have Crystal Reports XI installed.
    Look here, C:Program FilesBusiness ObjectsCommon3.0crystalreportviewers11ActiveXControls for ActiveXViewer.cab. Extract the contents and right click crviewer.inf, then select Install.
    Also see knowledge base article 1218519 here, http://www.sdn.sap.com/irj/sdn/crystal-xcelsius-notes.

  • Where can I find New Templates for Pages? Specifically looking for

    I'm specifically looking for Real Estate brochures and stuff for promoting Real Estate houses. There Isn't a wide variety of templates in pages, any suggestions?

    These are only in US sizes, not metric, but offer exactly what you want and are high quality:
    http://www.stocklayout.com
    Peter

  • Where can I find additional templates for pages?

    I'm looking for a simple project management plan, or document with timelines.  I'm now using mavericks on a desktop.

    Search for a Word template and open that.
    Or try http://www.iworkcommunity.com
    Peter

  • Where can I find the discontinued Adobe SVG Viewer download at?

    I have a pice of sortware that requires the discontinued Adobe SVG viewer (Jan 1, 2009) My software is no longer supported.. There's viewer that no longer works because I don't have your discontinued software. Is there any way that I can get a copy? Thanks, Steve Koonter 

    Do these help at all, there seem to be downloads?
    http://www.adobe.com/devnet/svg/adobe-svg-viewer-download-area.html
    http://solutionpartners.adobe.com/svg/viewer/install/

  • Where can i find package

    hi..
    i was wondering where can i find a package called ij????
    thanxxx

    Depends on what ij is.
    I know it is part of the ImageJ image processing program, you can get the source here.
    Otherwise, I haven't a clue.

  • On installation of Firefox 4 beta, it tells me that it won't run on my Mac. When I go to system requirements, it takes me to a page for Firefox3.6 requirements. Where can I find the requirements for the beta?

    The link to system requirements for Firefox 4 beta takes you to a page that gives you the requirements for Firefox 3.6 instead. I assume that the requirements for the beta are different as I can't seem to install the beta on my Macs. Where can I find the beta system requirements?

    I never expected Mozilla to neglect the users of Apple's PowerPC (PPC) computers, while still supporting much older operating environments such as Windows XP. So, I should just throw away a $6,000 system, which is still fast and functional, and contribute masses of heavy metals to land-fills because…?
    I'm hurt and confused after supporting Firefox for many years — installing and using it not only on my own computers but on most of my customers' computers. Now I have to tell my customers with PPC Macs they can't have a secure cross-platform browsing experience from Mozilla. They'll have to learn to use some other browser, or buy a new computer.
    If one doesn't buy a new computer every year, one doesn't deserve Firefox 4. This is sort of sounding more like a Microsoft™© doctrine. (But wait, I can still have Firefox 4 on a ''SERIOUSLY CRAPPY WINDBLOWS XP pile of rubbish?!'') Please open your eyes Mozilla. This just doesn't make sense.

  • When I click "about this mac" to check on my storage, I get a number of different sections music, movies, etc. but also I get a section called backups, where can I find the files in this section?

    When I click "about this mac" to check on my storage, I get a number of different sections music, movies, etc. but also I get a section called backups, where can I find the files in this section?

    Welcome to Apple Support Communities
    All the storage in "Backups" is taken up by local snapshots, which are made automatically in all MacBooks, MacBooks Pro and MacBooks Air with OS X Lion or newer and Time Machine turned on.
    See > http://pondini.org/TM/30.html I recommend you to leave them there, because they will be removed automatically. However, if you want, you can disable or remove them manually if you want, even if there's no reason to do this. Have a look at the link above for more information

  • Where can I find a newspaper template for Pages on the Mac?

    Where can I find a newspaper, not newsletter, template for the program Pages on the Mac. I bought the program and I need a newspaper template, not newsletter template.

    What is the difference? you might have to make your own.

  • Where can I find a users blog web page on the server?

    I know I can access the blog from the internet (http://myserver.com/users/username). I have a link on our web site set up for surfers to access this blog. I want to add a last updated line but the code [updated: <!--#flastmod virtual="http://mysever.com/users/username/" -->] obviously won't work because I need the actual web page name. Just what is this name? Where can I find it?

    There is no file, so you can't use this approach.
    The blog content is written in a database format, and the page is built dynamically when it's requested pulling the latest content from the database.
    The #flastmod will only look at the filesystem and return the modification date of a file.
    In order to get the modification date of the blog (i.e. the most recent post), you're going to have to query the database, which can't be done with a server-side includes tag.

  • Where can I find the install page for CS5 Production Premium?

    I need to reinstall my copy of CS5 Production Premium. Where can I find the install page for that?

    Check your Adobe account online to see if there is a link to download from there.
    Alternately, you can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • Where can I find a list of the keyboard shortcuts for editing a Wiki page, on Windows and Mac?

    I tried searching in Help, but I haven't been able to find anything.  I'd like to get a list of the keyboard shortcuts that work while editing a wiki page in the Mac Server Wiki running on Lion. 
    When accessing Lion Server Wiki from a Mac, some of the usual suspects work: cmd+B for bold, cmd+} to indent, etc.  When accessing the Lion Server Wiki from Windows, though, I can't find an equivalent keyboard shortcut for the indent / unindent.  Where can I find a list of all of them?
    Thanks!

    http://support.apple.com/kb/HT1558
    http://support.apple.com/kb/TA38663
    http://support.apple.com/kb/HT4982
    They are also listed in the built-in User Guide accessible directly on the iPhone in Safari.
    Find the "iPhone User Guide" bookmark, then go to iPhone at a Glance > Status icons

  • Just purchased Mac Book,   VERY  new to Mac world,   "ouch",,  I am looking to design my own website,,  is there a program built in that will allow this,  if so,, what is it called, and where can I find it???   Thanks,

    Just purchased Mac Book,   VERY  new to Mac world,   "ouch",,  I am looking to design my own website,,  is there a program built in that will allow this,  if so,, what is it called, and where can I find it???   Thanks,

    There are many ways and applications that you can use to build a web site. Which will be best for you will depend on the site you want to build and your level of expertise. Many experienced web developers just use a text editor, often one with specialized features for web programming (BBEdit, for example), but there are programs that can offer additional help, up to and including "drag and drop". Without knowing more about your needs, it's difficult to offer specific advice, but here are some possibilities:
    iWeb - came with your Mac. Easy to build but rather limiting in what you can do.
    RapidWeaver - more flexible and capable than iWeb but harder to use; sort of an "inbetweener" application
    Dreamweaver - powerful but expensive and a steep learning curve
    There are of course a number of other options. If you can provide more detail about what you wish to build and your level of experience, someone can probably make more targeted recommendations.
    Regards.

  • When i close the browser it ask whether you want quit or save and quit , when i selet save and quit none of te pages are saved, or if saved where can i find them?

    when i close the browser it ask whether you want quit or save and quit , when i selet save and quit none of te pages are saved, or if saved where can i find them?

    Make sure that you do not use [[Clear Recent History]] to clear the 'Browsing History' when you close Firefox.
    * [[Firefox does not ask to save tabs and windows on exit]]

  • TS3991 where can I find my web page I created on web me?

    where can I find my web page I created on web me?

    I'm not sure what web me is.  Are you referring to iWeb, Apple's former web page editor/manager?
    If you mean the web page that was on MobileMe, it's been deleted.  Last month, MobileMe was shut down and iCloud took over.  Unfortunately, iCloud does not provide a web page service, nor a photo gallery.
    However, if you used iWeb to create the site, then you should still have the files on your mac.  These can be uploaded to another web provider, which you would have to subscribe to.  There are hundreds if not thousands of providers around the globe. 

Maybe you are looking for