# JavaScript Tracker v2 Templates
> Deploy Snowplow JavaScript tracker v2 through Google Tag Manager using legacy custom templates. Configure Snowplow Analytics and Settings templates from the GTM gallery for v2 tracker deployment.
> Source: https://docs.snowplow.io/docs/sources/google-tag-manager/previous-versions/template-for-javascript-tracker-v2/
> Documentation index: https://docs.snowplow.io/llms.txt
> Status: Previous version
> Current version: https://docs.snowplow.io/docs/sources/google-tag-manager/

Snowplow JavaScript Tracker v2 can now be deployed directly with Google Tag Manager via a Custom Template. This is available in the [Tag Manager Template Gallery](https://tagmanager.google.com/gallery/#/owners/snowplow/templates/snowplow-gtm-custom-template).

There are two templates that you will need to use when setting up the Template for JavaScript Tracker v2.

1. [Snowplow Analytics Settings](https://tagmanager.google.com/gallery/#/owners/snowplow/templates/snowplow-gtm-custom-template-settings)
2. [Snowplow Analytics](https://tagmanager.google.com/gallery/#/owners/snowplow/templates/snowplow-gtm-custom-template)

Snowplow Analytics Settings Template: A variable template which can be used to easily apply a set of tracker configuration parameters to tags created with the Snowplow Analytics tag template.

Snowplow Analytics Template: Load, configure, and deploy the Snowplow JavaScript tracker library. It supports the full functionality of the JavaScript SDK.

These Custom Templates were created by [Simo Ahava](https://www.simoahava.com/), full documentation can be found on his site:

- [Snowplow Analytics Settings Template Documentation](https://www.simoahava.com/custom-templates/snowplow-analytics-settings/)
- [Snowplow Analytics Template Documentation](https://www.simoahava.com/custom-templates/snowplow-analytics/)
