28.04.2021 Views

workingwithdata_ebook_april21_awc2op 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TREATING DATA AS A PRODUCT

What this could look like in practice

We can define what the events coming to your data warehouse look like

before they are even sent by writing a set of rules. For example, the ruleset for

a click event:

{

"element_name": {

"enum": [

"share",

"like",

"submit_email",

"rate",

...

"close_popup”

],

"description": "The name of the element that is clicked"

},

"value": {

"type": ["string", "null"],

"description": "What is the value associated with the click"

},

"element_location": {

"type": ["string", "null"],

"description": "Where on the screen is the button shown eg.

Top, left"

},

"click_error_reason": {

"type": ["string", "null"],

"description": "If the click resulted in an error, what was

the reason eg. Invalid character in text field"

}

}

37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!