Support Center

Track in Google Analytics

Last Updated: Jul 22, 2013 11:27AM PDT

Google Analytics Event Tracking


This is the code used to track Events using Google Analytics.
_gaq.push(['_trackEvent', 'categoryName', 'actionName']);
 

Rename categoryName and actionName variables. These names will appear in Google Analytics.

For example: _gaq.push(['_trackEvent', 'Share', 'Print']);


Add the google tracking code to your print friendly & PDF button link

<script src="http://cdn.printfriendly.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" style=" color:#6D9F00; text-decoration:none;" class="printfriendly"  onclick="window.print(); _gaq.push(['_trackEvent', 'Share', 'Print']); return false;" title="Printer Friendly and PDF"><img style="border:none;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print Friendly and PDF"/></a>


For more information: Google Analytics Event Tracking

support@printfriendly.com
http://assets03.desk.com/
printfriendly
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
Invalid characters found
/customer/en/portal/articles/autocomplete