Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Tracking Doc Views in the Live Preview World

#17

Is there any way that we can tally how many times the live preview link is clicked on a PDF or Word doc and sum that number with the total number of raw downloads? Now that we have the much-needed Live Preview, it's likely to be extremely popular and could cause the number of downloads to drop dramatically.

br|z|

Reported by WTG User · April 28th, 2010 @ 10:01 AM

State: resolved
Milestone: Flagship 2.2.1
Assigned to: Brian Michalski Brian Michalski

Activity

  1. Brian Michalski
    Brian Michalski

    I actually don't expect the number of downloads to drop
    significantly. Unless Google is caching the document it's still being
    accessed, just by Google not the end user.

    It's probably a good idea to throw some analytics JS into the live
    preview JS to help distinguish the two sources of downloads.

    April 28th, 2010 @ 11:28 AM

  2. Brian Michalski
    Brian Michalski
    • State changed from new to open
    • Assigned user set to Brian Michalski

    (from [882e12dac0a8d86d749173b743bc2e6406f3beca]) Adding a handler to be used for tracking live previews, small bugfix in doc/show re: user names [#17 Tracking Doc Views in the Live Preview World state:open responsible:"Brian Michalski"] http://github.com/wtg/flagship_docs/commit/882e12dac0a8d86d749173b7...

    April 28th, 2010 @ 12:39 PM

  3. Brian Michalski
    Brian Michalski
    • Milestone set to Flagship 2.2.1
    • State changed from open to resolved

    I added the following code to gaq.push(['trackEvent', 'document', 'live_preview', '<%= @document.id %>']); to the studentsenate code. This isn't committed because not everyone uses Google Analytics....

    April 28th, 2010 @ 04:15 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.