Search Unity

measurement protocol for apps

Discussion in 'Android' started by frigorifico, Sep 29, 2014.

  1. frigorifico

    frigorifico

    Joined:
    Sep 5, 2013
    Posts:
    37
    Hi all,

    I am trying to implement google measurement protocol, because I have my app in IOS, Android and WP I really don’t want to have to use 3 different SDK and since, technically, the measurement protocol would only need to use WWW method it would work in all OS the same.

    But I cannot get it to work.

    In google analytics I did a new property and selected “app for mobile” and filed the mandatory fields.

    In my app I added the code:
    Code (CSharp):
    1. url =  http://www.google-analytics.com/collect?v=1&ul=en-us&t=appview&sr=1095x616&an=words&a=448166238&tid=UA-XXXXXXXX-1&aid=pt.s4y.letters4you&cid=4c49286306ef003fd221512ae8fc1e8afcd2f8c0&_u=.sB&av=1&_v=ma1b3&cd=Main+Menu&qt=2500&z=185
    2.  
    3. WWW request = new WWW(url);
    The tid=UA-XXXXXXXX-1 -> the XXXX is my id number
    The request returns -> 200 witch I think is the code for "all ok" but in google analytics nothing works


    In advance, thanks for the help guys