cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dispatcher - call script or inject script into page

Former Member
0 Kudos

Hi,

We need to execute a javascript into every html paged called from NW ABAP or JAVA for web analytics tracking purposes. The ideal would be to inject this inside the <head></head> tags.  For example: <script src="//xtrack.mycompany.com/custom.js"></script>


I was wondering if the Web Dispatcher might be able to do this?   I was looking at the icm/HTTP/mod_<xx> parameter to see if that could be used in some way, but not sure if this is an option.


Any ideas how we can do this?


Thanks!



Accepted Solutions (0)

Answers (1)

Answers (1)

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Adriaan,

As far as I know, it is not possible to manipulate the HTML response with the Web Dispatcher.

With the icm/HTTP/mod_X parameter you can manipulate HTTP headers, the URL, cookies, but not the HTML content.

Regards,

Isaías