I am trying to create a pixel tracker using javascript, and have included the necessary parameters in the url and have included this:
img src="/Documents/myimg.gif?utm_source="myfile"
now, I am unable to understand how to access the parameters on the servlet using java. Could someone help me with this??
I don't have a solid knowledge of java servlet but i believe the same idea will work.
In PHP i would just create a directory with a script that return the content type image/* so for instance
/Document/index.phpwith the following contentTo make the url just like what you have currently - .htaccess will help to rewrite the url to look pretty much like anything, even take multiple images/actions with
switchstatement orifon the back-endAgain this is for PHP but you should get an idea.