google analytics - UserId, CID in measurement protocol -


The Measurement Protocol To identify a user returning a new user, can we use the User ID field ( That is, we can make the hash user name or other identifier unique for the user and connect it with a specific user. In this way, we can effectively return the users by creating new users.

CID But the question - In case of CID session, specially incentive the user's session. Do we have to manually monitor session end to create CID in user session?

< P> Pls explanation

After a long time, but it can help other people .. .

My understanding is that the CID references the device while the user-id is a Anit user manual gives.

So basically, the same Client ID or will be connected to the same user in the hit GA with the user ID (though see).

" A client ID represents a unique device / browser, where the User ID represents a unique user who can access many devices / browsers with your device. / Em> "From

A group of A is represented by both hits:

  • Less than 30 minutes away from previous hit
  • One Be the only source / media / campaign
  • having the same CID

For dual form does not need to keep an eye on the end of the season, you can always send the same CID, will handle the Google session division. If your session has a different understanding than Google, then you only need to end the session.

So in your case, I will generate a CID for each device that is connected to the service and Google

If you use a User ID for cross-device tracking , Google will consider all sessions with a single user ID as a single user. Example: User comes to your website on A device X (CID = X)

  • User comes to your website on A device 2 hours later (CID = X)

    < Ul>
  • li>

    At that time Google will understand 2 sessions for 1 user.

    • A user logs on to your website at X (CID = X, UID = A)
    • The user arrives at his mobile app on A device (CID = Y)
    • User logs on your mobile app (CID = Y, UID = A)

    When enabled, UserID A is on device All sessions will be publicized so that Google can understand 3 sessions, 2 devices, 1 user.

    Returns ng users are calculated with that scheme, here user A has created 1 new visit and 2 return visits.

    I am currently working with that pattern and everything looks fine but this is a passionate topic and if someone knows better or has comments and advice, I will take them!


  • Comments

    Popular posts from this blog

    import - Python ImportError: No module named wmi -

    Editing Python Class in Shell and SQLAlchemy -

    c# - MySQL Parameterized Select Query joining tables issue -