Skip to main content

segment

Integrate Segment into Nextjs app

import Document, { Html, Head, Main, NextScript } from 'next/document';
class PubNubDocument extends Document {
  static async getInitialProps(ctx) {
    const initialProps = await Document.getInitialProps(ctx);
         
    return { ...initialProps }
  }
  render() {
      
  
    return (
      <Html lang="en">