Created
          March 14, 2025 09:08 
        
      - 
      
- 
        Save paleite/52bb44c7e97539ffdfa1db8cf7bf9129 to your computer and use it in GitHub Desktop. 
    CSS-styled output in the console
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** @type {{ event: string; [key: PropertyKey]: unknown; }} */ | |
| const exampleEvent = { event: "modules_rendered", spotlight_modules: [ "ToolbarPinning", "PerformanceInterventionUI", "MobilePasswords", "129-companypayreauth", ], explore_more_modules: [ "128-company-lens", "128-product-site-search-shortcut", "127-side-panel-pinning", "125-search-box-suggestions", "125-safety-check", "123-generative-theming", ], }; | |
| console.debug( `%c DataLayer %c ${exampleEvent.event} `, "background: blue; color: white;", "background: lightgrey; color: black;", exampleEvent ); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment