Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

District Mapping (SC-1373)

...

Will be triggered when the user clicks submits his location.

{

  "edata": {
"type": "CLICK",
"subtype": "device-profile-user-declared",
"id": "user-state-districtConfimation",
"pageid": "profile",
}
}

Possible values of fields -

...

  • "device-profile-user-declared" - the suggestion is based on the device profile and the user has not changed suggested location.
  • "device-profile-user-declared-updated" - the suggestion is based on the device profile and the user has changed location.
  • "device-profile-ip-location" - the suggestion is based on the IP location and the user has not changed the suggested location.
  • "device-profile-ip-location-updated" - the suggestion is based on the IP location and the user has changed location.
  • "user-profile" - the suggestion is based on the user location and the user has not changed the suggested location.
  • "user-profile-updated" - the suggestion is based on the user location and the user has changed the suggested location.

2. pageid - which route the popup is loaded.
   example - "profile"


Impression Event -

Will be trigged when location popup is flashing up on the screen.

{
context: {
env: 'user-location',
cdata: [{id: 'user:state:districtConfimation', type: 'Feature'},
{id: 'SC-1373', type: 'Task'}
]
},
edata: {
type: 'view',
pageid: "profile",
uri: "/profile", // route from which popup is visible to user.
}
};

Telemetry log event - 

Will be triggered for API calls to update device or user location. For error and success, both cases these telemetries should be generated. 

{
"edata": {
"type": "update-location", // Required. Type of log (system, process, api_access, api_call, j
"level": "ERROR", // Required. Level of the log. TRACE, DEBUG, INFO, WARN, ERROR, FA
"message": "Updation of device profile failed", // Required. Log message
"pageid": "profile", // Optional. Page where the log event has happened
}
}


Possible values of fields -

...

  • "Updation of device profile failed"  
  • "Updation of device profile success"
  • "Updation of user profile success"
  • "Updation of user profile failed"

3. pageid - which route the popup is loaded.
   example - "profile"

Teacher-ID Verification (SC-1349)

...

Code Block
languagejs
titleImpression
collapsetrue
{
      "eid": "IMPRESSION",
      "ets": 15755366394241575542490098,
      "ver": "3.0",
      "mid": "IMPRESSION:295e3054a98a8004e38c58f6bb5174a604a571d699d378b3db912ad9ab026820",
      "actor": {
        "id": "c79daa2830ac4ca6-423f20b4-422b4e09-b3bb82cc-e0b261f2c6e506758b6e624c",
        "type": "User"
      },
      "context": {
        "channel": "0128261234530222089301285019302823526477",
        "pdata": {
          "id": "stagingdev.dikshasunbird.portal",
          "ver": "2.6.0",
          "pid": "sunbird-portal"
        },
        "env": "user-verification",
        "sid": "uPbfJt7ZWfRPQCc8p31omxaVHM2ph_ak",YieKCuJsgkgt0_hyc5i_GzGKeGlMeKrR",
        "did": "bfb7c01a5fd1fca853a6d22e64e38db3",
        "cdata": [
          {
            "id": "user:state:teacherId",
            "type": "Feature"
          },
          {
            "id": "SC-1349",
            "didtype": "4c5539d54424a290856c7006228e7551",
Task"
          }
        ],
        "rollup": {
          "cdatal1": ["01285019302823526477"
        	]},
        "uid": "c79daa2830ac4ca6-423f20b4-422b4e09-b3bb82cc-e0b261f2c6e506758b6e624c"
      },
      "object": {
        
      },
      "tags": [
        "0128261234530222089301285019302823526477"
      ],
      "edata": {
        "type": "view",
        "pageid": "user-verification-popup",
        "uri": "/resourceslearn",
      }
 
  }

Following Intrect Events for each button click

...