Versions Compared

Key

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

District Mapping (SC-1373)

Jira ID - 

Jira Legacy
serverSystem JIRA
serverId2207a759-5bc8-39c5-9cd2-aa9ccc1f65dd
keySC-1373

User location-DeviceLocation Telemetry - 

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 -

1.subtype

  • "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.

...

District Mapping (SC-1373)

Jira ID - 

Jira Legacy
serverSystem JIRA
serverId2207a759-5bc8-39c5-9cd2-aa9ccc1f65dd
keySC-1373

User location-DeviceLocation Telemetry - 

Will be triggered when the user clicks submits his location.

{

  "edata": {
"type": "location-changed/location-unchanged",
"subtype": "state_dist_changed/state_changed/dist_changed",
"id": "submit-clicked",
"pageid": "location-popup",
}
}

Possible values of fields -

1.type

  • "location-changed" - if location is changed.
  • "location-unchanged" - if location is un changed.

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: "profilelocation-popup",
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": "profilelocation-popup", // Optional. Page where the log event has happened
}
}


Possible values of fields -

...

  • "ERROR" :   When api fails.
  • "SUCCESS" : When API is success.

2.message 

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

...

  • .

Teacher-ID Verification (SC-1349)

Impression Event when the popup is visible

{
Code Block
languagejs
titleImpression
collapsetrue
titleImpression
collapsetrue
{
      "eid": "IMPRESSION",
      "ets": 1575542490098,
      "ver": "3.0",
      "mid": "IMPRESSION:04a571d699d378b3db912ad9ab026820",
      "actor": {
        "eidid": "IMPRESSION30ac4ca6-20b4-4e09-82cc-06758b6e624c",
        "etstype": 1575536639424 "User"
      },
      "vercontext": "3.0", {
        "midchannel": "IMPRESSION:295e3054a98a8004e38c58f6bb5174a601285019302823526477",
        "actorpdata": {
          "id": "c79daa28-423f-422b-b3bb-e0b261f2c6e5dev.sunbird.portal",
          "typever": "User"
  2.6.0",
   },       "contextpid": {"sunbird-portal"
        "channel": "01282612345302220893"},
        "pdataenv": {
 "user-verification",
        "idsid": "staging.diksha.portalYieKCuJsgkgt0_hyc5i_GzGKeGlMeKrR",
          "verdid": "2.6.0bfb7c01a5fd1fca853a6d22e64e38db3",
          "pidcdata": "sunbird-portal" [
          {
   },         "envid": "user-verification:state:teacherId",
            "sidtype": "uPbfJt7ZWfRPQCc8p31omxaVHM2ph_akFeature",
         "did": "4c5539d54424a290856c7006228e7551" },
        "cdata": [ {
     		{         		"id": 'user:state:teacherId',"SC-1349",
         		type: 'Feature'   "type": "Task"
          		},
        		{],
        		id"rollup": 'SC-1349',{
        		type: 'Task'
   "l1": "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

...

Code Block
languagejs
titleIntrect event for NO button Click
collapsetrue
{ 
         "eid":"INTERACT",
         "ets":1575536161454,
         "ver":"3.0",
         "mid":"INTERACT:dbabb17de9891a20d9a70820fc7eaa10",
         "actor":{ 
            "id":"30ac4ca6-20b4-4e09-82cc-06758b6e624c",
            "type":"User"
         },
         "context":{ 
            "channel":"01285019302823526477",
            "pdata":{ 
               "id":"dev.sunbird.portal",
               "ver":"2.6.0",
               "pid":"sunbird-portal"
            },
            "env":"Courseuser-verification",
            "sid":"uWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
            "did":"1df8f400acfbd15c2e8baedb0b5e9928",
            "cdata": [
      			{
        			id: 'user:state:teacherId',
        			type: 'Feature'
      			},
      			{
        			id: 'SC-1349',
        			type: 'Task'
      			}
    		],
            "rollup":{ 
               "l1":"01285019302823526477"
            },
            "uid":"30ac4ca6-20b4-4e09-82cc-06758b6e624c"
         },
         "object":{ 
         },
         "tags":[ 
            "01285019302823526477"
         ],
         "edata":{ 
            "id":"ext-user-verify-reject",
            "type":"click",
            "pageid":"user-verification-popup"
         }
  }

...

Code Block
languagejs
titleIntrect Event for the Yes button click
collapsetrue
{ 
         "eid":"INTERACT",
         "ets":1575536161454,
         "ver":"3.0",
         "mid":"INTERACT:dbabb17de9891a20d9a70820fc7eaa10",
         "actor":{ 
            "id":"30ac4ca6-20b4-4e09-82cc-06758b6e624c",
            "type":"User"
         },
         "context":{ 
            "channel":"01285019302823526477",
            "pdata":{ 
               "id":"dev.sunbird.portal",
               "ver":"2.6.0",
               "pid":"sunbird-portal"
            },
            "env":"Courseuser-verification",
            "sid":"uWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
            "did":"1df8f400acfbd15c2e8baedb0b5e9928",
            "cdata": [
      			{
        			id: 'user:state:teacherId',
        			type: 'Feature'
      			},
      			{
        			id: 'SC-1349',
        			type: 'Task'
      			}
    		],
            "rollup":{ 
               "l1":"01285019302823526477"
            },
            "uid":"30ac4ca6-20b4-4e09-82cc-06758b6e624c"
         },
         "object":{ 
         },
         "tags":[ 
            "01285019302823526477"
         ],
         "edata":{ 
            "id":"ext-user-verify-confirm",
            "type":"click",
            "pageid":"user-verification-popup"
         }
  }

...

Code Block
languagejs
titleSubmit Button intract event
collapsetrue
{ 
         "eid":"INTERACT",
         "ets":1575536161454,
         "ver":"3.0",
         "mid":"INTERACT:dbabb17de9891a20d9a70820fc7eaa10",
         "actor":{ 
            "id":"30ac4ca6-20b4-4e09-82cc-06758b6e624c",
            "type":"User"
         },
         "context":{ 
            "channel":"01285019302823526477",
            "pdata":{ 
               "id":"dev.sunbird.portal",
               "ver":"2.6.0",
               "pid":"sunbird-portal"
            },
            "env":"Courseuser-verification",
            "sid":"uWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
            "did":"1df8f400acfbd15c2e8baedb0b5e9928",
            "cdata": [
      			{
        			id: 'user:state:teacherId',
        			type: 'Feature'
      			},
      			{
        			id: 'SC-1349',
        			type: 'Task'
      			}
    		],
            "rollup":{ 
               "l1":"01285019302823526477"
            },
            "uid":"30ac4ca6-20b4-4e09-82cc-06758b6e624c"
         },
         "object":{ 
         },
         "tags":[ 
            "01285019302823526477"
         ],
         "edata":{ 
            "id":"ext-user-verify-submit",
            "type":"click",
            "pageid":"user-verification-popup"
         }
  }

...

Code Block
languagejs
titleOK click on error pop-up
collapsetrue
{
  "eid": "INTERACT",
  "ets": 1575536161454,
  "ver": "3.0",
  "mid": "INTERACT:dbabb17de9891a20d9a70820fc7eaa10",
  "actor": {
    "id": "30ac4ca6-20b4-4e09-82cc-06758b6e624c",
    "type": "User"
  },
  "context": {
    "channel": "01285019302823526477",
    "pdata": {
      "id": "dev.sunbird.portal",
      "ver": "2.6.0",
      "pid": "sunbird-portal"
    },
    "env": "Courseuser-verification",
    "sid": "uWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
    "did": "1df8f400acfbd15c2e8baedb0b5e9928",
    "cdata": [
      		{
        		id: 'user:state:teacherId',
        		type: 'Feature'
      		},
      		{
        		id: 'SC-1349',
        		type: 'Task'
      		}
    ],
    "rollup": {
      "l1": "01285019302823526477"
    },
    "uid": "30ac4ca6-20b4-4e09-82cc-06758b6e624c"
  },
  "object": {
    
  },
  "tags": [
    "01285019302823526477"
  ],
  "edata": {
    "id": "ext-user-verify-fail",
    "type": "click",
    "pageid": "user-verification-popup"
  }
}

...

Code Block
languagejs
titleOk Button click on the success pop-up
collapsetrue
{
  "eid": "INTERACT",
  "ets": 1575536161454,
  "ver": "3.0",
  "mid": "INTERACT:dbabb17de9891a20d9a70820fc7eaa10",
  "actor": {
    "id": "30ac4ca6-20b4-4e09-82cc-06758b6e624c",
    "type": "User"
  },
  "context": {
    "channel": "01285019302823526477",
    "pdata": {
      "id": "dev.sunbird.portal",
      "ver": "2.6.0",
      "pid": "sunbird-portal"
    },
    "env": "Courseuser-verification",
    "sid": "uWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
    "did": "1df8f400acfbd15c2e8baedb0b5e9928",
    "cdata": [
      	{
        	id: 'user:state:teacherId',
        	type: 'Feature'
      	},
      	{
        	id: 'SC-1349',
        	type: 'Task'
      	}
    ],
    "rollup": {
      "l1": "01285019302823526477"
    },
    "uid": "30ac4ca6-20b4-4e09-82cc-06758b6e624c"
  },
  "object": {
    
  },
  "tags": [
    "01285019302823526477"
  ],
  "edata": {
    "id": "ext-user-verify-success",
    "type": "click",
    "pageid": "user-verification-popup"
  }
}

...