diff --git a/CHANGELOG.md b/CHANGELOG.md
index e151291..e3b4dc5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [1.0.6] 2022-07-25
+
+### Added
+
+- `source` property for some methods, for events tracking
+
## [1.0.5] 2022-07-19
### Updated
diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md
index bcd7054..07ae548 100644
--- a/DOCUMENTATION.md
+++ b/DOCUMENTATION.md
@@ -194,6 +194,7 @@
| payload.step | Operation
| |
Workflow step
| | payload.input |Object
| | Sample user input
| | [payload.environment] |string
| "production"
| Specifiy execution environment (production
or staging
). Optional. Default value production
.
string
| | The source of event for tracking purposes. Optional.
| @@ -210,6 +211,7 @@ | payload.step |Operation
| Workflow step
| | payload.input |Object
| Sample user input
| | [payload.environment] |string
| Specifiy execution environment (production
or staging
). Optional. Default value production
.
string
| The source of event for tracking purposes. Optional.
| @@ -397,6 +399,7 @@ | [payload.hutk] |string
| The tracking cookie token value used for HubSpot lead activity tracking. You can retrieve this value from the "hubspotutk" cookie placed in the user's browser by the HubSpot JavaScript Tracking Code. (optional)
| | [payload.pageName] |string
| The name or title of the page the submission happened on (optional)
| | [payload.ipAddress] |string
| The IP address of the visitor filling out the form (optional)
| +| [payload.trackSource] |string
| The source of event for tracking purposes (optional)
| diff --git a/package.json b/package.json index 9bfb47a..c0fb60f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.5", + "version": "1.0.6", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/classes/Connector.ts b/src/classes/Connector.ts index fc71316..c36bff0 100644 --- a/src/classes/Connector.ts +++ b/src/classes/Connector.ts @@ -200,16 +200,19 @@ class Connector { * @param {Operation} payload.step - Workflow step * @param {Object} payload.input - Sample user input * @param {string} [payload.environment=production] - Specifiy execution environment (`production` or `staging`). Optional. Default value `production`. + * @param {string} [payload.source] - The source of event for tracking purposes. Optional. * @returns {Promise