Page 1 of 1

Google Analytics and TM1 Web

Posted: Mon Feb 29, 2016 7:40 pm
by mcguija
Hi,

Does anyone use Google Analytics to track activity? I know you have to add the Google code snippet. What page(s) should it be added to?

I am using Tm1 web 10.2.2.

Thanks
Jason

Re: Google Analytics and TM1 Web

Posted: Mon Feb 29, 2016 10:48 pm
by lotsaram
might you care to explain exactly what you are trying to do?

Re: Google Analytics and TM1 Web

Posted: Tue Mar 01, 2016 1:56 am
by tomok
You can't do what you want to without hacking the TM1 code behind TM1Web. TM1Web is not a web publishing package. You can't add your own pages to TM1Web. What you do is either utilize the already built navigation page or you create web sheets that TM1Web displays for you. You don't create your own web pages so there is no way to add those Google Analytics widgets to your "page". If you were to delve into the Tomcat pages behind TM1Web you might be able to add them there so that when your web sheets or views are displayed the widget would show up at the bottom. Good luck.

Re: Google Analytics and TM1 Web

Posted: Tue Mar 01, 2016 3:01 am
by Alan Kirk
mcguija wrote: Does anyone use Google Analytics to track activity? I know you have to add the Google code snippet. What page(s) should it be added to?

I am using Tm1 web 10.2.2.
Tomok speaks the truth, as is usual. But even if you could get Google Analytics to run, you won't be able to use to track people creating custom views, for example.

If your intent is to simply track who is using which reports, who is logging in and when, etc, the usual way is to create a cube which tracks your websheets (including the home page, if you have one specified) and have a DBS formula built into each websheet which "phones home" whenever the sheets are recalculated. This will give you some idea of usage patterns. But again, it doesn't track people creating custom views.

Re: Google Analytics and TM1 Web

Posted: Tue Mar 01, 2016 7:28 am
by Elessar
If you want to tract activity in TM1 Application Web, you can use tm1server.log: export it to your SQL (Oracle, MySQL, etc) and make the report counting processes like "}tp_workflow_enter_node", "..save_node" and so on.

Re: Google Analytics and TM1 Web

Posted: Tue Mar 01, 2016 12:21 pm
by tomok
What I didn't mention is that you can bypass TM1Web as your primary web development tool, use whichever one you want like Sharepoint, Wordpress, Drupal, DotNetNuke....., and use the HTML API to embed TM1Web objects into your own pages. This should allow you to use Google Analytics or any other widget you want.

Re: Google Analytics and TM1 Web

Posted: Wed Mar 02, 2016 7:47 pm
by mcguija
Thanks All,

I was hoping it wouldn't be so tricky.

I thought that that maybe i could add it to tm1webapp.js or maybe applications.jsp.

I tired the first on and it does track but only if I do a full F5 refresh, navigating to different sheets doesn't refresh the entire frame it seems.


j.

Re: Google Analytics and TM1 Web

Posted: Wed Mar 02, 2016 9:16 pm
by lotsaram
If you are interested in tracking web view and websheet activity I know that Pulse has this feature (nb I do have an association with Pulse). If you want to track to this level of granularity then you need something that is aware of the internals of the TM1 model itself e.g. the cube views and application entries.