# How to pass multiple tracking codes to gtag.js (usually used with Google Analytics)?

**URL:** https://meta.discourse.org/t/how-to-pass-multiple-tracking-codes-to-gtag-js-usually-used-with-google-analytics/319871
**Category:** Data & reporting
**Tags:** analytics
**Created:** [August 2, 2024, 5:56pm UTC](https://meta.discourse.org/t/how-to-pass-multiple-tracking-codes-to-gtag-js-usually-used-with-google-analytics/319871 "2024-08-02T17:56:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wlandgraf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wlandgraf/32/154660_2.png) [@wlandgraf](https://meta.discourse.org/u/wlandgraf)
#### Post date: [August 2, 2024, 5:56pm UTC](https://meta.discourse.org/t/how-to-pass-multiple-tracking-codes-to-gtag-js-usually-used-with-google-analytics/319871/1 "2024-08-02T17:56:44Z")

</div>

I wonder how to add multiple tracking codes to Discourse site? For example, I might have an Analytics tracking code and Google Ads tracking code.

If you see docs from other tools like Gatsby ([reference here](https://www.gatsbyjs.com/plugins/gatsby-plugin-google-gtag/)), they allow it:

```json
        trackingIds: [
          "GA-TRACKING_ID", // Google Analytics / GA
          "AW-CONVERSION_ID", // Google Ads / Adwords / AW
          "DC-FLOODIGHT_ID", // Marketing Platform advertising products (Display & Video 360, Search Ads 360, and Campaign Manager)
        ],

```

[It’s discussed here how to do so](https://stackoverflow.com/questions/46789189/google-analytics-gtag-multiple-analytics-account-tracking-ids) with gtag.js.

How to I do that with Discourse? In settings (ga\_universal\_tracking\_code) it looks like I can only provide one.
