Skip to main content

referrer_traffic

Creates, updates, deletes, gets or lists a referrer_traffic resource.

Overview

Namereferrer_traffic
TypeResource
Idgithub.repos.referrer_traffic

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
countinteger
referrerstring (example: Google)
uniquesinteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_top_referrersselectowner, repoGet the top 10 referrers over the last 14 days.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

Get the top 10 referrers over the last 14 days.

SELECT
count,
referrer,
uniques
FROM github.repos.referrer_traffic
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;