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": 1575536639424,
      "ver": "3.0",
      "mid": "IMPRESSION:295e3054a98a8004e38c58f6bb5174a6",
      "actor": {
        "id": "c79daa28-423f-422b-b3bb-e0b261f2c6e5",
        "type": "User"
      },
      "context": {
        "channel": "01282612345302220893",
        "pdata": {
          "id": "staging.diksha.portal",
          "ver": "2.6.0",
          "pid": "sunbird-portal"
        },
        "env": "user-verification",
        "sid": "uPbfJt7ZWfRPQCc8p31omxaVHM2ph_ak",
        "did": "4c5539d54424a290856c7006228e7551",
        "cdata": [
      		{
            ]		id: 'user:state:teacherId',
        "uid": "c79daa28-423f-422b-b3bb-e0b261f2c6e5"		type: 'Feature'
      		},
      "object": 		{
        		id: 'SC-1349',
     },       "tags"		type: ['Task'
      		}
 "01282612345302220893"   	],
   ],       "edatauid": {"c79daa28-423f-422b-b3bb-e0b261f2c6e5"
      },
      "typeobject": {
        
      },
      "viewtags",: [
        "pageid": "user-verification",01282612345302220893"
      ],
      "edata": {
        "uritype": "/resourcesview",
      }    "pageid": "user-verification",
        "uri": "/resources",
      }
    }

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":"Course",
            "sid":"uWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
            "did":"1df8f400acfbd15c2e8baedb0b5e9928",
            "cdata": [
      			{
         ]			id: 'user:state:teacherId',
        			type: 'Feature'
   "rollup":{   			},
      			{
      "l1":"01285019302823526477"  			id: 'SC-1349',
         },			type: 'Task'
      			}
     "uid":"30ac4ca6-20b4-4e09-82cc-06758b6e624c"
    		],
    },          "objectrollup":{ 
  
      },          "tagsl1":["01285019302823526477"
            },
 "01285019302823526477"          ] "uid":"30ac4ca6-20b4-4e09-82cc-06758b6e624c"
         },
         "edataobject":{ 
         },
         "idtags":"ext-user-verify-reject",[ 
            "type":"click",01285019302823526477"
         ],
         "pageidedata":"user-verification-popup"{ 
        }    "id":"ext-user-verify-reject",
            "type":"click",
            "pageid":"user-verification-popup"
         }
  }


2. When User clicks on the YES button

Code Block
languagejs
titleIntrect Event for the Yes button click
{ 
         "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":"Course",
            "sid":"uWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
            "did":"1df8f400acfbd15c2e8baedb0b5e9928",
            "cdata": [
      			{
      ],  			id: 'user:state:teacherId',
        			type: 'Feature'
      			},
      "rollup":			{
        			id: 'SC-1349',
        "l1":"01285019302823526477"
			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":"Course",
            "sid":"uWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
            "did":"1df8f400acfbd15c2e8baedb0b5e9928",
            "cdata": [
      			{
      ],  			id: 'user:state:teacherId',
         "rollup":{ 			type: 'Feature'
      			},
      			{
 "l1":"01285019302823526477"       			id: 'SC-1349',
    },    			type: 'Task'
       "uid":"30ac4ca6-20b4-4e09-82cc-06758b6e624c"			}
    		],
    },          "objectrollup":{ 
         },      "l1":"01285019302823526477"
        "tags":[     },
            "01285019302823526477"uid":"30ac4ca6-20b4-4e09-82cc-06758b6e624c"
         ]},
         "edataobject":{ 
            "id":"ext-user-verify-submit"},
            "typetags":"click",[ 
            "pageid":"user-verification-popup01285019302823526477"
         }],
  }

4. When the teacher ID is wrong and a error Modal appears and user clicks on the OK button

Code Block
languagejs
titleOK click on error pop-up
{       "eidedata": "INTERACT",{ 
    "ets": 1575536161454,   "ver": "3.0",   "midid": "INTERACT:dbabb17de9891a20d9a70820fc7eaa10"ext-user-verify-submit",
  "actor": {     "id": "30ac4ca6-20b4-4e09-82cc-06758b6e624c",     "type": "Userclick",
  },    "context": {     "channelpageid": "01285019302823526477",
user-verification-popup"
   "pdata": {     }
 "id": "dev.sunbird.portal",
      "ver": "2.6.0",
      "pid": "sunbird-portal"
    },
    "env": "Course }

4. When the teacher ID is wrong and a error Modal appears and user clicks on the OK button

Code Block
languagejs
titleOK click on error pop-up
{
  "eid": "INTERACT",
  "ets": 1575536161454,
  "ver": "3.0",
    "sidmid": "uWvg13UT2jPih2SIU4IVs4VOOF9F62x2INTERACT:dbabb17de9891a20d9a70820fc7eaa10",
 
  "didactor": "1df8f400acfbd15c2e8baedb0b5e9928{
    "id": "30ac4ca6-20b4-4e09-82cc-06758b6e624c",
    "cdatatype": "User"
[  },
  "context": {
     ]"channel": "01285019302823526477",
    "rolluppdata": {
      "id": "dev.sunbird.portal",
      "ver":      "l1": "01285019302823526477"
    },
    "uid"2.6.0",
      "pid": "sunbird-portal"
    },
    "env": "Course",
    "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"
  }
}

5. On success of the teacher verification the success pop-up is shown and when user clicks on the ok button of this 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"
  },
  "object": {
    

 },   "tagstype": [
    "01285019302823526477User"
  ]},
  "edatacontext": {
    "idchannel": "ext-user-verify-fail",
    "type": "click01285019302823526477",
    "pageidpdata": "user-verification-popup"{
  } }

5. On success of the teacher verification the success pop-up is shown and when user clicks on the ok button of this popup

Code Block
languagejs
titleOk Button click on the success pop-up
collapsetrue
{   "eidid": "INTERACTdev.sunbird.portal",
  "ets": 1575536161454,   "ver": "3"2.6.0",
      "midpid": "INTERACT:dbabb17de9891a20d9a70820fc7eaa10",sunbird-portal"
   "actor": { },
    "idenv": "30ac4ca6-20b4-4e09-82cc-06758b6e624cCourse",
    "typesid": "UseruWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
  },   "contextdid": {"1df8f400acfbd15c2e8baedb0b5e9928",
    "channelcdata": [
"01285019302823526477",     "pdata": 	{
        "	id": "dev.sunbird.portal",'user:state:teacherId',
        "ver": "2.6.0",	type: 'Feature'
      "pid": "sunbird-portal"	},
    },  	{
  "env": "Course",     "sid"	id: "uWvg13UT2jPih2SIU4IVs4VOOF9F62x2",
'SC-1349',
   "did": "1df8f400acfbd15c2e8baedb0b5e9928",     "cdata"	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"
  }
}

...