</Log> In the example code, we want to set a data tag on the home page, page="home". But we aren’t logging a page impression. We want to log an impression of the welcome section. To do so, we pass a logImpression prop into the Log component wrapping the welcome section (along with another data prop, section="welcome"). To make the Log component send an impression of the welcome section, we could c
![Creating a React Analytics Logging Library](https://cdn-ak-scissors.b.st-hatena.com/image/square/3b845f09ffc728df9f6ee025307513c722bf7120/height=288;version=1;width=512/https%3A%2F%2Fslack.engineering%2Fwp-content%2Fuploads%2Fsites%2F7%2F2020%2F05%2F1_1pDqkj6W_98A7NKxpCaGsg.png%3Fresize%3D1280%2C584)