---
updatedAt: 2026-04-07T10:11:14.000Z
agentTools:
  siteIndex: https://developers.liveramp.com/llms.txt
  projectIndex: https://developers.liveramp.com/authenticatedtraffic-api/v1.0/llms.txt
---

# ATS with Google Tag Manager

Learn how to add ats.js to your GTM container.

You can use ATS with Google Tag Manager (GTM) system to quickly and easily update tags on your website or mobile app and deploy analytics and measurement tag configurations from a web-based user interface.

1. From <https://tagmanager.google.com>, click *New Tag*.
2. Change your tag name from "Untitled Tag" to something like "ATS JavaScript".

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/347b035-Screen_Shot_2020-04-14_at_3.16.31_PM.png",
        "Screen Shot 2020-04-14 at 3.16.31 PM.png",
        808,
        465,
        "#ededee"
      ]
    }
  ]
}
[/block]

3. Click in the *Tag Configuration* section.
4. Under *Choose Tag Type* click *Custom HTML Tag*.
5. Enter the snippet below, replacing your placement ID for the `REPLACE_ME` value. You can make additional [supported configuration changes](https://docs.authenticated-traffic-solution.com/docs/atsjs-configuration-options) in the tag.

[block:code]
{
  "codes": [
    {
      "code": "<script>\nvar atsScript = document.createElement('script');\natsScript.onload = function() {\n  window.ats.start({\n    \"placementID\": REPLACE_ME,\n    \"storageType\": \"localStorage\",\n    \"detectionType\": \"scrape\",\n    \"cssSelectors\": [\n      \"input[type=text]\",\n      \"input[type=email]\"\n    ],\n    \"logging\": \"error\"\n  });\n};\natsScript.src = 'https://ats.rlcdn.com/ats.js';\ndocument.body.appendChild(atsScript);\n</script>",
      "language": "html",
      "name": "ATS Custom HTML Tag"
    }
  ]
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/9108562-Screen_Shot_2020-04-14_at_3.31.04_PM.png",
        "Screen Shot 2020-04-14 at 3.31.04 PM.png",
        1037,
        624,
        "#ececed"
      ]
    }
  ]
}
[/block]

6. Click into *Triggering* and then select the trigger you would like to connect ats.js execution to. Our recommendation is to fire on all pages.
7. Save your changes.
8. If you are ready to deploy ATS to your site, click *Submit* and then *Publisher*, adding a version change note if you'd like.
9. QA your site to ensure ATS is working.