cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace API . EnterAction

jamesskyoung
Participant

Hi,


I'm trying to use dtrum.enterAction. I know it's getting executed. (Basically I want to send:


dtrum.enterAction('change page', 'new page name' null, 'info')


But I can't see any thing when I select the application. Is this supposed to appear under user actions? Somewhere else? And is the format correct?



Many thanks,



James


12 REPLIES 12

skrystosik
DynaMight Guru
DynaMight Guru
Are you sure that there are no JS exceptions during executing this JS code? Can you check it in application

on browser console?

Sebastian


Regards, Sebastian

jamesskyoung
Participant

Hi Sebastian -- tx for the quick reply .. No JS errors at all. Assume this is supposed to appear on custom user actions?


Cheers



As I understand, regular user actions from this application are visible without any issue?

Sebastian


Regards, Sebastian

jamesskyoung
Participant

Hi I did check on the console... no errors.... tx


jamesskyoung
Participant

Yes... other actions are visible tx


skrystosik
DynaMight Guru
DynaMight Guru
Second field on this method is user action type, I don’t have access to documentation but it’s very possible that it need to be alphanumeric without spaces. Try change this value to something like newPageName. But if this is action type it should rather be pageSwitch or something like that.


Sebastian


Regards, Sebastian

jamesskyoung
Participant

HI,

Tried everything I can think of.. Tried identifyUser as well.. nothing seems to reach my dashboard. Checked the network traffic as per the troubleshooting guide.. all looks fine.

Current code: Fired in response to a click on a href

dtrum.identifyUser('jamesskyoung')

dtrum.enterAction('act-change-page', 'change', null, '/mygreatnewpage');


Cheers,



James


Do not put url on last statement of this action, leave there info. It should be part of user action name, there spacecraft are allowed


Regards, Sebastian

How about an example?


Just provide me with the syntax.. I just want to enter an action of change of page.. to 'this' url

WIll this work?

dtrum.enterAction('/mygreatnewpage', 'change', null, 'info');


Thanks,


James




Should, try it but as action name you can put "Change page /mygreatnewpage", it would be easier to find it later. If this will not work for you I'll try some tests on my systems during weekend.

Sebastian


Regards, Sebastian

tx! WIl try


jamesskyoung
Participant

I see the actions being fired via the network tab though... and as stated.. inspected them. Is there anything else I need to do to receive these actions?


Featured Posts