title: Google App Script to notify change on particular tab of the sheet?
body: <p>I am trying to create a notification rule on a google sheet when changes are made to a specific tab of the sheet.</p>
  <p>I found some google app script and tweaked it but I continue to get an error message as below. What can be done to fix this?</p>
  <blockquote>
  <p>TypeError: Cannot read property 'changeType' of undefined</p>
  </blockquote>
  <p>Code:</p>
  <pre><code>    function notify(e) {
    var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getName();
    if (sheet == 'Analytics Project' &amp;&amp; e.changeType == 'INSERT_ROW') {
      MailApp.sendEmail('test@gmail.com', 'Row Added', 'A row was added to your sheet.');
    }
  }
  </code></pre>