question

Nitin D. avatar image
Nitin D. asked ·

Can we get javascript ADK reported value in Business Transaction Splitting ?

Hi Team,

Using the Javascript ADK, we have logged some information on USER Actions purepath. Now we want to capture these information and want to use in splitting.


Will it be possible to get the value of Departure/Arrival/Date using measure ?


appmon 7business transactionmeasuresuser actionsadk
1566385948336.png (28.1 KiB)
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.

Dave M. avatar image
Dave M. answered ·
2 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.

Thanks @Dave M.

I have used "reportString" to get the data using below javascript ADK code.


<script type="text/javascript">            
     if (typeof window.dT_ != 'undefined'){                
           var dT_Clientstring = 'TestError';                    
           dynaTrace.reportString('BookingError', dT_Clientstring); 
     }        
</script>

I have created the BT as per below and it is capturing the data.

0 Likes 0 · ·
1567079543927.png (38.1 KiB)
1567079555058.png (48.7 KiB)

So glad it worked for you! Good job!

0 Likes 0 · ·
Dave M. avatar image
Dave M. answered ·

Also, isn't "Customer selected" the first part of the User Action Name rather than a key for JavaScript Variable?

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.

I m logging information using 'enterAction' function as below.

dynaTrace.enterAction('Customer selected product details:', productDetails, null, null);


Yes, "Customer selected" the first part of the User Action Name

0 Likes 0 · ·
Dave M. avatar image
Dave M. answered ·

My only suggestion is to not use a space inside the key and see if that helps any. If you continue to have issues, I would open a support ticket.

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.

Dave M. avatar image
Dave M. answered ·

Does the "JavaScript ADK String Value" measure not work?



createadkmeasure.png (141.9 KiB)
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.

Yes, I have tried with "JavaScript ADK String Value" measure but it didn't work.

I'm not sure, whether my configuration is correct or not?


Her Is the Measure and BT configuration.

0 Likes 0 · ·
1566402159614.png (150.7 KiB)
Sebastian K. avatar image
Sebastian K. answered ·

I’ve had same story year ago and as I remember that was problem with using those values in BT’s. There are no good measure for such case. But in my example those values cames from mobile apps, maybe for web applications there is proper measure. Mobile and web apps has some sort of dedicated measures.

Sebastian

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.

Thanks @sebastian k., In my these values are coming from FE.

0 Likes 0 · ·