title: Angulartics2 Basics
body: <p>I tried following the Angulartics2 tutorial in the project's readme, but router events are not being tracked.</p>
  
  <p>First of all, I'm confused on where to drop the analytics provider script. Does that just get placed in index.html?</p>
  
  <p>In my <code>app.module.ts</code>, I have:</p>
  
  <pre><code>import { Angulartics2Module, Angulartics2Piwik } from 'angulartics2';
  @NgModule{[
      imports: [
          ...
          Angulartics2Module.forRoot([ Angulartics2Piwik ]),
          ...
      ],...
  )
  </code></pre>
  
  <p>In my <code>app.component.ts</code>, I have:</p>
  
  <pre><code>import { Angulartics2Piwik } from 'angulartics2';
  @Component([
      selector: "app",
      templateUrl: "app.component.html",
  ])
  @Injectable()
  export class AppComponent {
      constructor(angulartics2Piwik: Angulartics2Piwik) {}
  }
  </code></pre>
  
  <p>And in my <code>index.html</code> I simply include the script provided by Piwik.</p>
  
  <p>The project readme makes it seem like this is all that is needed to begin tracking router changes. However, Piwik is just seeing pageviews, not router changes.</p>
  
  <p>Any idea on what I might be missing with Angulartics2?</p>