# Google Tag Manager security

**URL:** <https://community.auth0.com/t/google-tag-manager-security/62655>\
**Category:** Get Help\
**Created:** [May 12, 2021, 11:13am UTC](https://community.auth0.com/t/google-tag-manager-security/62655 "2021-05-12T11:13:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![team-ground-control](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/team-ground-control/32/12714_2.png) [@team-ground-control](https://community.auth0.com/u/team-ground-control)\
**Post date:** [May 12, 2021, 11:13am UTC](https://community.auth0.com/t/google-tag-manager-security/62655/1 "2021-05-12T11:13:01Z")

</div>

We’ve integrated auth0 and GTM manager in our SPA. After returning from universal login the URL with query parameter `code` from auth0 is now pushed to GTM. Is this a security issue?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 12, 2021, 11:35am UTC](https://community.auth0.com/t/google-tag-manager-security/62655/3 "2021-05-12T11:35:52Z")

</div>

Hi @team-ground-control,

According to the [spec](https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2), the `code` passed as a query param in the URL is short-lived (max 10 min.), and it cannot be used more than once to exchange for the Access Token and other tokens. This should not cause a security issue since the code is unusable once it has been passed back to Auth0 in exchange for tokens.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 27, 2021, 11:36am UTC](https://community.auth0.com/t/google-tag-manager-security/62655/4 "2021-05-27T11:36:40Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
