Monday, July 16, 2007

How to Implement Google Analytics in a CONTENTdm System

I recently received a question regarding how to add Google Analytics code to CONTENTdm system web pages in response to a Library Insider article I wrote in February 2007, “Discovering More Information about Your CONTENTdm Users by Using W3C Format or Google Analytics” (v. 5, no. 2, page 2). In response to that question, and for the benefit of others who may be interested to know, I will elaborate here.

The fundamental question is, “Where do I plug in the Google Analytic code?” If you are familiar with CONTENTdm, you know that there are many PHP pages in the system so determining where to insert the Google code can be a challenge.
The following CONTENTdm pages are ones that I selected for Analytics code to be inserted:
• item_viewer.php
• document.php
• meta_viewer.php
• viewer.php
• page_text.php(optional)
• side_side.php(optional)
• any entry pages you desire(Optional)

If you are interested to know why I chose these pages, keep on reading. The item_viewer.php is required for viewing non-compound objects. There are also other PHP pages called when item_viewer.php is displayed, although we do not need to worry about them because they are all rendered into a single page, item_viewer.php.

The next three pages, document.php, meta_viewer.php, and page_text.php, are required to view compound objects in CONTENTdm. One might ask, “Isn’t document.php enough?” The answer is “No.”

Inserting the Analytics code in only the document.php page will result in untracked hits when someone is viewing the item description, side description, side and text, side by side, next page, and previous page assets associated with a compound object. Document.php consists of three frames. Two of the frames are static and will not be tracked when users are navigating using the functions I mentioned above. If you want to track which compound objects and their corresponding metadata are used, meta_viewer.php and viewer.php also need to be registered with Google Analytics.

Page_text.php is used to display the page and text of a compound object. Side_side.php is used to display two compound objects side by side. If you would like Google Analytics to tell you how often these two functionalities are used, you should insert the Analytics code in these two pages. These two are optional because ultimately, these two pages will use viewer.php and meta_viewer.php to display contents. Now that you know where to insert your Analytics code, the hardest part is done. Let us move on to actually inserting the code.

On its Google Analytics how-to page is an explanation of how to insert the code in a dynamic PHP page by writing a PHP script that produces Javascript code. You do not need to follow this step. You can just follow the instruction for static pages, which is to insert the Google code right before the closing body tag. Once you have completed these steps, Google will begin providing you with incredible information about usage of your CONTENTdm system.

For more information, contact P. Budi Wibowo, Ball State University Libraries’ Head of Digital Libraries and Web Services, BWibowo@bsu.edu, (765) 285-8032

Labels: , ,

26 Comments:

At 6:52 AM, Blogger Raf said...

would'nt it suffice to add the Analytics code to footer.php ? It's called whith every page....

Raf

 
At 10:00 AM, Anonymous Anonymous said...

