Döcu Content

Google Analytics JavaScript/Xpages

Create Account/Run Script


Döcu Content now includes a Google Analytics Asynchronous Script to record user experience in the App. It is necessary to create an account prior, if none is available, to be able to view Google Analytics report. You will be given the Script upon completion of account set up to add to Xpages files.


Information contained in the following is presented as is. This tutorial assumes you have basic Lotus Notes Configuration knowledge, and are familiar with Google products.

Döcu Content Analytics Account Creation

Create a new Google Analytics account, and grab the JavaScript file you will need to add to All pages in your software.

Account Set-up, see screenshots for areas of interest

  1. Go to: http://www.google.com/analytics/ and create a new account

  2. For this exercise, you will need the Beta version of the Script

  3. Add a Generic account name (not your Google Account Info)

  4. Plug in your website name and URL, note the default for LocalHost addresses

  5. Grab the Asynchronous code and plug into your App

  6. Do create a JavaScript Library to reference in your Xpages

  7. Create a test Xpages form to test the Script, run the Xpage in your Browser

  8. Wait about 24 hours to see the results via own Google Analytics Dashboard pages

Copy and Paste Asynchronous Script


//AppName: Döcu Content

//Program: analytics.js

//Purpose: Track User Experience in Xpages App

//version: 2014.

//@author: Dököll Solutions, Inc.


(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),



ga('create', 'UA-XXXXXXXX-X', 'none');

ga('send', 'pageview');

Account Creation Screenshots

Grab Beta Version of Asynchronous File

Account/Site Name/URL Information

Terms and Conditions

Asynchronous Script

Create Xpages Script Library

Reference Script file in Xpages form

Pick a Date to view Reports

View Reports after 24 Hours of Submission (Site Visits)

TIP: You should refresh your Xpages form(s), or visit the page(s) where the Script is referenced, a number of times... just to be sure your visits are recorded; since you must wait about 24 hours to view results.


You can now reference Google Analytics in your Xpages to report user visits to your dashboard; information that can be used to help you better service your users.

Questions, comments, please post a brief message on our Contact form on the main site.

Thank you for coming...