You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Package version | Version of the package `68publishers/cookie-consent`. Valid inputs are the `latest` or a version in formats `x.x.x`, `x.x.x-beta.x` and `x.x.x-alpha-x`. For available versions see the [releases](https://github.com/68publishers/cookie-consent/releases). |
57
-
| Package destination| The URL where the package files are hosted. If the field is not filled, the **unpkg.com** CDN is used. To use a different CDN or self-hosting, please read the [About the package destination](#about-the-package-destination) section|
57
+
| Package source| The URL where the package files are hosted. If the field is not filled, the **unpkg.com** CDN is used. To use a different source, please read the [Using other CDN or self-hosted](#using-other-CDN-or-self-hosted)|
58
58
| Make consent required | The page will be blocked until a user action. |
59
59
| Show the widget as soon as possible | The widget will be displayed automatically on the page load. You must trigger the widget manually by calling `CookieConsentWrapper.unwrap().show()` if the option is disabled. |
60
60
| Init widget after DOMContentLoaded | The widget is initialized as soon as possible by default. If the option is enabled, initialization will wait until the `DOMContentLoaded` event. |
@@ -204,26 +204,26 @@ Managing page scripts is disabled by default. When the feature is enabled then t
204
204
</script>
205
205
```
206
206
207
-
## About the package destination
207
+
## Using other CDN or self-hosted
208
208
209
-
The configuration gives the option to set the URL from which the package files (js, css and translation files) will be loaded via the `Package destination` field.
209
+
The configuration gives the option to set the URL from which the package files (js, css and translation files) will be loaded via the `Package source` field.
210
210
211
211
If the field is left blank, the `unpkg.com` CDN is used. Alternatively, `jsDelivr.com` can be used by entering the following URL:
The `{version}` placeholder is automatically replaced with the value from the `Package version` field.
216
216
217
-
### Self-hosted package files
217
+
### Self-hosted package
218
218
219
219
It is possible to host package files at any URL. To do this, the following steps are required:
220
220
221
-
- The complete contents of the [dist](./dist) folder must be accessible from that URL.
222
-
- The "Package destination" field needs to be set correctly.
223
-
- It is necessary to modify the "Inject script" permissions in the GTM template.
221
+
1. The complete contents of the [dist](./dist) folder must be accessible from that URL.
222
+
2. The "Package source" field needs to be set correctly.
223
+
3. It is necessary to modify the "Inject script" permissions in the GTM template.
224
224
225
-
For example, if the package files are available at the URL https://www.example.com/static/cookie-consent/, the `Package destination` field needs to be set to `https://www.example.com/static/cookie-consent/`.
226
-
Of course, the placeholder `{version}` can also be used in the field.
225
+
For example, if the package files are available at the URL https://www.example.com/static/cookie-consent/, the `Package source` field needs to be set to `https://www.example.com/static/cookie-consent/`.
226
+
Also, the placeholder `{version}` can be used in the field.
227
227
228
228
Next, the GTM template needs to be modified. In the "Permissions" tab, it is necessary to add the URL `https://www.example.com/` in the "Inject scripts" section.
229
229
@@ -430,13 +430,13 @@ Below this field you can define which columns the cookie table should contain.
430
430
431
431
## How to update already published containers
432
432
433
-
If you want to update to the newer version please firstly look into [releases](https://github.com/68publishers/cookie-consent/releases) to see what has changed until the release that you using.
433
+
If you want to update to the newer version please firstly look into [releases](https://github.com/68publishers/cookie-consent/releases) to see what has changed until the release that you are using.
434
434
435
435
For update, you must reimport the Template in your GTM in the same way how you imported it for the first time. The template will be updated but existing configurations inside tags will be kept. Of course, if the Template wasn't changed between releases then you can skip this step.
436
436
437
437
Then open the associated tag and update the value of the field `Package version`.
438
438
439
-
If the package files are [self-hosted](#self-hosted-package-files), it is necessary to re-edit the template permissions.
439
+
If the package files are [self-hosted](#self-hosted-package), it is necessary to re-edit the Injects scripts in template permissions.
Copy file name to clipboardExpand all lines: gtm_template.tpl
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,8 @@ ___TEMPLATE_PARAMETERS___
47
47
},
48
48
{
49
49
"type": "TEXT",
50
-
"name": "package_destination",
51
-
"displayName": "Package destination",
50
+
"name": "package_source",
51
+
"displayName": "Package source",
52
52
"simpleValueType": true,
53
53
"help": "The URL where the package files are hosted. If the field is not filled , the \u003cstrong\u003eunpkg.com\u003c/strong\u003e CDN is used. To use a different CDN or self-hosting, the field value needs to be set to the URL that leads to the package root (dist folder in the repository). The variable \u003cem\u003e{version}\u003c/em\u003e can be used, which will be replaced by the value from the \u003cem\u003e\"Package version\"\u003c/em\u003e field."
0 commit comments