Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
files: |
dist/clickstream-web.min.js
dist/clickstream-web.min.js.map
gtm-template/ClickstreamAnalytics-gtm-template.tpl
tag_name: "v${{ env.NEW_VERSION }}"
prerelease: true
generate_release_notes: true
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,19 @@ ClickstreamAnalytics.updateConfigure({
});
```

## Implementing Clickstream Web SDK in Google Tag Manager Using Template

1. Download the Clickstream SDK template file (.tpl) from the [SDK Release Page](https://github.com/awslabs/clickstream-web/releases).
2. Refer to the Google Tag Manager [Import Guide](https://developers.google.com/tag-platform/tag-manager/templates#export_and_import) for instructions on importing the .tpl file as a custom template in your tag manager console.
3. Refer to the [Use your new tag](https://developers.google.com/tag-platform/tag-manager/templates#use_your_new_tag) to add ClickstreamAnalytics tag to your container.
4. The ClickstreamAnalytics tag currently supports four tag types:
* Initialize SDK
* Record Custom Event
* Set User ID
* Set User Attribute

Note: Ensure that you initialize the SDK tag first before use other ClickstreamAnalytics tag types.

## How to integrate and test locally

### Integrate the `.tgz` file
Expand Down
Loading