Here it is: www.google-analytics.com/collect?v=1&tid=UA-XXXX-Y...
Now I am going to break it out:
First part:
www.google-analytics.com/collect?v=1 - beginning of the URL it will always be the same.
Second part:
&tid=UA-XXXX-Y - This is your UA number
Third part:
&cid=123 - this stands for client ID and for now we can make it anything we want, in the later posts I am going to talk about some more advanced stuff you can do with it.
Fourth part:
&t=pageview - this tells GA that you are going to fire off a page view when you trigger the URL
Fifth part:
&dp=%2Fanypage - this tells GA that the pageview, as mentioned above is for the deep page called /anypage.
Note: you need to use the URL encoding for spaces and symbols
This is one for events:
www.google-analytics.com/collect?v=1&tid=UA-XXXX-...
www.google-analytics.com/collect?v=1&tid=UA-XXXX-Y... - the same as I mentioned above
&t=event - GA is going to track an event
&ec=home%20movement - the event category is home movement
&ea=door%20open - the event action is door open.
&el=bedroom - the event label is bedroom
Check out the Measurement Protocol Developer Guide for more ways to write the measurement protocol.
Now try it yourself! Put the your UA number in the URL and put it into a browser window.
Now that I showed you how it works think about the uses for all the different kinds of sensors out there.