O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Piwik Web Analytics Essentials

Book Description

A complete guide to tracking visitors on your web sites, e-commerce shopping carts, and apps using Piwik Web Analytics.

  • Track customers on your websites and apps and improve conversion rates right away
  • Customize your tracking for every application and situation
  • Embed Piwik’s tracking capabilities in other applications

In Detail

Without web analytics, you are blind on the internet. In order to improve conversions and revenue on your web- site, you need to know what is going on. Piwik gives you this data and unlike Google Analytics, gives you total control over its usage. Unlike Google analytics where the data can be read by Google, Piwik maintains complete confidentiality of your website data. By harnessing the power of your tracked data, you can raise the conversion rates on your website to new heights.

"Piwik Web Analytics Essentials" will show you how to install Piwik Open Source Analytics and have you tracking your website’s visitors within an hour after you pick up the book! After that, you will learn how to track custom events and programmatically trigger tracking events. The book continues with ecommerce tracking and advanced Piwik API usage.

This book will take you from installing Piwik on your web server to writing custom tracking code for your apps.

You will learn goal and event tracking techniques and how to add them to your standard tracking to fine tune your analytics results. Nothing is untrackable using Piwik: ecommerce shopping carts, web apps, phone apps, and more can make use of Piwik tracking capabilities.

"Piwik Web Analytics Essentials" will walk you through every step with detailed screenshots and plenty of example code.

