Old SiteAccount: DEMO
Logout
Go to: www.golf-gifts.com
Manage sub-accounts
ACCOUNT
Setup
Get Tracking Script
Reset Dashboards
Definition of Visit
Page Groups
Exclude IP Ranges From Tracking
Ignore This Browser
Custom Visitor Data
Custom Transaction Data
Segmentation Filters
Sub-Accounts
Manage
eCommerce Setup
Define Transaction Types
Assign Referrers to Campaigns
Campaign Identifiers
Security
Group Administration
User Administration
Help
Segmentation Guide
Campaign Tracking
Campaign Tracking Implementation Guide
MultiVariate (A/B) Tracking Guide
Identifying Possible Click Fraud
Reporting Web Service
Logout
Upgrade
REPORTS
Traffic
Snapshot
Top Pages
Top Pages Trend
Page Views
Page Groups
Visitors
New Visitors
Average Page Views
Visitors
Latest Visitors Map
Latest Page Views Map
Bounce Rate
New Visitors
Repeat Visitors
Countries
Organizations
Domains
Languages
Domain Search
Navigation
Navigation Paths
Reloads
Single Access Pages
Entry Pages
Exit Pages
Average Time on Pages
Average Time on Site
Exit Links
Downloads
Referrers
Referring Sites
Referring Sites Details
Countries
Search Engines
Search Engines
Search Engine Versions
Search Terms
Search Terms by Search Engine
Pages by Search Engine
Pages by Search Terms
Pages by Search Engine and Terms
Total Search Engine Referrals
Clients
Browsers
Browser Versions
Top Browser Versions Trend
Operating Systems
Operating System Versions
Top Operating System Versions Trend
Screen Resolutions
Color Palettes
Cookie Support
Java Support
Campaigns
Activity Summary
Latest Clicks
Click History
Latest Transactions
Transaction History
eCommerce Activity
By Continent
By Country
By Entry Page
By Referrer
By Search Engine
By Search Terms
By Search Engine and Terms
eCommerce Visitor Behavior
Conversion Rate
Transaction Cycle Time
Time Between Transactions
Average Order Size
First Time Customers
Repeat Customers
Click Fraud
Repeat Clicks
Clicks by Country
MultiVariate (A/B) Testing
DASHBOARDS
Traffic
eCommerce
Mobile
Social
New Dashboard
You are logged into the demo account.  When you're ready, click here for a free trial account.

Report Web Service Guide



Introduction


The report web service provides programmatic access to all the reports within the application.  Our web service implementation uses standard internet protocols and can be called using most major development languages, including all Visual Studio languages, Java and PHP.  You can use the report web service to create custom dashboards or a variety of other interfaces that access report data.

In addition to accessing report data, chart image files are also available through the web service.

Our philosophy on the architecture of the report web service is to provide a simple, unchanging interface that provides access to all the reports within the application.  Since the number of reports available and the data within the reports are constantly changing, we have created an interface specification that is generic and will not need to be updated every time the data format changes.

Background


The report web service is based on industry standard technology, such as SOAP and WSDL.  For background information on these technologies, please refer to the following link:

W3C Web Services Information

Implementation


The web service is implemented by referencing our WSDL file in your development environment.  The method of doing this is dependent upon your development tool.  The WSDL file can be referenced from the URL below:

http://siterevision.hitslink.com/reportws.asmx

The service description can be viewed from the following link:

View service description

The WSDL definition can be viewed from the following link:

View WSDL definition

The report web service supports transport-level security (SSL).

Function Reference

Function Description Parameters Returns
GetData Get an array of report data and an array of column definitions.
  • account - The account id of the account to retrieve the data from.

  • password - The password of the account.  This information is transmitted securely over the internet.

  • reportId - The report id of the report.  Select this from the enumerated list.

  • maxRows - The maximum number of data rows to return.  There is a limit of 1000.

  • chartHeight - If this is set to a value greater than zero, a chart will be generated and the url of the chart will be returned in the 'Data' structure.

  • chartWidth - If this is set to a value greater than zero, a chart will be generated and the url of the chart will be returned in the 'Data' structure.
  • This call returns the 'Data' structure.  See the section below on the definition of the 'Data' structure.
    GetDataFromTimeframe Get an array of report data and an array of column definitions for a specific date range.  If the report does not use timeframes, this call will function the same as GetData.
  • account - The account id of the account to retrieve the data from.

  • password - The password of the account.  This information is transmitted securely over the internet.

  • reportId - The report id of the report.  Select this from the enumerated list.

  • Timeframe Type - Daily, Weekly, Monthly, Quarterly, or Yearly.  Select this from the enumerated list.

  • Start Date - The start date of the report.

  • End Date - The end date of the report.

  • maxRows - The maximum number of data rows to return.  There is a limit of 1000.

  • chartHeight - If this is set to a value greater than zero, a chart will be generated and the url of the chart will be returned in the 'Data' structure.

  • chartWidth - If this is set to a value greater than zero, a chart will be generated and the url of the chart will be returned in the 'Data' structure.
  • This call returns the 'Data' structure.  See the section below on the definition of the 'Data' structure.
    GetDataFromQueryString Get an array of report data and an array of column definitions by passing in a query string.  For complex report settings, the browser's query string contains the complete report definition.  This function accepts a query string to determine the report data to retrieve.  For example, if a report has multiple filters and a custom sorting, the standard GetData call cannot be used.
  • account - The account id of the account to retrieve the data from.

  • password - The password of the account.  This information is transmitted securely over the internet.

  • queryString - The query string after the ? on the browser's address line for a report you wish to retrieve data on.

  • chartHeight - If this is set to a value greater than zero, a chart will be generated and the url of the chart will be returned in the 'Data' structure.

  • chartWidth - If this is set to a value greater than zero, a chart will be generated and the url of the chart will be returned in the 'Data' structure.
  • This call returns the 'Data' structure.  See the section below on the definition of the 'Data' structure.

    Return Structure

    All calls return a structure called 'Data', which is a simple class with three properties and two arrays.  The first array is called ColumnDefinitions, which contains meta data on the columns returned by the call.  The second array is an array of rows representing the report data.  This array is called 'Rows'.

    The structure of the Data class (in VB.NET syntax) is:

    Public Class Data
        Public Title As String
        Public EndDate As Date
        Public StartDate As Date
        Public ChartURL As String
        Public ColumnDefinitions As ColumnDefinition()
        Public Rows As Row()
    End Class


    The ColumnDefinition class is defined as:

    Public Class ColumnDefinition
        Public Title As String
        Public Align As AlignmentTypes  ' Left, right or centered on report output
        Public Sortable As Boolean
        Public DataType As DataTypes
    End Class


    The AlignmentTypes enumeration is defined as:

    Enum AlignmentTypes
        Left
        Right
        Center
    End Enum


    The DataType enumeration is defined as:

    Public Enum DataTypes
        DataTypeString = 0
        DataTypeInteger = 1
        DataTypeNumeric = 2
        DataTypeCurrency = 3
        DataTypePercent = 4
        DataTypeDate = 5
    End Enum


    The Column class is defined as:

    Public Class Column
        Public Value As String
    End Class


    The Row class is defined as:

    Public Class Row
        Public Columns As Column()
    End Class


    Sample Code


    The following are samples of code to retrieve report data.  The first example is written in ASP.NET using the VB.NET language.

    First, import the web reference into your project and call it 'Analytics'.




    This example is in PHP:




    How to access specific columns


    The numeric index of columns can change, so do not hard code the index when accessing specific columns.  If you need to access specific columns, use the following method:

    For example, if you need to directly access the 'Bounces' column (C# example):



    Partner Program break Privacy Policy break Company Info break Support
    Copyright © 2009-2025 Net Applications.com, All Rights Reserved