I have a google analytics script to be added to a webmap. As you know, it's a script that needs to run once for every access. Can I use the "Attach code" functionality to collect statistics on the webmap?
I don't think you can use 'Attach Code' for that according to Mike Minami. Have you tried adding the script when modifying the title or header? You can include some html code when changing the title.
Joseph Jose - there is no support for attaching or running code from a web map.
Reynald de Castro - your idea won't work as we strip out or escape HTML that can be potentially malicious.
Thanks,
Mike