LaunchDarkly Tag for GTM-SS v0.3.0

We are pleased to announce the release of LaunchDarkly Tag for GTM-SS v0.3.0!

This release makes the required changes to adapt to latest version of the LaunchDarkly metric import API. One of those changes is a new Authorization section in the tag configuration, while the Authentication section has changed as well: instead of the client-side ID, now you need to provide both the project key and the environment key for the LaunchDarkly environment your metric events pertain to.

In addition this release also adds the option to specify context keys other than user to serve as randomization units for your experiments.


New features

Allow additional context keys (#8)
Adapt to latest changes in LaunchDarkly API (#6)

Under the hood

Make function descriptions consistent with JSDoc (#7)


To upgrade to the latest version of the LaunchDarkly tag, you first need to ensure that the server Docker image of your GTM-SS container must be 2.0.0 or later. Then you can follow the same steps to install the latest template.


Ive tried to install the template in GTM but there is an error that says:

Tag code must invoke data.gtmOnSuccess() or data.gtmOnFailure()

Does anyone know a way to fix it?

Thanks :slight_smile:

Hi @guy and welcome to the Snowplow community!

I cannot replicate the error you are seeing when installing the template in a server-side container.
I do see such an error when trying to install it on a web container though (which is expected, as the template is only compatible with server-side containers). Could it be the case?

1 Like

Hey @Ada, thanks for the quick response!
Yeah, you are correct; my mistake was using the template in a web container instead of a server-side container.

Thanks! :slight_smile: