next-plausible
Advanced tools
Comparing version 3.6.5 to 3.7.0
@@ -36,2 +36,6 @@ import React, { ReactNode } from 'react'; | ||
/** | ||
* Set this to true if you want to enable custom event tracking in HTML elements as described https://plausible.io/docs/custom-event-goals | ||
*/ | ||
taggedEvents?: boolean; | ||
/** | ||
* Set this if you want to exclude a set of pages from being tracked. See https://plausible.io/docs/excluding-pages for more details. | ||
@@ -38,0 +42,0 @@ */ |
@@ -48,2 +48,3 @@ import React, { useCallback } from 'react'; | ||
'file-downloads', | ||
'tagged-events', | ||
]; | ||
@@ -139,3 +140,3 @@ const getScriptPath = (options, ...modifiers) => { | ||
? proxyOptions.scriptName | ||
: getRemoteScriptName(domain, props.selfHosted) }), props.trackLocalhost ? 'local' : null, props.manualPageviews ? 'manual' : null, props.trackOutboundLinks ? 'outbound-links' : null, props.exclude ? 'exclusions' : null, props.trackFileDownloads ? 'file-downloads' : null), integrity: props.integrity, crossOrigin: props.integrity ? 'anonymous' : undefined }, props.scriptProps))), | ||
: getRemoteScriptName(domain, props.selfHosted) }), props.trackLocalhost ? 'local' : null, props.manualPageviews ? 'manual' : null, props.trackOutboundLinks ? 'outbound-links' : null, props.exclude ? 'exclusions' : null, props.trackFileDownloads ? 'file-downloads' : null, props.taggedEvents ? 'tagged-events' : null), integrity: props.integrity, crossOrigin: props.integrity ? 'anonymous' : undefined }, props.scriptProps))), | ||
enabled && (React.createElement(Script, { id: "next-plausible-init", dangerouslySetInnerHTML: { | ||
@@ -142,0 +143,0 @@ __html: `window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }`, |
@@ -57,2 +57,3 @@ 'use strict'; | ||
'file-downloads', | ||
'tagged-events', | ||
]; | ||
@@ -148,3 +149,3 @@ const getScriptPath = (options, ...modifiers) => { | ||
? proxyOptions.scriptName | ||
: getRemoteScriptName(domain, props.selfHosted) }), props.trackLocalhost ? 'local' : null, props.manualPageviews ? 'manual' : null, props.trackOutboundLinks ? 'outbound-links' : null, props.exclude ? 'exclusions' : null, props.trackFileDownloads ? 'file-downloads' : null), integrity: props.integrity, crossOrigin: props.integrity ? 'anonymous' : undefined }, props.scriptProps))), | ||
: getRemoteScriptName(domain, props.selfHosted) }), props.trackLocalhost ? 'local' : null, props.manualPageviews ? 'manual' : null, props.trackOutboundLinks ? 'outbound-links' : null, props.exclude ? 'exclusions' : null, props.trackFileDownloads ? 'file-downloads' : null, props.taggedEvents ? 'tagged-events' : null), integrity: props.integrity, crossOrigin: props.integrity ? 'anonymous' : undefined }, props.scriptProps))), | ||
enabled && (React__default["default"].createElement(Script__default["default"], { id: "next-plausible-init", dangerouslySetInnerHTML: { | ||
@@ -151,0 +152,0 @@ __html: `window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }`, |
{ | ||
"name": "next-plausible", | ||
"version": "3.6.5", | ||
"version": "3.7.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "dist" |
@@ -70,2 +70,3 @@ # Next-Plausible · [![npm version](https://img.shields.io/npm/v/next-plausible.svg?style=flat)](https://www.npmjs.com/package/next-plausible) | ||
| `trackFileDownloads` | Set this to `true` if you want to enable [file download tracking](https://plausible.io/docs/file-downloads-tracking). | | ||
| `taggedEvents` | Set this to `true` if you want to enable [custom event tracking in HTML elements](https://plausible.io/docs/custom-event-goals). | | ||
| `trackLocalhost` | Set this to `true` if you want to enable localhost tracking as described [here](https://plausible.io/docs/script-extensions). | | ||
@@ -72,0 +73,0 @@ | `manualPageviews` | Set this to `true` if you want to disable automatic pageview events as described [here](https://plausible.io/docs/script-extensions#plausiblemanualjs). | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62808
374
192