Title: multiple IDs?
Last modified: September 26, 2024

---

# multiple IDs?

 *  Resolved [beachmat](https://wordpress.org/support/users/beachmat/)
 * (@beachmat)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/multiple-ids-2/)
 * Does this plugin support multiple IDs for the same script? I can’t see any mention
   of it.
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/multiple-ids-2/#post-18040428)
 * Tracking an additional ID is as simple as adding another `config` rule to the
   tracking code. In CAOS this can be achieved by using a filter in a custom plugin.
 *     ```wp-block-code
       add_filter('caos_gtag_additional_config', 'daan_add_additional_ids');function daan_add_additional_ids() {    echo "gtag('config', 'G-123ABC456');" // Replace with your Measurement ID }
       ```
   
 * That should do it! If you need more help, you know where to find me!
 *  Thread Starter [beachmat](https://wordpress.org/support/users/beachmat/)
 * (@beachmat)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/multiple-ids-2/#post-18041145)
 * Thanks. There’s a typo on the last line, should be
 *     ```wp-block-code
       )";
       ```
   
 *  Thread Starter [beachmat](https://wordpress.org/support/users/beachmat/)
 * (@beachmat)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/multiple-ids-2/#post-18041449)
 * Or maybe
 *     ```wp-block-code
       );";
       ```
   
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/multiple-ids-2/#post-18046937)
 * Ah, sorry, you’re right, here’s the correct code:
 *     ```wp-block-code
       add_filter('caos_gtag_additional_config', 'daan_add_additional_ids');function daan_add_additional_ids() {	echo "gtag('config', 'G-123ABC456');"; // Replace with your Measurement ID }
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘multiple IDs?’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

## Tags

 * [Multiple IDs](https://wordpress.org/support/topic-tag/multiple-ids/)

 * 4 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/multiple-ids-2/#post-18046937)
 * Status: resolved