Google analytics on XML file

I would like to add a code from google analytics on my XML file, because I want to track if a movie like or not like.
The ratings is different, I need to know how many people watch a movie and that case can I give the Royalty back…
Someone can help me.
Thanks
F

viewtopic.php?f=34&t=48738&p=332621

The Endless Thanks!
I have this script but I don’t understand where put the code,
Thanks

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 4 4 title 20047 title SD mp4 SD 1500 [http://XXXXXX/XXXX/XXXX.mp4](http://XXXXXX/XXXX/XXXX.mp4) XXXXXX Documentary PG 4800