Loading ...
Sorry, an error occurred while loading the content.

Re: Google analytics q, setting custome variable's for mobi server side method

Expand Messages
  • Rod Jacka
    Hi Michael, The iOS and Android SDK libraries support this feature but unfortunately the .NET mobile examples do not. You can work out how encode the values
    Message 1 of 3 , Dec 9, 2011
    • 0 Attachment
      Hi Michael,

      The iOS and Android SDK libraries support this feature but unfortunately the .NET mobile examples do not.

      You can work out how encode the values fairly easily by looking at the HTTP transaction using a tool such as Fiddler or Charles Proxy and setting up the code using the standard JavaScript API.

      Unfortunately creating an elegant hack to record this runs the significant risk of Google changing the way that the data is sent and officially crafting your own URL with parameters to send to Google Analytics is definitely not supported.

      However if you are feeling adventurous you can add the utme parameter

      E.g.

      utme=8(Test%20-%20Visitor*Test%20-%20Visit)9(Test%20-%20Visitor*Test%20-%20Visit)11(1*2)

      http://www.google-analytics.com/__utm.gif?utmwv=5.2.2&utms=1&utmn=1072238873&utmhn=testsite.local&utme=8(Test%20-%20Visitor*Test%20-%20Visit)9(Test%20-%20Visitor*Test%20-%20Visit)11(1*2)&utmcs=ISO-8859-1&utmsr=1280x800&utmsc=32-bit&utmul=en-gb&utmje=1&utmfl=11.1%20r102&utmhid=1754392763&utmr=-&utmp=%2Fsample.html&utmac=UA-xxxx-1&utmcc=__utma%3D9676592.1896622804.1323426262.1323426262.1323426262.1%3B%2B__utmz%3D9676592.1323426262.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B&utmu=qQ~

      The value 11(1*2) is set when there is a mix of a visitor level variable AND a session level variable set in the one transaction and if the visitor level variable but is set but not the page level variable it is set to 11(1)

      So as you can see the logic is quite intricate and if Google decide to change the way they do things your code will break.

      I hope that this is useful.

      Best

      Rod Jacka
      Principal Consultant Web Analytics and Marketing Optimisation
      Panalysis
      http://www.panalysis.com
      http://blog.panalysis.com
      http://au.linkedin.com/in/rodjacka

      --- In webanalytics@yahoogroups.com, "mikeespikeee" <mikeespikee@...> wrote:
      >
      > Hi I am trying to find out if anyone has managed to figure out how one would pass through the custom variables to GA when one is doing a server side implementation for mobile devices. I am trying to pass through 3 types of custom variables - so for slot 1 - I am trying to pass through a custom variable that expires on visitor level.
      > Slot 2 I am trying to pass through a value that expires at session level.
      >
      > And it appears that it is pretty undocumented on how you need to encode the string to pass these custom variables through via server side.
      > I am trying to do this while using .net on the server side.
      >
      > Has anyone had any luck in getting this right? or point me in the right direction ?
      >
      > Thanks
      > Michael Walker
      >
    • Rod Jacka
      Hi Michael, Further to my last, there is a place where you can request features for the API and you will find this at
      Message 2 of 3 , Dec 9, 2011
      • 0 Attachment
        Hi Michael,

        Further to my last, there is a place where you can request features for the API and you will find this at
        http://code.google.com/p/analytics-issues/issues/list

        You can vote on an issue by "starring" it and you can add new issues.

        I suggest adding your requirements as an issue if it isn't there already and starring it if it is.

        Best

        Rod Jacka
        Principal Consultant Web Analytics and Marketing Optimisation
        Panalysis
        http://www.panalysis.com
        http://blog.panalysis.com
        http://au.linkedin.com/in/rodjacka



        --- In webanalytics@yahoogroups.com, "Rod Jacka" <rod@...> wrote:
        >
        > Hi Michael,
        >
        > The iOS and Android SDK libraries support this feature but unfortunately the .NET mobile examples do not.
        >
        > You can work out how encode the values fairly easily by looking at the HTTP transaction using a tool such as Fiddler or Charles Proxy and setting up the code using the standard JavaScript API.
        >
        > Unfortunately creating an elegant hack to record this runs the significant risk of Google changing the way that the data is sent and officially crafting your own URL with parameters to send to Google Analytics is definitely not supported.
        >
        > However if you are feeling adventurous you can add the utme parameter
        >
        > E.g.
        >
        > utme=8(Test%20-%20Visitor*Test%20-%20Visit)9(Test%20-%20Visitor*Test%20-%20Visit)11(1*2)
        >
        > http://www.google-analytics.com/__utm.gif?utmwv=5.2.2&utms=1&utmn=1072238873&utmhn=testsite.local&utme=8(Test%20-%20Visitor*Test%20-%20Visit)9(Test%20-%20Visitor*Test%20-%20Visit)11(1*2)&utmcs=ISO-8859-1&utmsr=1280x800&utmsc=32-bit&utmul=en-gb&utmje=1&utmfl=11.1%20r102&utmhid=1754392763&utmr=-&utmp=%2Fsample.html&utmac=UA-xxxx-1&utmcc=__utma%3D9676592.1896622804.1323426262.1323426262.1323426262.1%3B%2B__utmz%3D9676592.1323426262.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B&utmu=qQ~
        >
        > The value 11(1*2) is set when there is a mix of a visitor level variable AND a session level variable set in the one transaction and if the visitor level variable but is set but not the page level variable it is set to 11(1)
        >
        > So as you can see the logic is quite intricate and if Google decide to change the way they do things your code will break.
        >
        > I hope that this is useful.
        >
        > Best
        >
        > Rod Jacka
        > Principal Consultant Web Analytics and Marketing Optimisation
        > Panalysis
        > http://www.panalysis.com
        > http://blog.panalysis.com
        > http://au.linkedin.com/in/rodjacka
        >
        > --- In webanalytics@yahoogroups.com, "mikeespikeee" <mikeespikee@> wrote:
        > >
        > > Hi I am trying to find out if anyone has managed to figure out how one would pass through the custom variables to GA when one is doing a server side implementation for mobile devices. I am trying to pass through 3 types of custom variables - so for slot 1 - I am trying to pass through a custom variable that expires on visitor level.
        > > Slot 2 I am trying to pass through a value that expires at session level.
        > >
        > > And it appears that it is pretty undocumented on how you need to encode the string to pass these custom variables through via server side.
        > > I am trying to do this while using .net on the server side.
        > >
        > > Has anyone had any luck in getting this right? or point me in the right direction ?
        > >
        > > Thanks
        > > Michael Walker
        > >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.