You can do this from your AdSense account or your Analytics account. However, the final linking will be done on the Analytics side, so you can begin the process there. Before you begin, make sure you have the following items.

Approved AdSense accountAuthorized your AdSense siteVerified Analytics site propertyAdministrator access to both accounts

How to link your Analytics and AdSense accounts

Sign in to your Google Analytics accountAt the top of the page, select the Admin tab.Select the Analytics account that contains the property you want to link to your AdSense account in the “Account” column.Select the Analytics property you want to link in the “Property” column, then click AdSense Linking.Click + New AdSense Link on the “AdSense Linking” page.Choose the AdSense property you want to link to your Analytics property.Continue By clicking the button.Choose the Analytics views where you want your AdSense data to be available.Enable the link by clicking the checkbox.Click the Done button.

Your AdSense and Analytics accounts are now linked.