Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:27 Go to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 107
Registered: July 2009
Location: korea
Senior Member

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 10:57 Go to previous messageGo to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
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 13:19 Go to previous messageGo to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 107
Registered: July 2009
Location: korea
Senior Member

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 14:13 Go to previous message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 107
Registered: July 2009
Location: korea
Senior Member

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: Fri Apr 26 09:45:23 GMT 2024

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

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

Back to the top