javascript - How to implement a Tracking Pixel that counts the Page Views? -


i want implement tracking pixel in pages , email this:

<img src="someurl/tracking.js"> 

what have write in tracking.js in order code executed? can use jquery inside code?

the src attribute of img tag can either absolute image url or relative image url. cannot run arbitrary javascript way. use instead

<script src="someurl/tracking.js"/> 

Comments