Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update pageTrack usage with title
  • Loading branch information
hamxiaoz authored Jan 5, 2017
commit a840f926079dba40a4dcf1c446f4db36f098ef2c
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h4>Using the API</h4>
inject <code>$analytics</code> and invoke either the <code>pageTrack()</code>
or <code>eventTrack()</code> methods.
<pre><code>module.controller('SampleCtrl', function (<strong class="highlighted">$analytics</strong>) {
$analytics.<strong class="highlighted">pageTrack</strong>('<strong>/my/url</strong>');
$analytics.<strong class="highlighted">pageTrack</strong>('<strong>/my/url</strong>', <strong>{ title: 'title' }</strong>);
$analytics.<strong class="highlighted">eventTrack</strong>('<strong>eventName</strong>');
$analytics.<strong class="highlighted">eventTrack</strong>('<strong>eventName</strong>', <strong>{ category: 'category', label: 'label' }</strong>);</code></pre>
</section>
Expand Down