miley cyrus nude [url=http://crystal-liu.com/forums/index.php?showuser=1113]miley cyrus nude[/url] miley cyrus sex tape [url=http://forum.ondertitel.com/index.php?showuser=74503]miley cyrus sex tape[/url] miley cyrus nude [url=http://stabilo.forumsunlimited.com/index.php?showuser=799]miley cyrus nude[/url] miley cyrus nude [url=http://ragga-jungle.com/user/15036-vebsterd]miley cyrus nude[/url] kim kardashian nude [url=http://forums.quark.com/members/vebsterd.aspx]kim kardashian nude[/url]

 
At 8:15 AM, Anonymous Anonymous said...

miley cyrus nude [url=http://www.ipetitions.com/petition/mileycyrus]miley cyrus nude[/url] paris hilton nude [url=http://www.ipetitions.com/petition/parishilt]paris hilton nude[/url] kim kardashian nude [url=http://www.ipetitions.com/petition/kimkardashian45]kim kardashian nude[/url] kim kardashian nude [url=http://www.ipetitions.com/petition/celebst]kim kardashian nude[/url]

 
At 4:00 PM, Anonymous generic viagra said...

hello guys...can not imagine how this excellent blog helped me for my research work performed...thanks a lot

 
At 12:50 PM, Anonymous Viagra said...

Very interesting! I enjoy reading about Google Analytics.

 
At 3:30 AM, Anonymous Anonymous said...

mobile dating site in united state http://loveepicentre.com/success_stories.php speed dating in omaha ne

 
At 9:33 AM, Anonymous Anonymous said...

catholic singles online single catholic dating http://loveepicentre.com/ irishmen dating

 
At 5:30 AM, Anonymous Anonymous said...

http://tabloid.bunbunmaru.net/tabloids/pcp-quitters-winnin-pats-distractions-easy-payday-loans-online-banducci-swelling-palisades Soise [url=http://briantullcreative.com/content/rathore-empower-network]make money at home[/url] phopherdepaxy ways to make extra money

 
At 12:37 AM, Anonymous Anonymous said...

[url=http://loveepicentre.com/taketour.php][img]http://loveepicentre.com/uploades/photos/1.jpg[/img][/url]
back women dating asian men [url=http://loveepicentre.com/advice.php]dating in morristown nj[/url] no dating only friends internet sites
looking for breastfeeding dating [url=http://loveepicentre.com/map.php]canadian singles dating[/url] dating and paypal
speed dating online paris [url=http://loveepicentre.com/]sexy mature moment dating[/url] s m davis and dating

 
At 10:48 AM, Anonymous Anonymous said...

edward abbey free ebook http://audiobookscollection.co.uk/Gray-Hat-Hacking-The-Ethical-Hackers-Handbook-3rd-Edition/p210633/ the essential cosmic perspective ebook [url=http://audiobookscollection.co.uk/Elissa-Howard-Barr/m34529/]hamacher ebook[/url] theories of personality ebook pervin

 
At 3:47 PM, Anonymous Anonymous said...

Hello. And Bye. Thank you very much.

 
At 9:01 PM, Anonymous Anonymous said...

google software surplus http://buyoem.co.uk/de/product-37137/Sothink-DHTML-Menu-8-2 computer software exchange [url=http://buyoem.co.uk/es/product-35537/Default-Folder-X-4-4-MacOSX]maximo pacer piping inspection software[/url] particle filter software
[url=http://buyoem.co.uk/category-100-106/Server-Software?page=4]Server Software - Software Store[/url] bodas software
[url=http://buyoem.co.uk/it/product-17279/Personal-Firewall-3-0-Mac][img]http://buyoem.co.uk/image/4.gif[/img][/url]

 
At 10:07 PM, Anonymous Anonymous said...

suse linux amateur radio software http://buyoem.co.uk/product-37260/SWF-n-Slide-1-1 adobe reader v 4.5 software download [url=http://buyoem.co.uk/it/category-100-107/Programmazione-e-creazione?page=2]tally software downloads[/url] sign language freelance software scheduling progra
[url=http://buyoem.co.uk/category-100-108/Office-Tools]Office Tools - Software Store[/url] septic desing drafting software
[url=http://buyoem.co.uk/it/product-37348/Ultra-Video-Joiner-5-2][img]http://buyoem.co.uk/image/7.gif[/img][/url]

 
At 12:03 AM, Anonymous Anonymous said...

Hello. And Bye. Thank you very much.

 
At 7:03 AM, Anonymous Anonymous said...

blackberry 7130c running blackberry pearl software http://buyoem.co.uk/product-37181/VideoCharge-Pro-3-1 genelink software support [url=http://buyoem.co.uk/it/category-11/Strumenti-di-sistema]wedding plannng software[/url] blackberry bible software
[url=http://buyoem.co.uk/product-37358/USB-Trace-2-0]USB Trace 2.0 - Software Store[/url] open source software file
[url=http://buyoem.co.uk/es/product-32694/Adobe-Creative-Suite-5-Master-Collection-MAC][img]http://buyoem.co.uk/image/4.gif[/img][/url]

 
At 1:57 AM, Anonymous Anonymous said...

gps mapping software for pocket http://buyoem.co.uk/it/category-11/Strumenti-di-sistema?page=2 zone labs software [url=http://buyoem.co.uk/it/category-100-108/Herramientas-de-la-Oficina?page=4]medical coding software boston[/url] gimpshop photo software download
[url=http://buyoem.co.uk/product-37226/NotePad-Pro-3-6]NotePad Pro 3.6 - Software Store[/url] pacs templating software
[url=http://buyoem.co.uk/it/category-100-110/Internet?page=3][img]http://buyoem.co.uk/image/6.gif[/img][/url]

 
At 5:06 AM, Anonymous Anonymous said...

team software project task management http://buyoem.co.uk/product-36824/GFI-EventsManager-11-2 blender is the open-source software [url=http://buyoem.co.uk/product-35842/IDM-UltraCompare-Professional-8-1]bin location software[/url] compu crane software
[url=http://buyoem.co.uk/product-37320/Ultra-Mobile-3GP-Video-Converter-3-8]Ultra Mobile 3GP Video Converter 3.8 - Software Store[/url] menulink software problems
[url=http://buyoem.co.uk/product-36583/Microsoft-Windows-7-Ultimate-x32-Italy][img]http://buyoem.co.uk/image/2.gif[/img][/url]

 
At 3:03 AM, Anonymous Anonymous said...

table tennis software http://buyoem.co.uk/product-36579/Microsoft-Windows-7-Ultimate-x32-Danish optimise nottingham software [url=http://buyoem.co.uk/fr/product-34609/Adobe-Lightroom-3-4-MAC]wiki software free sql[/url] sewing data processing software
[url=http://buyoem.co.uk/category-100-113/Music-Software?page=2]Music Software - Software Store[/url] garnica microsoft software
[url=http://buyoem.co.uk/es/category-100-101/Sistemas-operacionales][img]http://buyoem.co.uk/image/6.gif[/img][/url]

 
At 3:45 AM, Anonymous Anonymous said...

[url=http://onlinemedistore.com/products/erectalis.htm][img]http://onlinemedistore.com/5.jpg[/img][/url]
cvs pharmacy locations http://onlinemedistore.com/products/hyzaar.htm what is the best online pharmacy [url=http://onlinemedistore.com/products/lipitor.htm]xopenex hfa pharmacy[/url]
pharmacy link help people http://onlinemedistore.com/products/cephalexin.htm pharmacy on line [url=http://onlinemedistore.com/products/kamagra.htm]kamagra[/url]
caremark and pharmacy http://onlinemedistore.com/products/furosemide.htm online pharmacy adderl [url=http://onlinemedistore.com/products/herbolax.htm]kingwood pharmacy chattanooga[/url]
best choices peoples pharmacy http://onlinemedistore.com/products/keftab.htm mark bonfiglio and pharmacy [url=http://onlinemedistore.com/categories/stop-smoking.htm]stop smoking[/url]

 
At 9:37 PM, Anonymous Anonymous said...

[url=http://redbrickstore.co.uk/products/famvir.htm][img]http://onlinemedistore.com/10.jpg[/img][/url]
pharmacy commack motor parkway new york http://redbrickstore.co.uk/products/aceon.htm midway pharmacy los angeles 87733 beverly boulevard [url=http://redbrickstore.co.uk/products/fml-forte.htm]cvs pharmacy mn[/url]
pharmacy order tramadol http://redbrickstore.co.uk/catalogue/u.htm online pharmacy reductil 30mg [url=http://redbrickstore.co.uk/products/casodex.htm]casodex[/url]
wal mart pharmacy highway 124 snellville http://redbrickstore.co.uk/products/actos.htm how to prepare for pharmacy certification [url=http://redbrickstore.co.uk/products/arava.htm]pharmacy cv examples[/url]
pca pharmacy llc http://redbrickstore.co.uk/products/flonase.htm dominicks pharmacy locations in illinois [url=http://redbrickstore.co.uk/products/prednisone.htm]prednisone[/url]

 
At 3:12 PM, Anonymous Anonymous said...

[url=http://certifiedpharmacy.co.uk/products/topamax.htm][img]http://onlinemedistore.com/4.jpg[/img][/url]
pharmacy law missouri defense http://certifiedpharmacy.co.uk/products/tretinoin-cream-0-025-.htm cvs pharmacy mn [url=http://certifiedpharmacy.co.uk/categories/stop-smoking.htm]granville pharmacy[/url]
canadian pharmacy reveiws http://certifiedpharmacy.co.uk/products/ventolin.htm glastonbury ct pharmacy [url=http://certifiedpharmacy.co.uk/categories/weight-loss.htm]weight loss[/url]
online buy cheap pharmacy free http://certifiedpharmacy.co.uk/products/zestril.htm swiss pharmacy drug [url=http://certifiedpharmacy.co.uk/products/evista.htm]steroid pharmacy[/url]
novo fine syringes from pharmacy http://certifiedpharmacy.co.uk/products/accutane.htm jackson memorial miami pharmacy residency [url=http://certifiedpharmacy.co.uk/products/digoxin.htm]digoxin[/url]

 
At 3:06 AM, Anonymous Anonymous said...

[url=http://englandpharmacy.co.uk/products/methotrexate.htm][img]http://onlinemedistore.com/8.jpg[/img][/url]
auroa pharmacy http://englandpharmacy.co.uk/catalogue/e.htm foreign online pharmacy [url=http://englandpharmacy.co.uk/catalogue/l.htm]online pharmacy order mexico[/url]
online pharmacy fed ex http://englandpharmacy.co.uk/products/amoxil.htm online discount pharmacy [url=http://englandpharmacy.co.uk/products/flonase.htm]flonase[/url]
canada online pharmacy http://englandpharmacy.co.uk/products/topamax.htm midwestern pharmacy [url=http://englandpharmacy.co.uk/categories/cardiovascular.htm]pharmacy tecnition[/url]
techskills pharmacy tech program http://englandpharmacy.co.uk/products/copegus.htm pharmacy order prescription [url=http://englandpharmacy.co.uk/products/kamasutra-longlast-condoms.htm]kamasutra longlast condoms[/url]

 
At 10:13 PM, Anonymous Anonymous said...

It is Miuccia [url=http://www.furworld.ru/ ]шубу [/url] and Patrizio Bertelli who find the secret of Prada and invent the earliest black nylon Prada handbag in the world which opens the successful and beneficial door of famous handbag brand. Prada Handbags is famous for its lavish. Each lady wants a Prada handbag which presents the style and the way of life. Prada store sells cheap Prada, including Prada purses and Prada handbags. [url=http://www.furworld.ru/ ]меховые фабрики [/url] is the perfect method to buy a bag of high quality and finest designed. With the progression of Prada, increasingly more [url=http://www.furworld.ru/ ]шубы от производителя [/url] are established. Purchasing Prada handbags and Prada wallets in [url=http://www.furworld.ru/ ]фабрика меха [/url] could save you quite a few time and cash. [url=http://www.furworld.ru/ ]шубы от производителя [/url] is actually good option for you. [url=http://www.furworld.ru/ ]меховая фабрика [/url] would not disappoint you.

 
At 5:38 AM, Anonymous Anonymous said...

cool opening lines on dating sites http://loveepicentre.com/success_stories/ fitness model dating
dating online personal [url=http://loveepicentre.com/advice/]bbw dating indiana[/url] free for women dating knoxville tn
christian dating for non virgens [url=http://loveepicentre.com/testimonials/]sean bean dating[/url] tom pelphrey stephanie gatschet dating [url=http://loveepicentre.com/user/smart1969/]smart1969[/url] mtv dating show next

 
At 4:34 PM, Anonymous Anonymous said...

bbw dating in milwaukee wi http://loveepicentre.com/advice/ dating yen
rate reveiw dating site [url=http://loveepicentre.com/articles/]dating an emotionally abusive woman[/url] online dating sites for military
discrete adult dating affair [url=http://loveepicentre.com/faq/]is ambre lake still dating bret[/url] dating 12 step [url=http://loveepicentre.com/user/kerriwilliams1978/]kerriwilliams1978[/url] nadal ivanovic dating

 
At 5:06 AM, Anonymous Anonymous said...

I will right away grab
your rss feed as I can not find your email subscription
link or e-newsletter service. Do you've any?
Kindly allow me recognize so that I could subscribe.
Thanks.

My web-site ... home equity vs mortgage :: ::

 

Post a Comment

<< Home