question

James Y. avatar image
James Y. asked ·

Dynatrace API . EnterAction

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

dashboarddynatrace saasRUMscripting
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Sebastian K. avatar image
Sebastian K. answered ·
Are you sure that there are no JS exceptions during executing this JS code? Can you check it in application

on browser console?

Sebastian

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

James Y. avatar image
James Y. answered ·

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


Cheers


1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

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

Sebastian

0 Likes 0 · ·
James Y. avatar image
James Y. answered ·

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

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

James Y. avatar image
James Y. answered ·

Yes... other actions are visible tx

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Sebastian K. avatar image
Sebastian K. answered ·
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

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

James Y. avatar image
James Y. answered ·

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

4 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

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

0 Likes 0 · ·

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



0 Likes 0 · ·

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

0 Likes 0 · ·

tx! WIl try

0 Likes 0 · ·
James Y. avatar image
James Y. answered ·

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?

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Space Topics

mobile monitoring dotnet synthetic monitoring reports iis chat kubernetes servicenow amazon web services mysql mainframe rest api errors cassandra dashboard oneagent sdk cmc application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo syntheticadvisory activegate ip addresses auto-detection high five award oracle hyperion webserver uem usql iib test automation license web performance monitoring ios news migration management zones index ibm mq web services notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming javascript appmon ai synthetic classic availability tipstricks automation extensions diagnostic tools session replay permissions davis assistant faq documentation problem detection http monitors server easytravel apdex aws-quickstart network docker tags and metadata cloud foundry google cloud platform synthetic monitoring process groups account usability dynatrace saas gui paas openshift key user actions administration user actions postgresql synthetic locations oneagent security Dynatrace Managed user management custom python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting NGINX action naming linux nam installation masking error reporting database mission control jmeter recorder apache mobileapp RUM php threshold azure purepath davis scripting agent aix nodejs android