Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How can i add Google Analytics?
How can i add Google Analytics? [message #1406211] Sat, 09 August 2014 06:27 Go to next message
Eclipse UserFriend
How can i add Google Analytics to the RAP Appplication?
thanks.
Re: How can i add Google Analytics? [message #1406542 is a reply to message #1406211] Sun, 10 August 2014 06:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi, I added the ga.js the the main html landing page.
then I can do something like
public static void track(String action, String event) {
		JavaScriptExecutor executor = RWT.getClient().getService(JavaScriptExecutor.class);
		StringBuffer js = new StringBuffer();
		// js.append("console.log('handler ');");
		js.append("_gaq.push(['_trackEvent', '");
		js.append(action + ":" + event);
		js.append("']);");
		executor.execute(js.toString());

	}
Re: How can i add Google Analytics? [message #1406573 is a reply to message #1406542] Sun, 10 August 2014 09:19 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your reply.
But, Please explain in more detail?

thanks you.
Re: How can i add Google Analytics? [message #1406958 is a reply to message #1406573] Mon, 11 August 2014 10:13 Go to previous message
Eclipse UserFriend
thank for all.

http://hangumkj.blogspot.kr/2014/08/eclipse-rap-google-analytics.html
Previous Topic:Missing Payload for handleOperation() Method when using Internet Explorer 8
Next Topic:Deprecation of PhaseListeners
Goto Forum:
  


Current Time: Thu Jul 03 20:23:50 EDT 2025

Powered by FUDForum. Page generated in 0.05072 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top