Support » Plugin: Print, PDF, Email by PrintFriendly » Analytics Event label is NULL

  • Hi,

    In Analytics the Event label is NULL. Why not changing the code in pf.php to

    $title_var = 'NULL';
    $pagetitle = get_the_title();
    $analytics_code = "if(typeof(_gaq) != 'undefined') { _gaq.push(['_trackEvent','PRINTFRIENDLY', 'print', '" . $pagetitle . "']);
              }else if(typeof(ga) != 'undefined') {  ga('send', 'event','PRINTFRIENDLY', 'print', '" . $pagetitle . "'); }";

    or something similar?

    • This topic was modified 1 month, 4 weeks ago by Okoth1.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.