Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

plausible-tracker

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plausible-tracker - npm Package Compare versions

Comparing version 0.1.11 to 0.2.0

.nyc_output/4311a2fe-9ddf-453f-84cf-9c9411264395.json

2

.nyc_output/processinfo/index.json

@@ -1,1 +0,1 @@

{"processes":{"2552a1fc-d9be-4841-820e-5b41ddc238c9":{"parent":null,"children":[]}},"files":{"/Users/maronato/Documents/plausible-analytics/plausible-analytics/jest.config.js":["2552a1fc-d9be-4841-820e-5b41ddc238c9"]},"externalIds":{}}
{"processes":{"4311a2fe-9ddf-453f-84cf-9c9411264395":{"parent":null,"children":[]}},"files":{"/Users/maronato/Documents/plausible-analytics/plausible-analytics/jest.config.js":["4311a2fe-9ddf-453f-84cf-9c9411264395"]},"externalIds":{}}

@@ -1,1 +0,1 @@

{"kinds":{"32":"Variable","64":"Function","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":4194304,"name":"EventOptions","url":"globals.html#eventoptions","classes":"tsd-kind-type-alias"},{"id":1,"kind":65536,"name":"__type","url":"globals.html#eventoptions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"EventOptions"},{"id":2,"kind":32,"name":"callback","url":"globals.html#eventoptions.__type.callback","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"EventOptions.__type"},{"id":3,"kind":4194304,"name":"PlausibleOptions","url":"globals.html#plausibleoptions","classes":"tsd-kind-type-alias"},{"id":4,"kind":65536,"name":"__type","url":"globals.html#plausibleoptions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"PlausibleOptions"},{"id":5,"kind":32,"name":"hashMode","url":"globals.html#plausibleoptions.__type.hashmode","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleOptions.__type"},{"id":6,"kind":32,"name":"trackLocalhost","url":"globals.html#plausibleoptions.__type.tracklocalhost","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleOptions.__type"},{"id":7,"kind":32,"name":"url","url":"globals.html#plausibleoptions.__type.url","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleOptions.__type"},{"id":8,"kind":32,"name":"domain","url":"globals.html#plausibleoptions.__type.domain","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleOptions.__type"},{"id":9,"kind":32,"name":"referrer","url":"globals.html#plausibleoptions.__type.referrer","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleOptions.__type"},{"id":10,"kind":32,"name":"deviceWidth","url":"globals.html#plausibleoptions.__type.devicewidth","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleOptions.__type"},{"id":11,"kind":32,"name":"apiHost","url":"globals.html#plausibleoptions.__type.apihost","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleOptions.__type"},{"id":12,"kind":4194304,"name":"TrackEvent","url":"globals.html#trackevent","classes":"tsd-kind-type-alias"},{"id":13,"kind":65536,"name":"__type","url":"globals.html#trackevent.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"TrackEvent"},{"id":14,"kind":4194304,"name":"PageView","url":"globals.html#pageview","classes":"tsd-kind-type-alias"},{"id":15,"kind":65536,"name":"__type","url":"globals.html#pageview.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"PageView"},{"id":16,"kind":4194304,"name":"Cleanup","url":"globals.html#cleanup","classes":"tsd-kind-type-alias"},{"id":17,"kind":65536,"name":"__type","url":"globals.html#cleanup.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"Cleanup"},{"id":18,"kind":4194304,"name":"EnableAutoPageViews","url":"globals.html#enableautopageviews","classes":"tsd-kind-type-alias"},{"id":19,"kind":65536,"name":"__type","url":"globals.html#enableautopageviews.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"EnableAutoPageViews"},{"id":20,"kind":64,"name":"Plausible","url":"globals.html#plausible","classes":"tsd-kind-function"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,21.748]],["parent/0",[]],["name/1",[1,12.192]],["parent/1",[0,1.805]],["name/2",[2,26.856]],["parent/2",[3,2.23]],["name/3",[4,21.748]],["parent/3",[]],["name/4",[1,12.192]],["parent/4",[4,1.805]],["name/5",[5,26.856]],["parent/5",[6,0.893]],["name/6",[7,26.856]],["parent/6",[6,0.893]],["name/7",[8,26.856]],["parent/7",[6,0.893]],["name/8",[9,26.856]],["parent/8",[6,0.893]],["name/9",[10,26.856]],["parent/9",[6,0.893]],["name/10",[11,26.856]],["parent/10",[6,0.893]],["name/11",[12,26.856]],["parent/11",[6,0.893]],["name/12",[13,21.748]],["parent/12",[]],["name/13",[1,12.192]],["parent/13",[13,1.805]],["name/14",[14,21.748]],["parent/14",[]],["name/15",[1,12.192]],["parent/15",[14,1.805]],["name/16",[15,21.748]],["parent/16",[]],["name/17",[1,12.192]],["parent/17",[15,1.805]],["name/18",[16,21.748]],["parent/18",[]],["name/19",[1,12.192]],["parent/19",[16,1.805]],["name/20",[17,26.856]],["parent/20",[]]],"invertedIndex":[["__type",{"_index":1,"name":{"1":{},"4":{},"13":{},"15":{},"17":{},"19":{}},"parent":{}}],["apihost",{"_index":12,"name":{"11":{}},"parent":{}}],["callback",{"_index":2,"name":{"2":{}},"parent":{}}],["cleanup",{"_index":15,"name":{"16":{}},"parent":{"17":{}}}],["devicewidth",{"_index":11,"name":{"10":{}},"parent":{}}],["domain",{"_index":9,"name":{"8":{}},"parent":{}}],["enableautopageviews",{"_index":16,"name":{"18":{}},"parent":{"19":{}}}],["eventoptions",{"_index":0,"name":{"0":{}},"parent":{"1":{}}}],["eventoptions.__type",{"_index":3,"name":{},"parent":{"2":{}}}],["hashmode",{"_index":5,"name":{"5":{}},"parent":{}}],["pageview",{"_index":14,"name":{"14":{}},"parent":{"15":{}}}],["plausible",{"_index":17,"name":{"20":{}},"parent":{}}],["plausibleoptions",{"_index":4,"name":{"3":{}},"parent":{"4":{}}}],["plausibleoptions.__type",{"_index":6,"name":{},"parent":{"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{}}}],["referrer",{"_index":10,"name":{"9":{}},"parent":{}}],["trackevent",{"_index":13,"name":{"12":{}},"parent":{"13":{}}}],["tracklocalhost",{"_index":7,"name":{"6":{}},"parent":{}}],["url",{"_index":8,"name":{"7":{}},"parent":{}}]],"pipeline":[]}}
{"kinds":{"32":"Variable","64":"Function","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":4194304,"name":"EventOptions","url":"globals.html#eventoptions","classes":"tsd-kind-type-alias"},{"id":1,"kind":65536,"name":"__type","url":"globals.html#eventoptions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"EventOptions"},{"id":2,"kind":32,"name":"callback","url":"globals.html#eventoptions.__type.callback","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"EventOptions.__type"},{"id":3,"kind":4194304,"name":"PlausibleInitOptions","url":"globals.html#plausibleinitoptions","classes":"tsd-kind-type-alias"},{"id":4,"kind":65536,"name":"__type","url":"globals.html#plausibleinitoptions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"PlausibleInitOptions"},{"id":5,"kind":32,"name":"hashMode","url":"globals.html#plausibleinitoptions.__type.hashmode","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":6,"kind":32,"name":"trackLocalhost","url":"globals.html#plausibleinitoptions.__type.tracklocalhost","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":7,"kind":32,"name":"domain","url":"globals.html#plausibleinitoptions.__type.domain","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":8,"kind":32,"name":"apiHost","url":"globals.html#plausibleinitoptions.__type.apihost","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":9,"kind":4194304,"name":"PlausibleOptions","url":"globals.html#plausibleoptions","classes":"tsd-kind-type-alias"},{"id":10,"kind":4194304,"name":"TrackEvent","url":"globals.html#trackevent","classes":"tsd-kind-type-alias"},{"id":11,"kind":65536,"name":"__type","url":"globals.html#trackevent.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"TrackEvent"},{"id":12,"kind":4194304,"name":"TrackPageview","url":"globals.html#trackpageview","classes":"tsd-kind-type-alias"},{"id":13,"kind":65536,"name":"__type","url":"globals.html#trackpageview.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"TrackPageview"},{"id":14,"kind":4194304,"name":"Cleanup","url":"globals.html#cleanup","classes":"tsd-kind-type-alias"},{"id":15,"kind":65536,"name":"__type","url":"globals.html#cleanup.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"Cleanup"},{"id":16,"kind":4194304,"name":"EnableAutoPageviews","url":"globals.html#enableautopageviews","classes":"tsd-kind-type-alias"},{"id":17,"kind":65536,"name":"__type","url":"globals.html#enableautopageviews.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"EnableAutoPageviews"},{"id":18,"kind":64,"name":"Plausible","url":"globals.html#plausible","classes":"tsd-kind-function"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,20.794]],["parent/0",[]],["name/1",[1,11.239]],["parent/1",[0,1.603]],["name/2",[2,25.903]],["parent/2",[3,1.996]],["name/3",[4,20.794]],["parent/3",[]],["name/4",[1,11.239]],["parent/4",[4,1.603]],["name/5",[5,25.903]],["parent/5",[6,1.15]],["name/6",[7,25.903]],["parent/6",[6,1.15]],["name/7",[8,25.903]],["parent/7",[6,1.15]],["name/8",[9,25.903]],["parent/8",[6,1.15]],["name/9",[10,25.903]],["parent/9",[]],["name/10",[11,20.794]],["parent/10",[]],["name/11",[1,11.239]],["parent/11",[11,1.603]],["name/12",[12,20.794]],["parent/12",[]],["name/13",[1,11.239]],["parent/13",[12,1.603]],["name/14",[13,20.794]],["parent/14",[]],["name/15",[1,11.239]],["parent/15",[13,1.603]],["name/16",[14,20.794]],["parent/16",[]],["name/17",[1,11.239]],["parent/17",[14,1.603]],["name/18",[15,25.903]],["parent/18",[]]],"invertedIndex":[["__type",{"_index":1,"name":{"1":{},"4":{},"11":{},"13":{},"15":{},"17":{}},"parent":{}}],["apihost",{"_index":9,"name":{"8":{}},"parent":{}}],["callback",{"_index":2,"name":{"2":{}},"parent":{}}],["cleanup",{"_index":13,"name":{"14":{}},"parent":{"15":{}}}],["domain",{"_index":8,"name":{"7":{}},"parent":{}}],["enableautopageviews",{"_index":14,"name":{"16":{}},"parent":{"17":{}}}],["eventoptions",{"_index":0,"name":{"0":{}},"parent":{"1":{}}}],["eventoptions.__type",{"_index":3,"name":{},"parent":{"2":{}}}],["hashmode",{"_index":5,"name":{"5":{}},"parent":{}}],["plausible",{"_index":15,"name":{"18":{}},"parent":{}}],["plausibleinitoptions",{"_index":4,"name":{"3":{}},"parent":{"4":{}}}],["plausibleinitoptions.__type",{"_index":6,"name":{},"parent":{"5":{},"6":{},"7":{},"8":{}}}],["plausibleoptions",{"_index":10,"name":{"9":{}},"parent":{}}],["trackevent",{"_index":11,"name":{"10":{}},"parent":{"11":{}}}],["tracklocalhost",{"_index":7,"name":{"6":{}},"parent":{}}],["trackpageview",{"_index":12,"name":{"12":{}},"parent":{"13":{}}}]],"pipeline":[]}}
import { EventOptions } from './request';
/**
* Options used when tracking Plausible events.
* Options used when initializing the tracker.
*/
export declare type PlausibleOptions = {
export declare type PlausibleInitOptions = {
/**

@@ -16,2 +16,17 @@ * If true, pageviews will be tracked when the URL hash changes.

/**
* The domain to bind the event to.
* Defaults to `location.hostname`
*/
readonly domain?: Location['hostname'];
/**
* The API host where the events will be sent.
* Defaults to `'https://plausible.io'`
*/
readonly apiHost?: string;
};
/**
* Options used when tracking Plausible events.
*/
export declare type PlausibleOptions = PlausibleInitOptions & {
/**
* The URL to bind the event to.

@@ -22,7 +37,2 @@ * Defaults to `location.href`.

/**
* The domain to bind the event to.
* Defaults to `location.hostname`
*/
readonly domain?: Location['hostname'];
/**
* The referrer to bind the event to.

@@ -37,7 +47,2 @@ * Defaults to `document.referrer`

readonly deviceWidth?: Window['innerWidth'];
/**
* The API host where the events will be sent.
* Defaults to `'https://plausible.io'`
*/
readonly apiHost?: string;
};

@@ -71,6 +76,6 @@ /**

*
* const { pageView } = Plausible()
* const { trackPageview } = Plausible()
*
* // Track a page view
* pageView()
* trackPageview()
* ```

@@ -81,3 +86,3 @@ *

*/
declare type PageView = (eventData?: PlausibleOptions, options?: EventOptions) => void;
declare type TrackPageview = (eventData?: PlausibleOptions, options?: EventOptions) => void;
/**

@@ -96,6 +101,6 @@ * Cleans up all event listeners attached.

*
* const { enableAutoPageViews } = Plausible()
* const { enableAutoPageviews } = Plausible()
*
* // This tracks the current page view and all future ones as well
* enableAutoPageViews()
* enableAutoPageviews()
* ```

@@ -107,5 +112,5 @@ *

*
* const { enableAutoPageViews } = Plausible()
* const { enableAutoPageviews } = Plausible()
*
* const cleanup = enableAutoPageViews()
* const cleanup = enableAutoPageviews()
*

@@ -116,3 +121,3 @@ * // Remove event listeners and restore `history.pushState`

*/
declare type EnableAutoPageViews = () => Cleanup;
declare type EnableAutoPageviews = () => Cleanup;
/**

@@ -125,3 +130,3 @@ * Initializes the tracker with your default values.

*
* const { enableAutoPageViews, trackEvent } = Plausible({
* const { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -131,3 +136,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -143,3 +148,3 @@ * function onUserRegister() {

*
* var { enableAutoPageViews, trackEvent } = Plausible({
* var { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -149,3 +154,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -159,7 +164,7 @@ * function onUserRegister() {

*/
export default function Plausible(defaults?: PlausibleOptions): {
export default function Plausible(defaults?: PlausibleInitOptions): {
readonly trackEvent: TrackEvent;
readonly pageView: PageView;
readonly enableAutoPageViews: EnableAutoPageViews;
readonly trackPageview: TrackPageview;
readonly enableAutoPageviews: EnableAutoPageviews;
};
export {};

@@ -11,3 +11,3 @@ "use strict";

*
* const { enableAutoPageViews, trackEvent } = Plausible({
* const { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -17,3 +17,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -29,3 +29,3 @@ * function onUserRegister() {

*
* var { enableAutoPageViews, trackEvent } = Plausible({
* var { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -35,3 +35,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -50,7 +50,7 @@ * function onUserRegister() {

};
const pageView = (eventData, options) => {
const trackPageview = (eventData, options) => {
trackEvent('pageview', eventData, options);
};
const enableAutoPageViews = () => {
const page = () => pageView();
const enableAutoPageviews = () => {
const page = () => trackPageview();
// Attach pushState and popState listeners

@@ -71,3 +71,3 @@ const originalPushState = history.pushState;

// Trigger first page view
pageView();
trackPageview();
return function cleanup() {

@@ -84,5 +84,5 @@ if (originalPushState) {

};
return { trackEvent, pageView, enableAutoPageViews };
return { trackEvent, trackPageview, enableAutoPageviews };
}
exports.default = Plausible;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvdHJhY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHVDQUFvRDtBQXVIcEQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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FJLGlCQUFpQixFQUFFO1lBQ3JCLHFEQUFxRDtZQUNyRCxPQUFPLENBQUMsU0FBUyxHQUFHLFVBQVUsSUFBSSxFQUFFLEtBQUssRUFBRSxHQUFHO2dCQUM1QyxpQkFBaUIsQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDO2dCQUNsRCxJQUFJLEVBQUUsQ0FBQztZQUNULENBQUMsQ0FBQztZQUNGLGdCQUFnQixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsQ0FBQztTQUNwQztRQUVELDZCQUE2QjtRQUM3QixJQUFJLFFBQVEsSUFBSSxRQUFRLENBQUMsUUFBUSxFQUFFO1lBQ2pDLGdCQUFnQixDQUFDLFlBQVksRUFBRSxJQUFJLENBQUMsQ0FBQztTQUN0QztRQUVELDBCQUEwQjtRQUMxQixhQUFhLEVBQUUsQ0FBQztRQUVoQixPQUFPLFNBQVMsT0FBTztZQUNyQixJQUFJLGlCQUFpQixFQUFFO2dCQUNyQixxREFBcUQ7Z0JBQ3JELE9BQU8sQ0FBQyxTQUFTLEdBQUcsaUJBQWlCLENBQUM7Z0JBQ3RDLG1CQUFtQixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsQ0FBQzthQUN2QztZQUNELElBQUksUUFBUSxJQUFJLFFBQVEsQ0FBQyxRQUFRLEVBQUU7Z0JBQ2pDLG1CQUFtQixDQUFDLFlBQVksRUFBRSxJQUFJLENBQUMsQ0FBQzthQUN6QztRQUNILENBQUMsQ0FBQztJQUNKLENBQUMsQ0FBQztJQUVGLE9BQU8sRUFBRSxVQUFVLEVBQUUsYUFBYSxFQUFFLG1CQUFtQixFQUFFLENBQUM7QUFDNUQsQ0FBQztBQTVERCw0QkE0REMifQ==

@@ -97,5 +97,5 @@ "use strict";

test('tracks pageview', () => {
const { pageView } = tracker_1.default();
const { trackPageview } = tracker_1.default();
expect(requestSpy).not.toHaveBeenCalled();
pageView();
trackPageview();
expect(requestSpy).toHaveBeenCalled();

@@ -105,6 +105,6 @@ expect(requestSpy).toHaveBeenCalledWith('pageview', getDefaultData(), undefined);

test('accepts data on pageview', () => {
const { pageView } = tracker_1.default();
const { trackPageview } = tracker_1.default();
expect(requestSpy).not.toHaveBeenCalled();
const config = getCustomData();
pageView(config);
trackPageview(config);
expect(requestSpy).toHaveBeenCalled();

@@ -114,6 +114,6 @@ expect(requestSpy).toHaveBeenCalledWith('pageview', config, undefined);

test('accepts event options on pageview', () => {
const { pageView } = tracker_1.default();
const { trackPageview } = tracker_1.default();
expect(requestSpy).not.toHaveBeenCalled();
const options = getEventOptions();
pageView({}, options);
trackPageview({}, options);
expect(requestSpy).toHaveBeenCalled();

@@ -123,7 +123,7 @@ expect(requestSpy).toHaveBeenCalledWith('pageview', getDefaultData(), options);

});
describe('enableAutoPageViews', () => {
describe('enableAutoPageviews', () => {
test('tracks first pageview', () => {
const { enableAutoPageViews } = tracker_1.default();
const { enableAutoPageviews } = tracker_1.default();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledWith('pageview', getDefaultData(), undefined);

@@ -134,6 +134,6 @@ cleanup();

const originalPushState = history.pushState;
const { enableAutoPageViews } = tracker_1.default();
const { enableAutoPageviews } = tracker_1.default();
expect(requestSpy).not.toHaveBeenCalled();
history.pushState = null;
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -146,5 +146,5 @@ window.dispatchEvent(new PopStateEvent('popstate'));

test('tracks pageviews on push state', () => {
const { enableAutoPageViews } = tracker_1.default();
const { enableAutoPageviews } = tracker_1.default();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -156,5 +156,5 @@ history.pushState({}, 'second', '/url');

test('tracks pageviews on popstate', () => {
const { enableAutoPageViews } = tracker_1.default();
const { enableAutoPageviews } = tracker_1.default();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -166,5 +166,5 @@ window.dispatchEvent(new PopStateEvent('popstate'));

test('does not track hashchange by default', () => {
const { enableAutoPageViews } = tracker_1.default();
const { enableAutoPageviews } = tracker_1.default();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -176,5 +176,5 @@ window.dispatchEvent(new HashChangeEvent('hashchange'));

test('tracks hashchange if specified', () => {
const { enableAutoPageViews } = tracker_1.default({ hashMode: true });
const { enableAutoPageviews } = tracker_1.default({ hashMode: true });
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -187,2 +187,2 @@ window.dispatchEvent(new HashChangeEvent('hashchange'));

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhY2tlci5zcGVjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFja2VyLnNwZWMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsOENBQThDO0FBQzlDLHlEQUEyQztBQUMzQyx3REFBd0Q7QUFFeEQsTUFBTSxVQUFVLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxhQUFhLEVBQUUsV0FBVyxDQUFDLENBQUM7QUFFMUQsVUFBVSxDQUFDLEdBQUcsRUFBRTtJQUNkLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQztJQUNyQixVQUFVLENBQUMsa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SxDQUFDLElBQUksZUFBZSxDQUFDLFlBQVksQ0FBQyxDQUFDLENBQUM7WUFDeEQsTUFBTSxDQUFDLFVBQVUsQ0FBQyxDQUFDLHFCQUFxQixDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQzVDLE9BQU8sRUFBRSxDQUFDO1FBQ1osQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0=
import { EventOptions } from './request';
/**
* Options used when tracking Plausible events.
* Options used when initializing the tracker.
*/
export declare type PlausibleOptions = {
export declare type PlausibleInitOptions = {
/**

@@ -16,2 +16,17 @@ * If true, pageviews will be tracked when the URL hash changes.

/**
* The domain to bind the event to.
* Defaults to `location.hostname`
*/
readonly domain?: Location['hostname'];
/**
* The API host where the events will be sent.
* Defaults to `'https://plausible.io'`
*/
readonly apiHost?: string;
};
/**
* Options used when tracking Plausible events.
*/
export declare type PlausibleOptions = PlausibleInitOptions & {
/**
* The URL to bind the event to.

@@ -22,7 +37,2 @@ * Defaults to `location.href`.

/**
* The domain to bind the event to.
* Defaults to `location.hostname`
*/
readonly domain?: Location['hostname'];
/**
* The referrer to bind the event to.

@@ -37,7 +47,2 @@ * Defaults to `document.referrer`

readonly deviceWidth?: Window['innerWidth'];
/**
* The API host where the events will be sent.
* Defaults to `'https://plausible.io'`
*/
readonly apiHost?: string;
};

@@ -71,6 +76,6 @@ /**

*
* const { pageView } = Plausible()
* const { trackPageview } = Plausible()
*
* // Track a page view
* pageView()
* trackPageview()
* ```

@@ -81,3 +86,3 @@ *

*/
declare type PageView = (eventData?: PlausibleOptions, options?: EventOptions) => void;
declare type TrackPageview = (eventData?: PlausibleOptions, options?: EventOptions) => void;
/**

@@ -96,6 +101,6 @@ * Cleans up all event listeners attached.

*
* const { enableAutoPageViews } = Plausible()
* const { enableAutoPageviews } = Plausible()
*
* // This tracks the current page view and all future ones as well
* enableAutoPageViews()
* enableAutoPageviews()
* ```

@@ -107,5 +112,5 @@ *

*
* const { enableAutoPageViews } = Plausible()
* const { enableAutoPageviews } = Plausible()
*
* const cleanup = enableAutoPageViews()
* const cleanup = enableAutoPageviews()
*

@@ -116,3 +121,3 @@ * // Remove event listeners and restore `history.pushState`

*/
declare type EnableAutoPageViews = () => Cleanup;
declare type EnableAutoPageviews = () => Cleanup;
/**

@@ -125,3 +130,3 @@ * Initializes the tracker with your default values.

*
* const { enableAutoPageViews, trackEvent } = Plausible({
* const { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -131,3 +136,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -143,3 +148,3 @@ * function onUserRegister() {

*
* var { enableAutoPageViews, trackEvent } = Plausible({
* var { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -149,3 +154,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -159,7 +164,7 @@ * function onUserRegister() {

*/
export default function Plausible(defaults?: PlausibleOptions): {
export default function Plausible(defaults?: PlausibleInitOptions): {
readonly trackEvent: TrackEvent;
readonly pageView: PageView;
readonly enableAutoPageViews: EnableAutoPageViews;
readonly trackPageview: TrackPageview;
readonly enableAutoPageviews: EnableAutoPageviews;
};
export {};

@@ -9,3 +9,3 @@ import { sendEvent } from './request';

*
* const { enableAutoPageViews, trackEvent } = Plausible({
* const { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -15,3 +15,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -27,3 +27,3 @@ * function onUserRegister() {

*
* var { enableAutoPageViews, trackEvent } = Plausible({
* var { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -33,3 +33,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -57,7 +57,7 @@ * function onUserRegister() {

};
const pageView = (eventData, options) => {
const trackPageview = (eventData, options) => {
trackEvent('pageview', eventData, options);
};
const enableAutoPageViews = () => {
const page = () => pageView();
const enableAutoPageviews = () => {
const page = () => trackPageview();
// Attach pushState and popState listeners

@@ -78,3 +78,3 @@ const originalPushState = history.pushState;

// Trigger first page view
pageView();
trackPageview();
return function cleanup() {

@@ -91,4 +91,4 @@ if (originalPushState) {

};
return { trackEvent, pageView, enableAutoPageViews };
return { trackEvent, trackPageview, enableAutoPageviews };
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvdHJhY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWdCLFNBQVMsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQXVIcEQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW9DRztBQUNILE1BQU0sQ0FBQyxPQUFPLFVBQVUsU0FBUyxDQUMvQixRQUEyQjtJQU0zQixNQUFNLFNBQVMsR0FBRyxHQUErQixFQUFFLENBQUMsQ0FBQztRQUNuRCxRQUFRLEVBQUUsS0FBSztRQUNmLGNBQWMsRUFBRSxLQUFLO1FBQ3JCLEdBQUcsRUFBRSxRQUFRLENBQUMsSUFBSTtRQUNsQixNQUFNLEVBQUUsUUFBUSxDQUFDLFFBQVE7UUFDekIsUUFBUSxFQUFFLFFBQVEsQ0FBQyxRQUFRLElBQUksSUFBSTtRQUNuQyxXQUFXLEVBQUUsTUFBTSxDQUFDLFVBQVU7UUFDOUIsT0FBTyxFQUFFLHNCQUFzQjtRQUMvQixHQUFHLFFBQVE7S0FDWixDQUFDLENBQUM7SUFFSCxNQUFNLFVBQVUsR0FBZSxDQUM3QixTQUFpQixFQUNqQixTQUE0QixFQUM1QixPQUFzQixFQUN0QixFQUFFO1FBQ0YsU0FBUyxDQU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Z0IsQ0FBQyxZQUFZLEVBQUUsSUFBSSxDQUFDLENBQUM7U0FDdEM7UUFFRCwwQkFBMEI7UUFDMUIsYUFBYSxFQUFFLENBQUM7UUFFaEIsT0FBTyxTQUFTLE9BQU87WUFDckIsSUFBSSxpQkFBaUIsRUFBRTtnQkFDckIscURBQXFEO2dCQUNyRCxPQUFPLENBQUMsU0FBUyxHQUFHLGlCQUFpQixDQUFDO2dCQUN0QyxtQkFBbUIsQ0FBQyxVQUFVLEVBQUUsSUFBSSxDQUFDLENBQUM7YUFDdkM7WUFDRCxJQUFJLFFBQVEsSUFBSSxRQUFRLENBQUMsUUFBUSxFQUFFO2dCQUNqQyxtQkFBbUIsQ0FBQyxZQUFZLEVBQUUsSUFBSSxDQUFDLENBQUM7YUFDekM7UUFDSCxDQUFDLENBQUM7SUFDSixDQUFDLENBQUM7SUFFRixPQUFPLEVBQUUsVUFBVSxFQUFFLGFBQWEsRUFBRSxtQkFBbUIsRUFBRSxDQUFDO0FBQzVELENBQUMifQ==

@@ -73,5 +73,5 @@ /* eslint-disable functional/immutable-data */

test('tracks pageview', () => {
const { pageView } = Plausible();
const { trackPageview } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
pageView();
trackPageview();
expect(requestSpy).toHaveBeenCalled();

@@ -81,6 +81,6 @@ expect(requestSpy).toHaveBeenCalledWith('pageview', getDefaultData(), undefined);

test('accepts data on pageview', () => {
const { pageView } = Plausible();
const { trackPageview } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const config = getCustomData();
pageView(config);
trackPageview(config);
expect(requestSpy).toHaveBeenCalled();

@@ -90,6 +90,6 @@ expect(requestSpy).toHaveBeenCalledWith('pageview', config, undefined);

test('accepts event options on pageview', () => {
const { pageView } = Plausible();
const { trackPageview } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const options = getEventOptions();
pageView({}, options);
trackPageview({}, options);
expect(requestSpy).toHaveBeenCalled();

@@ -99,7 +99,7 @@ expect(requestSpy).toHaveBeenCalledWith('pageview', getDefaultData(), options);

});
describe('enableAutoPageViews', () => {
describe('enableAutoPageviews', () => {
test('tracks first pageview', () => {
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledWith('pageview', getDefaultData(), undefined);

@@ -110,6 +110,6 @@ cleanup();

const originalPushState = history.pushState;
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
history.pushState = null;
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -122,5 +122,5 @@ window.dispatchEvent(new PopStateEvent('popstate'));

test('tracks pageviews on push state', () => {
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -132,5 +132,5 @@ history.pushState({}, 'second', '/url');

test('tracks pageviews on popstate', () => {
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -142,5 +142,5 @@ window.dispatchEvent(new PopStateEvent('popstate'));

test('does not track hashchange by default', () => {
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -152,5 +152,5 @@ window.dispatchEvent(new HashChangeEvent('hashchange'));

test('tracks hashchange if specified', () => {
const { enableAutoPageViews } = Plausible({ hashMode: true });
const { enableAutoPageviews } = Plausible({ hashMode: true });
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -163,2 +163,2 @@ window.dispatchEvent(new HashChangeEvent('hashchange'));

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhY2tlci5zcGVjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFja2VyLnNwZWMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsOENBQThDO0FBQzlDLE9BQU8sS0FBSyxhQUFhLE1BQU0sV0FBVyxDQUFDO0FBQzNDLE9BQU8sU0FBK0IsTUFBTSxXQUFXLENBQUM7QUFFeEQsTUFBTSxVQUFVLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxhQUFhLEVBQUUsV0FBVyxDQUFDLENBQUM7QUFFMUQsVUFBVSxDQUFDLEdBQUcsRUFBRTtJQUNkLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQztJQUNyQixVQUFVLENBQUMsa0JBQWtCLEVBQUUsQ0FBQztBQUNsQyxDQUFDLENBQUMsQ0FBQztBQUVILFFBQVEsQ0FBQyxTQUFTLEVBQUUsR0FBRyxFQUFFO0lBQ3ZCLE1BQU0sY0FBYyxHQUFxQyxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzlELFFBQVEsRUFBRSxLQUFLO1FBQ2YsY0FBYyxFQUFFLEtBQUs7UUFDckIsR0FBRyxFQUFFLFFBQVEsQ0FBQyxJQUFJO1FBQ2xCLE1BQU0sRUFBRSxRQUFRLENBQUMsUUFBUTtRQUN6QixRQUFRLEVBQUUsUUFBUSxDQUFDLFFBQVEsSUFBSSxJQUFJO1FBQ25DLFdBQVcsRUFBRSxNQUFNLENBQUMsVUFBVTtRQUM5QixPQUFPLEVBQUUsc0JBQXNCO0tBQ2hDLENBQUMsQ0FBQztJQUVILE1BQ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FBQyxJQUFJLGVBQWUsQ0FBQyxZQUFZLENBQUMsQ0FBQyxDQUFDO1lBQ3hELE1BQU0sQ0FBQyxVQUFVLENBQUMsQ0FBQyxxQkFBcUIsQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUM1QyxPQUFPLEVBQUUsQ0FBQztRQUNaLENBQUMsQ0FBQyxDQUFDO1FBQ0gsSUFBSSxDQUFDLGdDQUFnQyxFQUFFLEdBQUcsRUFBRTtZQUMxQyxNQUFNLEVBQUUsbUJBQW1CLEVBQUUsR0FBRyxTQUFTLENBQUMsRUFBRSxRQUFRLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQztZQUM5RCxNQUFNLENBQUMsVUFBVSxDQUFDLENBQUMsR0FBRyxDQUFDLGdCQUFnQixFQUFFLENBQUM7WUFDMUMsTUFBTSxPQUFPLEdBQUcsbUJBQW1CLEVBQUUsQ0FBQztZQUN0QyxNQUFNLENBQUMsVUFBVSxDQUFDLENBQUMscUJBQXFCLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDNUMsTUFBTSxDQUFDLGFBQWEsQ0FBQyxJQUFJLGVBQWUsQ0FBQyxZQUFZLENBQUMsQ0FBQyxDQUFDO1lBQ3hELE1BQU0sQ0FBQyxVQUFVLENBQUMsQ0FBQyxxQkFBcUIsQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUM1QyxPQUFPLEVBQUUsQ0FBQztRQUNaLENBQUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9

@@ -5,2 +5,16 @@ # Changelog

## [0.2.0](https://github.com/Maronato/plausible-tracker/compare/v0.1.11...v0.2.0) (2020-10-15)
### ⚠ BREAKING CHANGES
* **tracker:** Removed `url`, `referrer` and `deviceWidth` from the type definitions of the
initialization function.
* **tracker:** `pageView()` becomes `trackPageview()` and `enableAutoPageViews()` becomes
`enableAutoPageviews()` Their type aliases names also changed, so `PageView` becomes `TrackPageview`
and `EnableAutoPageViews` becomes `EnableAutoPageviews`.
* **tracker:** "PageViews" are now a single word "pageview" ([892d8fe](https://github.com/Maronato/plausible-tracker/commit/892d8feb5941cc05c25f91b2e729e8676b9475c5))
* **tracker:** the initialization function now takes only a subset of all event options ([c7f1590](https://github.com/Maronato/plausible-tracker/commit/c7f1590101241961033000322c57e907dd55d51c))
### [0.1.11](https://github.com/Maronato/plausible-tracker/compare/v0.1.10...v0.1.11) (2020-10-12)

@@ -7,0 +21,0 @@

{"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/request.ts": {"path":"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/request.ts","statementMap":{"0":{"start":{"line":32,"column":4},"end":{"line":34,"column":38}},"1":{"start":{"line":36,"column":2},"end":{"line":40,"column":null}},"2":{"start":{"line":37,"column":4},"end":{"line":39,"column":6}},"3":{"start":{"line":42,"column":32},"end":{"line":49,"column":4}},"4":{"start":{"line":51,"column":14},"end":{"line":51,"column":34}},"5":{"start":{"line":52,"column":2},"end":{"line":52,"column":54}},"6":{"start":{"line":53,"column":2},"end":{"line":53,"column":53}},"7":{"start":{"line":54,"column":2},"end":{"line":54,"column":36}},"8":{"start":{"line":56,"column":2},"end":{"line":61,"column":4}},"9":{"start":{"line":57,"column":4},"end":{"line":57,"column":37}},"10":{"start":{"line":57,"column":30},"end":{"line":57,"column":37}},"11":{"start":{"line":58,"column":4},"end":{"line":60,"column":null}},"12":{"start":{"line":59,"column":6},"end":{"line":59,"column":25}},"13":{"start":{"line":26,"column":0},"end":{"line":26,"column":16}}},"fnMap":{"0":{"name":"sendEvent","decl":{"start":{"line":26,"column":16},"end":{"line":26,"column":25}},"loc":{"start":{"line":29,"column":24},"end":{"line":62,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":56,"column":27},"end":{"line":56,"column":30}},"loc":{"start":{"line":56,"column":32},"end":{"line":61,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":32,"column":4},"end":{"line":33,"column":null}},"type":"binary-expr","locations":[{"start":{"line":32,"column":4},"end":{"line":33,"column":null}},{"start":{"line":34,"column":9},"end":{"line":34,"column":38}}]},"1":{"loc":{"start":{"line":36,"column":2},"end":{"line":40,"column":null}},"type":"if","locations":[{"start":{"line":36,"column":2},"end":{"line":40,"column":null}},{"start":{"line":36,"column":2},"end":{"line":40,"column":null}}]},"2":{"loc":{"start":{"line":36,"column":6},"end":{"line":36,"column":26}},"type":"binary-expr","locations":[{"start":{"line":36,"column":6},"end":{"line":36,"column":26}},{"start":{"line":36,"column":30},"end":{"line":36,"column":41}}]},"3":{"loc":{"start":{"line":48,"column":23},"end":{"line":48,"column":24}},"type":"cond-expr","locations":[{"start":{"line":48,"column":23},"end":{"line":48,"column":24}},{"start":{"line":48,"column":27},"end":{"line":48,"column":28}}]},"4":{"loc":{"start":{"line":57,"column":4},"end":{"line":57,"column":37}},"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":57,"column":37}},{"start":{"line":57,"column":4},"end":{"line":57,"column":37}}]},"5":{"loc":{"start":{"line":58,"column":4},"end":{"line":60,"column":null}},"type":"if","locations":[{"start":{"line":58,"column":4},"end":{"line":60,"column":null}},{"start":{"line":58,"column":4},"end":{"line":60,"column":null}}]},"6":{"loc":{"start":{"line":58,"column":8},"end":{"line":58,"column":15}},"type":"binary-expr","locations":[{"start":{"line":58,"column":8},"end":{"line":58,"column":15}},{"start":{"line":58,"column":19},"end":{"line":58,"column":35}}]}},"s":{"0":6,"1":6,"2":2,"3":4,"4":4,"5":4,"6":4,"7":4,"8":4,"9":3,"10":1,"11":2,"12":1,"13":2},"f":{"0":6,"1":3},"b":{"0":[6,4],"1":[2,4],"2":[6,5],"3":[1,3],"4":[1,2],"5":[1,1],"6":[2,1]}}
,"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/tracker.ts": {"path":"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/tracker.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},"1":{"start":{"line":164,"column":20},"end":{"line":172,"column":null}},"2":{"start":{"line":164,"column":54},"end":{"line":172,"column":null}},"3":{"start":{"line":175,"column":33},"end":{"line":181,"column":3}},"4":{"start":{"line":180,"column":4},"end":{"line":180,"column":68}},"5":{"start":{"line":183,"column":29},"end":{"line":188,"column":3}},"6":{"start":{"line":187,"column":4},"end":{"line":187,"column":47}},"7":{"start":{"line":190,"column":51},"end":{"line":221,"column":3}},"8":{"start":{"line":191,"column":17},"end":{"line":191,"column":33}},"9":{"start":{"line":191,"column":23},"end":{"line":191,"column":33}},"10":{"start":{"line":193,"column":30},"end":{"line":193,"column":47}},"11":{"start":{"line":194,"column":4},"end":{"line":201,"column":null}},"12":{"start":{"line":196,"column":6},"end":{"line":199,"column":8}},"13":{"start":{"line":197,"column":8},"end":{"line":197,"column":58}},"14":{"start":{"line":198,"column":8},"end":{"line":198,"column":15}},"15":{"start":{"line":200,"column":6},"end":{"line":200,"column":41}},"16":{"start":{"line":204,"column":4},"end":{"line":206,"column":null}},"17":{"start":{"line":205,"column":6},"end":{"line":205,"column":43}},"18":{"start":{"line":209,"column":4},"end":{"line":209,"column":15}},"19":{"start":{"line":211,"column":4},"end":{"line":220,"column":6}},"20":{"start":{"line":212,"column":6},"end":{"line":216,"column":null}},"21":{"start":{"line":214,"column":8},"end":{"line":214,"column":46}},"22":{"start":{"line":215,"column":8},"end":{"line":215,"column":46}},"23":{"start":{"line":217,"column":6},"end":{"line":219,"column":null}},"24":{"start":{"line":218,"column":8},"end":{"line":218,"column":48}},"25":{"start":{"line":223,"column":2},"end":{"line":223,"column":55}},"26":{"start":{"line":157,"column":0},"end":{"line":157,"column":24}}},"fnMap":{"0":{"name":"Plausible","decl":{"start":{"line":157,"column":24},"end":{"line":157,"column":33}},"loc":{"start":{"line":158,"column":29},"end":{"line":224,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":164,"column":20},"end":{"line":164,"column":51}},"loc":{"start":{"line":164,"column":54},"end":{"line":172,"column":null}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":175,"column":33},"end":{"line":175,"column":null}},"loc":{"start":{"line":179,"column":6},"end":{"line":181,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":183,"column":29},"end":{"line":183,"column":null}},"loc":{"start":{"line":186,"column":6},"end":{"line":188,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":190,"column":51},"end":{"line":190,"column":54}},"loc":{"start":{"line":190,"column":56},"end":{"line":221,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":191,"column":17},"end":{"line":191,"column":20}},"loc":{"start":{"line":191,"column":23},"end":{"line":191,"column":33}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":196,"column":26},"end":{"line":196,"column":36}},"loc":{"start":{"line":196,"column":52},"end":{"line":199,"column":7}}},"7":{"name":"cleanup","decl":{"start":{"line":211,"column":20},"end":{"line":211,"column":27}},"loc":{"start":{"line":211,"column":27},"end":{"line":220,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":169,"column":14},"end":{"line":169,"column":31}},"type":"binary-expr","locations":[{"start":{"line":169,"column":14},"end":{"line":169,"column":31}},{"start":{"line":169,"column":35},"end":{"line":169,"column":39}}]},"1":{"loc":{"start":{"line":194,"column":4},"end":{"line":201,"column":null}},"type":"if","locations":[{"start":{"line":194,"column":4},"end":{"line":201,"column":null}},{"start":{"line":194,"column":4},"end":{"line":201,"column":null}}]},"2":{"loc":{"start":{"line":204,"column":4},"end":{"line":206,"column":null}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":206,"column":null}},{"start":{"line":204,"column":4},"end":{"line":206,"column":null}}]},"3":{"loc":{"start":{"line":204,"column":8},"end":{"line":204,"column":16}},"type":"binary-expr","locations":[{"start":{"line":204,"column":8},"end":{"line":204,"column":16}},{"start":{"line":204,"column":20},"end":{"line":204,"column":37}}]},"4":{"loc":{"start":{"line":212,"column":6},"end":{"line":216,"column":null}},"type":"if","locations":[{"start":{"line":212,"column":6},"end":{"line":216,"column":null}},{"start":{"line":212,"column":6},"end":{"line":216,"column":null}}]},"5":{"loc":{"start":{"line":217,"column":6},"end":{"line":219,"column":null}},"type":"if","locations":[{"start":{"line":217,"column":6},"end":{"line":219,"column":null}},{"start":{"line":217,"column":6},"end":{"line":219,"column":null}}]},"6":{"loc":{"start":{"line":217,"column":10},"end":{"line":217,"column":18}},"type":"binary-expr","locations":[{"start":{"line":217,"column":10},"end":{"line":217,"column":18}},{"start":{"line":217,"column":22},"end":{"line":217,"column":39}}]}},"s":{"0":1,"1":14,"2":17,"3":14,"4":17,"5":14,"6":12,"7":14,"8":6,"9":3,"10":6,"11":6,"12":5,"13":1,"14":1,"15":5,"16":6,"17":1,"18":6,"19":6,"20":6,"21":5,"22":5,"23":6,"24":1,"25":14,"26":1},"f":{"0":14,"1":17,"2":17,"3":12,"4":6,"5":3,"6":1,"7":6},"b":{"0":[17,17],"1":[5,1],"2":[1,5],"3":[6,1],"4":[5,1],"5":[1,5],"6":[6,1]}}
,"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/tracker.ts": {"path":"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/tracker.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},"1":{"start":{"line":173,"column":20},"end":{"line":181,"column":null}},"2":{"start":{"line":173,"column":54},"end":{"line":181,"column":null}},"3":{"start":{"line":184,"column":33},"end":{"line":186,"column":3}},"4":{"start":{"line":185,"column":4},"end":{"line":185,"column":68}},"5":{"start":{"line":188,"column":39},"end":{"line":190,"column":3}},"6":{"start":{"line":189,"column":4},"end":{"line":189,"column":47}},"7":{"start":{"line":192,"column":51},"end":{"line":223,"column":3}},"8":{"start":{"line":193,"column":17},"end":{"line":193,"column":38}},"9":{"start":{"line":193,"column":23},"end":{"line":193,"column":38}},"10":{"start":{"line":195,"column":30},"end":{"line":195,"column":47}},"11":{"start":{"line":196,"column":4},"end":{"line":203,"column":null}},"12":{"start":{"line":198,"column":6},"end":{"line":201,"column":8}},"13":{"start":{"line":199,"column":8},"end":{"line":199,"column":58}},"14":{"start":{"line":200,"column":8},"end":{"line":200,"column":15}},"15":{"start":{"line":202,"column":6},"end":{"line":202,"column":41}},"16":{"start":{"line":206,"column":4},"end":{"line":208,"column":null}},"17":{"start":{"line":207,"column":6},"end":{"line":207,"column":43}},"18":{"start":{"line":211,"column":4},"end":{"line":211,"column":20}},"19":{"start":{"line":213,"column":4},"end":{"line":222,"column":6}},"20":{"start":{"line":214,"column":6},"end":{"line":218,"column":null}},"21":{"start":{"line":216,"column":8},"end":{"line":216,"column":46}},"22":{"start":{"line":217,"column":8},"end":{"line":217,"column":46}},"23":{"start":{"line":219,"column":6},"end":{"line":221,"column":null}},"24":{"start":{"line":220,"column":8},"end":{"line":220,"column":48}},"25":{"start":{"line":225,"column":2},"end":{"line":225,"column":60}},"26":{"start":{"line":166,"column":0},"end":{"line":166,"column":24}}},"fnMap":{"0":{"name":"Plausible","decl":{"start":{"line":166,"column":24},"end":{"line":166,"column":33}},"loc":{"start":{"line":167,"column":33},"end":{"line":226,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":173,"column":20},"end":{"line":173,"column":51}},"loc":{"start":{"line":173,"column":54},"end":{"line":181,"column":null}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":184,"column":33},"end":{"line":184,"column":34}},"loc":{"start":{"line":184,"column":67},"end":{"line":186,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":188,"column":39},"end":{"line":188,"column":40}},"loc":{"start":{"line":188,"column":62},"end":{"line":190,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":192,"column":51},"end":{"line":192,"column":54}},"loc":{"start":{"line":192,"column":56},"end":{"line":223,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":193,"column":17},"end":{"line":193,"column":20}},"loc":{"start":{"line":193,"column":23},"end":{"line":193,"column":38}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":198,"column":26},"end":{"line":198,"column":36}},"loc":{"start":{"line":198,"column":52},"end":{"line":201,"column":7}}},"7":{"name":"cleanup","decl":{"start":{"line":213,"column":20},"end":{"line":213,"column":27}},"loc":{"start":{"line":213,"column":27},"end":{"line":222,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":178,"column":14},"end":{"line":178,"column":31}},"type":"binary-expr","locations":[{"start":{"line":178,"column":14},"end":{"line":178,"column":31}},{"start":{"line":178,"column":35},"end":{"line":178,"column":39}}]},"1":{"loc":{"start":{"line":196,"column":4},"end":{"line":203,"column":null}},"type":"if","locations":[{"start":{"line":196,"column":4},"end":{"line":203,"column":null}},{"start":{"line":196,"column":4},"end":{"line":203,"column":null}}]},"2":{"loc":{"start":{"line":206,"column":4},"end":{"line":208,"column":null}},"type":"if","locations":[{"start":{"line":206,"column":4},"end":{"line":208,"column":null}},{"start":{"line":206,"column":4},"end":{"line":208,"column":null}}]},"3":{"loc":{"start":{"line":206,"column":8},"end":{"line":206,"column":16}},"type":"binary-expr","locations":[{"start":{"line":206,"column":8},"end":{"line":206,"column":16}},{"start":{"line":206,"column":20},"end":{"line":206,"column":37}}]},"4":{"loc":{"start":{"line":214,"column":6},"end":{"line":218,"column":null}},"type":"if","locations":[{"start":{"line":214,"column":6},"end":{"line":218,"column":null}},{"start":{"line":214,"column":6},"end":{"line":218,"column":null}}]},"5":{"loc":{"start":{"line":219,"column":6},"end":{"line":221,"column":null}},"type":"if","locations":[{"start":{"line":219,"column":6},"end":{"line":221,"column":null}},{"start":{"line":219,"column":6},"end":{"line":221,"column":null}}]},"6":{"loc":{"start":{"line":219,"column":10},"end":{"line":219,"column":18}},"type":"binary-expr","locations":[{"start":{"line":219,"column":10},"end":{"line":219,"column":18}},{"start":{"line":219,"column":22},"end":{"line":219,"column":39}}]}},"s":{"0":1,"1":14,"2":17,"3":14,"4":17,"5":14,"6":12,"7":14,"8":6,"9":3,"10":6,"11":6,"12":5,"13":1,"14":1,"15":5,"16":6,"17":1,"18":6,"19":6,"20":6,"21":5,"22":5,"23":6,"24":1,"25":14,"26":1},"f":{"0":14,"1":17,"2":17,"3":12,"4":6,"5":3,"6":1,"7":6},"b":{"0":[17,17],"1":[5,1],"2":[1,5],"3":[6,1],"4":[5,1],"5":[1,5],"6":[6,1]}}
}
{
"name": "plausible-tracker",
"version": "0.1.11",
"version": "0.2.0",
"description": "Unofficial frontend tracker to interact with Plausible Analytics",

@@ -5,0 +5,0 @@ "main": "build/main/index.js",

@@ -52,19 +52,16 @@ # Plausible Analytics Tracker

`Plausible()` accepts some optional options that you may want to provide:
`Plausible()` accepts some [options](https://maronato.github.io/plausible-tracker/globals.html#plausibleinitoptions) that you may want to provide:
| Option | Type | Description | Default |
| -------------- | --------------- | ----------------------------------------------------------------- | --------------------------- |
| domain | `string` | Your site's domain, as declared by you in Plausible's settings | `location.hostname` |
| hashMode | `bool` | Enables tracking based on URL hash changes. | `false` |
| trackLocalhost | `bool` | Enables tracking on *localhost*. | `false` |
| url | `string` | Current page's URL. | `location.href` |
| referrer | `string | null` | Referrer's address | `document.referrer || null` |
| deviceWidth | `number` | User's device width for device tracking. | `window.innerWidth` |
| apiHost | `string` | Plausible's API host to use. Change this if you are self-hosting. | `'https://plausible.io'` |
| Option | Type | Description | Default |
| -------------- | -------- | ----------------------------------------------------------------- | ------------------------ |
| domain | `string` | Your site's domain, as declared by you in Plausible's settings | `location.hostname` |
| hashMode | `bool` | Enables tracking based on URL hash changes. | `false` |
| trackLocalhost | `bool` | Enables tracking on *localhost*. | `false` |
| apiHost | `string` | Plausible's API host to use. Change this if you are self-hosting. | `'https://plausible.io'` |
The object returned from `Plausible()` contains the functions that you'll use to track your events. These functions are:
- `pageView()`: Tracks a single page view.
- `trackEvent()`: Tracks custom events and goals
- `enableAutoPageViews()`: Enables automatic page view tracking for SPAs
- [`trackPageview()`](https://maronato.github.io/plausible-tracker/globals.html#trackpageview): Tracks a single page view.
- [`trackEvent()`](https://maronato.github.io/plausible-tracker/globals.html#trackevent): Tracks custom events and goals
- [`enableAutoPageviews()`](https://maronato.github.io/plausible-tracker/globals.html#enableautopageviews): Enables automatic page view tracking for SPAs

@@ -75,3 +72,3 @@ For the complete documentation on these functions and their parameters, check out the [reference documentation](https://maronato.github.io/plausible-tracker/).

To track a page view, use the `pageView` function provided
To track a page view, use the `trackPageview` function provided

@@ -81,23 +78,35 @@ ```ts

const { pageView } = Plausible()
const { trackPageview } = Plausible()
// Track a page view
pageView()
trackPageview()
```
You may also override the values you provided when initializing the tracker by passing a similar object as the first parameter:
You may also override the values you provided when initializing the tracker by passing a [similar object](https://maronato.github.io/plausible-tracker/globals.html#plausibleinitoptions) as the first parameter.
This object takes the same options as the initialization one, plus the following:
| Option | Type | Description | Default |
| ----------- | ------------------ | ---------------------------------------- | ------------------- |
| url | `string` | Current page's URL. | `location.href` |
| referrer | `string` or `null` | Referrer's address | `document.referrer` |
| deviceWidth | `number` | User's device width for device tracking. | `window.innerWidth` |
```ts
import Plausible from 'plausible-tracker'
const { pageView } = Plausible({
// Provide a default referrer
referrer: "facebook.com",
const { trackPageview } = Plausible({
// Track localhost by default
trackLocalhost: true,
})
// And override it on this call
pageView({ referrer: "google.com" })
// Override it on this call and also set a custom url
trackPageview({
trackLocalhost: false,
url: "https://my-app.com/my-url"
})
```
The second parameter is an object with some options similar to the ones provided by the [official Plausible script](https://docs.plausible.io/custom-event-goals).
The second parameter is an object with [some options](https://maronato.github.io/plausible-tracker/globals.html#eventoptions) similar to the ones provided by the [official Plausible script](https://docs.plausible.io/custom-event-goals).

@@ -109,6 +118,6 @@ The only supported option at the moment is `callback` – a function that is called once the event is logged successfully.

const { pageView } = Plausible()
const { trackPageview } = Plausible()
// And override it on this call
pageView({}, { callback: () => console.log("Done!") })
trackPageview({}, { callback: () => console.log("Done!") })
```

@@ -118,3 +127,3 @@

If your app is an SPA that uses JS-based routing, you'll need to use browser events to manually track page views. A built-in function `enableAutoPageViews` enables automatic tracking for you so you don't need to write custom logic.
If your app is a SPA that uses JS-based routing, you'll need to use browser events to manually track page views. A built-in function `enableAutoPageviews` enables automatic tracking for you so you don't need to write custom logic.

@@ -124,6 +133,6 @@ ```ts

const { enableAutoPageViews } = Plausible()
const { enableAutoPageviews } = Plausible()
// This tracks the current page view and all future ones as well
enableAutoPageViews()
enableAutoPageviews()
```

@@ -136,3 +145,3 @@

const { enableAutoPageViews } = Plausible({
const { enableAutoPageviews } = Plausible({
hashMode: true

@@ -142,10 +151,10 @@ })

// Hash changes will also trigger page views
enableAutoPageViews()
enableAutoPageviews()
```
The way it works is by overriding `history.pushState` and attaching event listeners to `popstate` and `hashchange` (only if you set `hashMode` to `true`). If your frontend framework uses other methods to manage navigation, you might want to write your own logic using `pageView` to manually trigger page views.
The way it works is by overriding `history.pushState` and attaching event listeners to `popstate` and `hashchange` (only if you set `hashMode` to `true`). If your frontend framework uses other methods to manage navigation, you might want to write your own logic using `trackPageview` to manually trigger page views.
#### Cleaning up the event listeners
When you call `enableAutoPageViews()`, it adds some event listeners and overrides `history.pushState`. To remove them and restore `history.pushState`, call the cleanup function returned by `enableAutoPageViews()`:
When you call `enableAutoPageviews()`, it adds some event listeners and overrides `history.pushState`. To remove them and restore `history.pushState`, call the cleanup function returned by `enableAutoPageviews()`:

@@ -155,5 +164,5 @@ ```ts

const { enableAutoPageViews } = Plausible()
const { enableAutoPageviews } = Plausible()
const cleanup = enableAutoPageViews()
const cleanup = enableAutoPageviews()

@@ -179,3 +188,3 @@ // ...

As with [`pageView`](#tracking-page-views), you may also provide override values and a callback as the second and third parameters respectively:
As with [`trackPageview`](#tracking-page-views), you may also provide override values and a callback as the second and third parameters respectively:

@@ -186,3 +195,3 @@ ```ts

const { trackEvent } = Plausible({
referrer: 'facebook.com',
trackLocalhost: false,
})

@@ -193,3 +202,3 @@

'signup',
{ referrer: 'google.com' },
{ trackLocalhost: true },
{ callback: () => console.log('done') }

@@ -196,0 +205,0 @@ );

@@ -91,5 +91,5 @@ /* eslint-disable functional/immutable-data */

test('tracks pageview', () => {
const { pageView } = Plausible();
const { trackPageview } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
pageView();
trackPageview();
expect(requestSpy).toHaveBeenCalled();

@@ -103,6 +103,6 @@ expect(requestSpy).toHaveBeenCalledWith(

test('accepts data on pageview', () => {
const { pageView } = Plausible();
const { trackPageview } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const config: PlausibleOptions = getCustomData();
pageView(config);
trackPageview(config);
expect(requestSpy).toHaveBeenCalled();

@@ -112,6 +112,6 @@ expect(requestSpy).toHaveBeenCalledWith('pageview', config, undefined);

test('accepts event options on pageview', () => {
const { pageView } = Plausible();
const { trackPageview } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const options: requestModule.EventOptions = getEventOptions();
pageView({}, options);
trackPageview({}, options);
expect(requestSpy).toHaveBeenCalled();

@@ -125,7 +125,7 @@ expect(requestSpy).toHaveBeenCalledWith(

});
describe('enableAutoPageViews', () => {
describe('enableAutoPageviews', () => {
test('tracks first pageview', () => {
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledWith(

@@ -140,6 +140,6 @@ 'pageview',

const originalPushState = history.pushState;
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
history.pushState = (null as unknown) as History['pushState'];
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -152,5 +152,5 @@ window.dispatchEvent(new PopStateEvent('popstate'));

test('tracks pageviews on push state', () => {
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -162,5 +162,5 @@ history.pushState({}, 'second', '/url');

test('tracks pageviews on popstate', () => {
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -172,5 +172,5 @@ window.dispatchEvent(new PopStateEvent('popstate'));

test('does not track hashchange by default', () => {
const { enableAutoPageViews } = Plausible();
const { enableAutoPageviews } = Plausible();
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -182,5 +182,5 @@ window.dispatchEvent(new HashChangeEvent('hashchange'));

test('tracks hashchange if specified', () => {
const { enableAutoPageViews } = Plausible({ hashMode: true });
const { enableAutoPageviews } = Plausible({ hashMode: true });
expect(requestSpy).not.toHaveBeenCalled();
const cleanup = enableAutoPageViews();
const cleanup = enableAutoPageviews();
expect(requestSpy).toHaveBeenCalledTimes(1);

@@ -187,0 +187,0 @@ window.dispatchEvent(new HashChangeEvent('hashchange'));

import { EventOptions, sendEvent } from './request';
/**
* Options used when tracking Plausible events.
* Options used when initializing the tracker.
*/
export type PlausibleOptions = {
export type PlausibleInitOptions = {
/**

@@ -17,2 +17,18 @@ * If true, pageviews will be tracked when the URL hash changes.

/**
* The domain to bind the event to.
* Defaults to `location.hostname`
*/
readonly domain?: Location['hostname'];
/**
* The API host where the events will be sent.
* Defaults to `'https://plausible.io'`
*/
readonly apiHost?: string;
};
/**
* Options used when tracking Plausible events.
*/
export type PlausibleOptions = PlausibleInitOptions & {
/**
* The URL to bind the event to.

@@ -23,7 +39,2 @@ * Defaults to `location.href`.

/**
* The domain to bind the event to.
* Defaults to `location.hostname`
*/
readonly domain?: Location['hostname'];
/**
* The referrer to bind the event to.

@@ -38,7 +49,2 @@ * Defaults to `document.referrer`

readonly deviceWidth?: Window['innerWidth'];
/**
* The API host where the events will be sent.
* Defaults to `'https://plausible.io'`
*/
readonly apiHost?: string;
};

@@ -78,6 +84,6 @@

*
* const { pageView } = Plausible()
* const { trackPageview } = Plausible()
*
* // Track a page view
* pageView()
* trackPageview()
* ```

@@ -88,3 +94,6 @@ *

*/
type PageView = (eventData?: PlausibleOptions, options?: EventOptions) => void;
type TrackPageview = (
eventData?: PlausibleOptions,
options?: EventOptions
) => void;

@@ -105,6 +114,6 @@ /**

*
* const { enableAutoPageViews } = Plausible()
* const { enableAutoPageviews } = Plausible()
*
* // This tracks the current page view and all future ones as well
* enableAutoPageViews()
* enableAutoPageviews()
* ```

@@ -116,5 +125,5 @@ *

*
* const { enableAutoPageViews } = Plausible()
* const { enableAutoPageviews } = Plausible()
*
* const cleanup = enableAutoPageViews()
* const cleanup = enableAutoPageviews()
*

@@ -125,3 +134,3 @@ * // Remove event listeners and restore `history.pushState`

*/
type EnableAutoPageViews = () => Cleanup;
type EnableAutoPageviews = () => Cleanup;

@@ -135,3 +144,3 @@ /**

*
* const { enableAutoPageViews, trackEvent } = Plausible({
* const { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -141,3 +150,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -153,3 +162,3 @@ * function onUserRegister() {

*
* var { enableAutoPageViews, trackEvent } = Plausible({
* var { enableAutoPageviews, trackEvent } = Plausible({
* domain: 'my-app-domain.com',

@@ -159,3 +168,3 @@ * hashMode: true

*
* enableAutoPageViews()
* enableAutoPageviews()
*

@@ -170,7 +179,7 @@ * function onUserRegister() {

export default function Plausible(
defaults?: PlausibleOptions
defaults?: PlausibleInitOptions
): {
readonly trackEvent: TrackEvent;
readonly pageView: PageView;
readonly enableAutoPageViews: EnableAutoPageViews;
readonly trackPageview: TrackPageview;
readonly enableAutoPageviews: EnableAutoPageviews;
} {

@@ -188,19 +197,12 @@ const getConfig = (): Required<PlausibleOptions> => ({

const trackEvent: TrackEvent = (
eventName: string,
eventData?: PlausibleOptions,
options?: EventOptions
) => {
const trackEvent: TrackEvent = (eventName, eventData, options) => {
sendEvent(eventName, { ...getConfig(), ...eventData }, options);
};
const pageView: PageView = (
eventData?: PlausibleOptions,
options?: EventOptions
) => {
const trackPageview: TrackPageview = (eventData, options) => {
trackEvent('pageview', eventData, options);
};
const enableAutoPageViews: EnableAutoPageViews = () => {
const page = () => pageView();
const enableAutoPageviews: EnableAutoPageviews = () => {
const page = () => trackPageview();
// Attach pushState and popState listeners

@@ -223,3 +225,3 @@ const originalPushState = history.pushState;

// Trigger first page view
pageView();
trackPageview();

@@ -238,3 +240,3 @@ return function cleanup() {

return { trackEvent, pageView, enableAutoPageViews };
return { trackEvent, trackPageview, enableAutoPageviews };
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc