Skip to content

Commit

Permalink
Merge pull request #10 from snowplow/release/1.1.0
Browse files Browse the repository at this point in the history
Release/1.1.0
  • Loading branch information
greg-el authored Feb 26, 2025
2 parents 8868953 + d722d38 commit 53a2a1d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
homepage: "https://snowplow.io"
documentation: "https://docs.snowplow.io/docs/sources/trackers/google-tag-manager"
versions:
- sha: 0a1bc7a73cb53ab80ecfb83d9514f3953d6cc5fa
changeNotes: Add 'keepalive', 'idService' and 'synchronousCookieWrite' options.
- sha: 8abdf57a137fa225832292133596da871ce2a44a
changeNotes: Initial release.
46 changes: 46 additions & 0 deletions template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ ___TEMPLATE_PARAMETERS___
}
],
"help": "Please read \u003ca href\u003d\"https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/javascript-trackers/javascript-tracker/javascript-tracker-v3/tracker-setup/initialization-options/#anonymous-tracking\"\u003ethis documentation\u003c/a\u003e carefully before selecting Anonymous Tracking in order to understand the implications."
},
{
"type": "TEXT",
"name": "idService",
"displayName": "ID Service",
"simpleValueType": true,
"help": "Sets the \u003ca href\u003d\"https://docs.snowplow.io/docs/sources/trackers/javascript-trackers/web-tracker/browsers/#what-is-an-id-service-\"\u003eID Service\u003c/a\u003e endpoint."
}
]
},
Expand Down Expand Up @@ -585,6 +592,24 @@ ___TEMPLATE_PARAMETERS___
}
],
"valueUnit": "events"
},
{
"type": "SELECT",
"name": "synchronousCookieWrite",
"displayName": "Synchronously Write Cookies",
"macrosInSelect": false,
"selectItems": [
{
"value": true,
"displayValue": "True"
},
{
"value": false,
"displayValue": "False"
}
],
"simpleValueType": true,
"help": "Controls whether cookies are \u003ca href\u003d\"https://docs.snowplow.io/docs/sources/trackers/javascript-trackers/web-tracker/configuring-how-events-sent/#synchronous-cookie-writes\"\u003ewritten synchronously\u003c/a\u003e."
}
]
},
Expand Down Expand Up @@ -700,6 +725,24 @@ ___TEMPLATE_PARAMETERS___
],
"help": "Set the connection timeout for POST and GET requests.The recommended value is between 5000 and 10000.",
"valueUnit": "milliseconds"
},
{
"type": "SELECT",
"name": "keepalive",
"displayName": "Enable keepalive",
"macrosInSelect": false,
"selectItems": [
{
"value": true,
"displayValue": "True"
},
{
"value": false,
"displayValue": "False"
}
],
"simpleValueType": true,
"help": "The \u003ca href\u003d\"https://docs.snowplow.io/docs/sources/trackers/javascript-trackers/web-tracker/configuring-how-events-sent/#keepalive-option-for-collector-requests\"\u003ekeepalive\u003c/a\u003e feature in the fetch API indicates that the request should be allowed to outlive the webpage that initiated it. It enables requests to the Snowplow Collector to complete even if the page is closed or navigated away from."
}
]
},
Expand Down Expand Up @@ -813,6 +856,9 @@ return {
maxPostBytes: data.maxPostBytes,
connectionTimeout: data.connectionTimeout,
anonymousTracking: anonymousTracking,
keepalive: data.keepalive,
synchronousCookieWrite: data.synchronousCookieWrite,
idService: data.idService,
contexts: {
webPage: data.webPage,
gaCookies: data.gaCookies,
Expand Down

0 comments on commit 53a2a1d

Please sign in to comment.