I've built Javascript widgets that have been installed on other websites.
How can I use google analytics on my widgets like I would use analytics on a web page to track the traffic?
FYI, the Javascript code for my widgets is created from PHP pages.