Skip to content

Commit

Permalink
GA instrumented event records the age of a match for each impression …
Browse files Browse the repository at this point in the history
…related to the specific match
  • Loading branch information
kennsippell committed Jun 14, 2016
1 parent 5450ed4 commit ba28d4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views/match/match.jade
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ block content

append footer_assets
script(type="text/javascript", src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5452f1e51eac0fc5", async="async")
script.
ga('send', 'event', 'match', 'view', 'ageOfMatch', moment().diff(moment.unix(#{match.start_time+match.duration}), 'days'));

0 comments on commit ba28d4b

Please sign in to comment.