#1
  1. No Profile Picture
    Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Nov 2014
    Posts
    21
    Rep Power
    0

    Track a single PDF as a goal


    I am trying to analyse performance of a PDF. Currently all PDFs are tracked as Events and are also set up as a goal, but I want the goal to only report on one particular PDF.

    1st set-up that tracks all PDFs as expected:
    Category = PDF Download
    Action = .*
    Label = .*

    2nd set-up to try and track one PDF:
    Category = PDF Download
    Action = thisismypdf.pdf
    Label = .*

    Also tried:

    Category = PDF Download
    Action = .*thisismypdf.pdf
    Label = .*

    And:

    Category = PDF Download
    Action = .domian.com/thisismypdf.pdf
    Label = .*

    The first works, none of theothers do.

    Any ideas?
  2. #2
  3. Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Jun 2012
    Posts
    285
    Rep Power
    235
    Hey - Oh boy, seeing this a little bit late, but wanted to jump in with some thoughts just in case you still needed assistance with this
    This is where you use label.
    Label should dynamically include the title of the PDF, that way you can view just the label in event analytics and thus, use the event label to set up the goal to keep track of visitors downloading that specific PDF.

    Setting up the code on the site:
    ...here is how the set up would look

    Category = whitepaper <--this is the category that your event falls into, you want to keep your event structure clean so using content type by category is easy...if the pdf is a technical spec or whatever, you can change this to that
    Action = Download <---this is the type of action taken, just in case there are multiple content types people can download, such as brochures, techical specs, ebooks, etc...
    Label = Title Of PDF (url can be used here too)

    Here is how the code would look on your download link:

    onClick="ga('send', 'event', { eventCategory: 'whitepaper', eventAction: 'download', eventLabel: 'title of pdf'});"

    It should look kinda like this for your download link
    <a href="/downloads/example-whitepaper.pdf" onClick="ga('send', 'event', { eventCategory: 'whitepaper', eventAction: 'download', eventLabel: 'title of pdf'});">Download PDF</a>


    Setting up the goal so you're just capturing the one PDF you care about:
    now with that said, the next piece of your question is how to set that up in analytics. After you set up the event goal, go to "goal details", and it will allow you to choose the category / action / label combination that works for you. The screenshot below illustrates:

    Screen Shot 2016-03-23 at 10.35.17 AM.png

    Comments on this post

    • Will-O-The-Wisp agrees : Ahhh, nice!! Thank you!
    • Pierre Benneton agrees : I sure i'll have use of this too.
    "...using this: sages act out of constructs but they do not rely on them"
  4. #3
  5. No Profile Picture
    Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Nov 2014
    Posts
    21
    Rep Power
    0
    Thank you - it's not too late! The site uses a super tag (similar to tag manager) where the event tracks all PDF downloads. So, that is already in play. The current goal set-up is:

    Category - PDF Download
    Action - .*
    Label - .*

    When I look in the event reporting the Action seems to be the PDF URL and the label is the page from which the PDF is downloaded. That's why I was trying to use a regex on the Action, but couldn't get that to work ;(

    I'll try capturing the source URL in the label field.

    Thanks for your input!
  6. #4
  7. No Profile Picture
    Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Nov 2014
    Posts
    21
    Rep Power
    0
    So after reviewing this again, I just did an exact match (no regex here ;) on the PDF URL in the Action field and it works. I feel silly for not having tried that first!

Similar Threads

  1. Google Analytics - Track Goal Conversions
    By pooey in forum Google Optimization
    Replies: 0
    Last Post: Aug 10th, 2013, 01:57 PM
  2. How to track multiple clicks on a single page(home page)?
    By jewelry123 in forum Analytics Analysis
    Replies: 0
    Last Post: Jul 28th, 2008, 07:54 AM
  3. Ford says on track toward 2008 profitability goal (Reuters)
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: Jun 21st, 2006, 01:06 PM
  4. Ford's PAG on track for '05 earnings goal (Reuters)
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: Sep 13th, 2005, 04:02 AM

IMN logo majestic logo threadwatch logo seochat tools logo