Table of Contents

  1. Piwik Web Analytics Essentials
    1. Table of Contents
    2. Piwik Web Analytics Essentials
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Installation and Setup
      1. Meeting system requirements
      2. Downloading Piwik
      3. Downloading Piwik with SSH
      4. Uploading to a web hosting account
        1. Uploading using cPanel or other file managers
        2. Uploading using FTP
      5. Creating a database for your installation
        1. Creating a user and database for Piwik in cPanel
        2. Creating a user and database for Piwik with phpMyAdmin
        3. Creating a user and database for Piwik with SSH
      6. Using the Piwik installation wizard
      7. Securing Piwik
      8. Backing up Piwik
      9. Updating Piwik
      10. Using Piwik for high traffic websites
        1. Dedicated server
        2. Adding RAM
        3. PHP caching
        4. Nginx or lighttpd
        5. Cron your archiving
        6. Disabling real-time reports
        7. Deleting old logs
        8. Load balancers and multiple servers
        9. Limiting tracked URLs
      11. Summary
    9. 2. Using Piwik's Interface and Reports
      1. Navigating the Piwik interface
        1. Using Piwik's Menus
          1. The Sign In menu
          2. The top bar
          3. The main menu
      2. Customizing the dashboard
        1. Changing the dashboard layout
        2. Setting a date range
        3. Adding widgets to the dashboard
        4. Moving and removing widgets
      3. Finding the right report widget for the job
        1. Visitors
        2. Actions
        3. Referrers
        4. SEO
        5. Visitor settings
        6. Goals
        7. Visits Summary
        8. Live!
      4. Reading a Piwik report
      5. Customizing graph metrics
      6. Managing e-mail reports
      7. Summary
    10. 3. Tracking Visitors with Piwik
      1. Using the Piwik JavaScript tracking code
      2. Functioning of default JavaScript
      3. Triggering page views manually
      4. Customizing page names
      5. Customizing tracking URLs
      6. Configuring Piwik's tracking cookies
      7. Setting up download and outlink tracking
        1. Disabling link tracking
        2. Triggering link tracking
        3. Downloading file extensions
        4. The download/outlink pause timer
      8. Using other Piwik JavaScript API methods
        1. setRequestMethod(method)
        2. discardHashTag(bool)
        3. setCountPreRendered(bool)
        4. setDoNotTrack(bool)
        5. killFrame()
        6. redirectFile(url)
        7. setHeartBeatTimer(minumumVisitLength,heartBeatDelay)
        8. getVisitorId()
        9. getVisitorInfo()
      9. Using multiple trackers
      10. Using asynchronous tracking
      11. Summary
    11. 4. Setting Up and Tracking Goals
      1. Defining goals
        1. Desired actions
        2. Conversions and conversion rate
      2. Setting up goals in Piwik
      3. Setting up revenue tracking
      4. Triggering conversions manually
      5. Viewing Goals overview reports
      6. Using goal detail reports
      7. Analysing reports
      8. Summary
    12. 5. Tracking Marketing Campaigns
      1. Tracking campaigns using URL parameters
      2. Tracking paid searches
        1. Using Google ValueTrack
        2. Using Microsoft Ad Center dynamic text
        3. Using Yahoo! Search Marketing's URL tagging
      3. Creating campaign URLs the easy way
      4. Tracking social media campaigns
      5. Campaign tagging and tracking tips
      6. Attributing visits to the correct campaign
      7. Customizing campaign parameters
      8. Viewing campaign reports
      9. Summary
    13. 6. Tracking Events
      1. Tracking events with Piwik
      2. Tracking social engagement
        1. Tracking content sharing
        2. Tracking blog comments
      3. Tracking e-commerce events
      4. Tracking Flash events
        1. Tracking events with ActionScript 2
        2. Tracking events with ActionScript 3
      5. Tracking page load time
      6. Reading custom variable reports
      7. Other uses for custom variables
      8. Summary
    14. 7. E-commerce Tracking
      1. Enabling e-commerce tracking for your website
      2. Tracking orders and products purchased
      3. Tracking shopping carts and items in them
      4. Tracking product and category page views
      5. Adding Piwik e-commerce tracking to ZenCart
        1. Creating functions in PHP to mirror Piwik's functions
        2. Mixing PHP and JavaScript
      6. Reading and using Piwik's e-commerce reports
      7. A note about SSL
      8. Summary
    15. 8. Piwik Website and User Administration
      1. Changing your Super User settings
      2. Creating users in Piwik
      3. Managing website access
        1. Who is a Super User?
        2. What are admin permissions?
        3. What are view permissions?
      4. Managing websites
        1. Adding a website
        2. Editing or deleting a website
        3. Editing the global website settings
        4. Tracking multiple domains or subdomains with one website account
        5. Setting up an intranet as a website in Piwik
      5. Turning Piwik into a white label analytics solution
      6. Allowing user sign up with the Piwik Signup plugin
        1. Installing a Piwik plugin
        2. How the user Signup plugin works
      7. Summary
    16. 9. Advanced Tracking and Development
      1. Tracking visitors with image tracking
        1. Simple image tracking
          1. Image tracking limitations
        2. Advanced image tracking
          1. Adding page titles to eBay auction tracking
          2. Tracking a goal with an image
      2. Tracking visitors with the PHP tracking API
        1. Generating the image tracker
        2. Making an HTTP request to the tracker
      3. Tracking visitors with other programming languages
        1. Java
        2. Python
        3. Silverlight
        4. Flash
        5. Using Piwik's tracking API directly
      4. Debugging your tracking code
      5. Piwik plugins
        1. How Piwik works
        2. The anatomy of a plugin
        3. Writing a simple Piwik plugin
      6. Summary
    17. 10. Piwik Integration
      1. CMS plugins
      2. Piwik Mobile
      3. Embedding Piwik widgets
        1. Give your anonymous user rights
        2. Choosing your widget
          1. The Dashboard widget
          2. The All Websites widget
          3. Choose your own widget
      4. Accessing Piwik's data
        1. How to call the analytics API
          1. Calling the analytics API using REST
          2. Calling the analytics API locally
        2. Including graphs
        3. Using the Live! API
        4. Segmentation
      5. Creating a change log for your website with analytics feedback
      6. Summary
    18. A. Tracking API Reference
      1. The Piwik tracking API
        1. Variables
        2. Methods
          1. Constructor __construct
          2. addEcommerceItem
          3. disableCookieSupport
          4. doTrackAction
          5. doTrackEcommerceCartUpdate
          6. doTrackEcommerceOrder
          7. doTrackGoal
          8. doTrackPageView
          9. enableBulkTracking
          10. doBulkTrack
          11. getAttributionInfo
          12. getBaseUrl
          13. getCustomVariable
          14. getRequestTimeout
          15. getTimestamp
          16. getUrlTrackAction
          17. getUrlTrackGoal
          18. getUrlTrackPageView
          19. getVisitorId
          20. setAttributionInfo
          21. setBrowserHasCookies
          22. setBrowserLanguage
          23. setCustomVariable
          24. setDebugStringAppend
          25. setEcommerceView
          26. setForceVisitDateTime
          27. setIp
          28. setLocalTime
          29. setPlugins
          30. setRequestTimeout
          31. setResolution
          32. setTokenAuth
          33. setUrl
          34. setUrlReferrer
          35. setUserAgent
          36. setVisitorId
    19. B. Analytics API Reference
      1. The Piwik analytics API
        1. Module API
        2. Module Actions
        3. Module CustomVariables
        4. Module ExampleAPI
        5. Module Goals
        6. Module ImageGraph
        7. Module LanguagesManager
        8. Module Live!
        9. Module MultiSites
        10. Module PDFReports
        11. Module Provider
        12. Module Referers
        13. Module SEO
        14. Module SitesManager
        15. Module UserCountry
        16. Module UserSettings
        17. Module UsersManager
        18. Module VisitFrequency
        19. Module VisitTime
        20. Module VisitorInterest
        21. Module VisitsSummary
    20. Index