 #  Examples 

 

##  Google Tag Manager server-timing Trick 

 

- Extension Page: [System - Google Tag Manager](/software/joomla/plugins/system-google-tag-manager)

Hosting behind a caching reverse proxy like Varnish can cause the captured IP address to be cached, giving false Tor node reports to Analytics. This latest update to System - Google Tag Manager brings an alternative tracking method for users behind caching reverse proxy.

To get that sweet Server-Timing header with the visitor’s IP address flowing into your Google Tag Manager plugin, you need to set it up on your web server first. The Joomla plugin will grab it once it’s there—no sweat. Since you’re using Nginx, here’s how to make it happen.

## Which Server Again?

This particular configuration is more complicated than most users will have. If you don't know what any of this means, this configuration isn't relevant to you. For those of you who do know what a caching reverse proxy is, you'll know why this configuration is necessary.

The Server-Timing header isn't necessary on your actual host, but something you'll want to implement on your load balancer. As you'll see below, the configurations for both Nginx and Apache2 are both very simple.

## Configure Nginx to Send the Header

Nginx makes this a breeze by letting you inject the Server-Timing header with the visitor’s IP address ($remote\_addr) for every request. Here’s what to do:

### Open Your Nginx Site Config:

Find your site’s configuration file, usually in /etc/nginx/sites-available/your-site.conf (or similar, depending on your setup).  
Open it in your favorite editor (e.g., nano or vim).

### Add the Header Directive:

add\_header Server-Timing "remote\_addr;desc=\\"$remote\_addr\\"";

### Test Your Config:

Test your config: nginx -t  
If it’s good, reload: service nginx reload or nginx -s reload

## Apache2 Configuration Isn't Much Different

If you're still running Apache2, follow these steps.

### Apache site-level config or vhost

/etc/apache2/sites-available/example.conf or inside a &lt;VirtualHost&gt; block

### Add the Header Directive:

SetEnvIf Remote\_Addr ".\*" REAL\_IP=$0  
Header always set Server-Timing "remote\_addr;desc=\\"%{REAL\_IP}e\\""

## If You Are Using Varnish

You may not be able to inject the header before Varnish takes over the connection, so use Varnish to inject the header!

### Inside your VCL:

Somewhere inside sub vcl\_vdeliver {

set resp.http.Server-Timing = "remote\_addr;desc=" + req.http.X-Real-IP;

## Now Every Response Carries The Header

Server-Timing: remote\_addr;desc="203.0.113.5"

## How This Differs From the Default Method

The default method relies on the server to identify a Tor node, and place a specific JavaScript option in place for the front-end event script to find. This is the easiest to implement, but places additional burden on your server. Not much, just a single array lookup.

The Proxy method is easy on the server, but requires additional bandwidth (to send the Tor node list) and server configuration to allow the client to perform its own test. There are trade-offs for each method. I wrote this new method because my own configuration is affected by the reverse proxy caching. If it affects me, it surely affects someone else. I like my solutions to be permanent and portable, which made this an ideal candidate for an upgrade to my GTAG plugin.

You're welcome.



- [      email ](mailto:?subject=Google+Tag+Manager+server-timing+Trick&body=https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fgoogle-tag-manager%2Fgoogle-tag-manager-server-timing-trick)
- [      facebook ](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fgoogle-tag-manager%2Fgoogle-tag-manager-server-timing-trick)
- [      x-twitter ](https://twitter.com/intent/tweet?text=Google+Tag+Manager+server-timing+Trick%3A+https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fgoogle-tag-manager%2Fgoogle-tag-manager-server-timing-trick)
- [      linkedin ](http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fgoogle-tag-manager%2Fgoogle-tag-manager-server-timing-trick&title=Google+Tag+Manager+server-timing+Trick&summary=Hosting+behind+a+caching+reverse+proxy+like+Varnis...)
- [      pinterest ](http://pinterest.com/pin/create/button/?url=https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fgoogle-tag-manager%2Fgoogle-tag-manager-server-timing-trick&media=https%3A%2F%2Fcdn.joomla.org%2Fimages%2Fjoomla-org-og.jpg&description=Google+Tag+Manager+server-timing+Trick)
 


 

   [  Next article: Custom Click Events  Custom Click Events  ](/software/examples/google-tag-manager/custom-click-events)  

##### We Value Your Privacy

 

We use cookies to enhance your experience and for traffic analysis. By continuing to visit this site you agree to our use of cookies.

[Privacy Policy](/privacy-policy)

 Details 

###### Google Tag Manager Items

- Ad Storage
- Ad User Data
- Ad Personalization
- Analytics Storage
- Functionality Storage
- Personalization Storage
- Security Storage
 
 

 

 

 

 

 Decline Accept
```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.richeyweb.com/#organization","name":"RicheyWeb","url":"https://www.richeyweb.com/","logo":{"@type":"ImageObject","url":"https://www.richeyweb.com/images/logo/richeyweb.svg","contentUrl":"https://www.richeyweb.com/images/logo/richeyweb.svg","width":{"@type":"QuantitativeValue","value":38,"unitCode":"PX"},"height":{"@type":"QuantitativeValue","value":38,"unitCode":"PX"},"@id":"https://www.richeyweb.com/#logo"},"image":{"@id":"https://www.richeyweb.com/#logo"},"sameAs":["https://x.com/ComRicheyweb","https://www.facebook.com/RicheyWebDev/","https://www.youtube.com/channel/UCxnVG8BwOvQRO7hVqNX7T2g","https://community.joomla.org/service-providers-directory/listings/115:richeyweb.html"],"description":"RicheyWeb is a custom software developer specializing in Joomla extensions.","ContactPoint":[{"@type":"ContactPoint","url":"https://172.238.168.238/contact-us","telephone":"903-873-8460","contactType":"Owner/Administrator","areaServed":["United States",{"@type":"Country","name":"United States","sameAs":["https://en.wikipedia.org/wiki/United_States","https://www.wikidata.org/wiki/Q30","https://g.co/kg/m/09c7w0"]},"European Union",{"@type":"AdministrativeArea","name":"European Union","sameAs":["https://en.wikipedia.org/wiki/European_Union","https://www.wikidata.org/wiki/Q458","https://g.co/kg/m/0_6t_z8"]},"United Kingdom",{"@type":"Country","name":"United Kingdom","sameAs":["https://en.wikipedia.org/wiki/United_Kingdom","https://www.wikidata.org/wiki/Q145","https://g.co/kg/m/07ssc"]},"Australia",{"@type":"Country","name":"Australia","sameAs":["https://en.wikipedia.org/wiki/Australia","https://www.wikidata.org/wiki/Q408","https://g.co/kg/m/0chghy"]},"Canada",{"@type":"Country","name":"Canada","sameAs":["https://en.wikipedia.org/wiki/Canada","https://www.wikidata.org/wiki/Q16","https://g.co/kg/m/0d060g"]},"Russia",{"@type":"Country","name":"Russia","sameAs":["https://en.wikipedia.org/wiki/Russia","https://www.wikidata.org/wiki/Q159","https://g.co/kg/m/06bnz"]},"China",{"@type":"Country","name":"China","sameAs":["https://en.wikipedia.org/wiki/China","https://www.wikidata.org/wiki/Q148","https://g.co/kg/m/0d05w3"]}],"availableLanguage":"en"},{"@type":"ContactPoint","url":"https://172.238.168.238/bugs","telephone":"903-873-8460","contactType":"Technical Support","areaServed":["United States",{"@type":"Country","name":"United States","sameAs":["https://en.wikipedia.org/wiki/United_States","https://www.wikidata.org/wiki/Q30","https://g.co/kg/m/09c7w0"]},"European Union",{"@type":"AdministrativeArea","name":"European Union","sameAs":["https://en.wikipedia.org/wiki/European_Union","https://www.wikidata.org/wiki/Q458","https://g.co/kg/m/0_6t_z8"]},"United Kingdom",{"@type":"Country","name":"United Kingdom","sameAs":["https://en.wikipedia.org/wiki/United_Kingdom","https://www.wikidata.org/wiki/Q145","https://g.co/kg/m/07ssc"]},"Australia",{"@type":"Country","name":"Australia","sameAs":["https://en.wikipedia.org/wiki/Australia","https://www.wikidata.org/wiki/Q408","https://g.co/kg/m/0chghy"]},"Canada",{"@type":"Country","name":"Canada","sameAs":["https://en.wikipedia.org/wiki/Canada","https://www.wikidata.org/wiki/Q16","https://g.co/kg/m/0d060g"]},"Russia",{"@type":"Country","name":"Russia","sameAs":["https://en.wikipedia.org/wiki/Russia","https://www.wikidata.org/wiki/Q159","https://g.co/kg/m/06bnz"]},"China",{"@type":"Country","name":"China","sameAs":["https://en.wikipedia.org/wiki/China","https://www.wikidata.org/wiki/Q148","https://g.co/kg/m/0d05w3"]}],"availableLanguage":"en"}],"knowsAbout":["Computer programming",{"@type":"Thing","name":"Computer programming","sameAs":["https://en.wikipedia.org/wiki/Computer_programming","https://www.wikidata.org/wiki/Q80006","https://g.co/kg/m/01mf_"]},"PHP",{"@type":"Thing","name":"PHP","sameAs":["https://en.wikipedia.org/wiki/PHP","https://www.wikidata.org/wiki/Q59","https://g.co/kg/m/060kv"]},"JavaScript",{"@type":"Thing","name":"JavaScript","sameAs":["https://en.wikipedia.org/wiki/JavaScript","https://www.wikidata.org/wiki/Q2005","https://g.co/kg/m/02p97"]},"arduino","Computer forensics",{"@type":"Thing","name":"Computer forensics","sameAs":["https://en.wikipedia.org/wiki/Computer_forensics","https://www.wikidata.org/wiki/Q878553","https://g.co/kg/m/02wxbd"]},"White hat",{"@type":"Thing","name":"White hat","sameAs":["https://en.wikipedia.org/wiki/White_hat_(computer_security)","https://www.wikidata.org/wiki/Q7995625","https://g.co/kg/m/03ns_5"]},"Search engine optimization",{"@type":"Thing","name":"Search engine optimization","sameAs":["https://en.wikipedia.org/wiki/Search_engine_optimization","https://www.wikidata.org/wiki/Q180711","https://g.co/kg/m/019qb_"]},"Search engine marketing",{"@type":"Thing","name":"Search engine marketing","sameAs":["https://en.wikipedia.org/wiki/Search_engine_marketing","https://www.wikidata.org/wiki/Q846132","https://g.co/kg/m/06mw8r"]},"Digital marketing",{"@type":"Thing","name":"Digital marketing","sameAs":["https://en.wikipedia.org/wiki/Digital_marketing","https://www.wikidata.org/wiki/Q1323528","https://g.co/kg/g/122hcnps"]},"Web hosting service",{"@type":"Thing","name":"Web hosting service","sameAs":["https://en.wikipedia.org/wiki/Web_hosting_service","https://www.wikidata.org/wiki/Q5892272","https://g.co/kg/m/014pz4"]},"Email hosting service",{"@type":"Thing","name":"Email hosting service","sameAs":["https://en.wikipedia.org/wiki/Email_hosting_service","https://www.wikidata.org/wiki/Q5368818","https://g.co/kg/m/09w60m"]},"Internet hosting service",{"@type":"Thing","name":"Internet hosting service","sameAs":["https://en.wikipedia.org/wiki/Internet_hosting_service","https://www.wikidata.org/wiki/Q1210425","https://g.co/kg/m/09w5yw"]},"Virtual hosting",{"@type":"Thing","name":"Virtual hosting","sameAs":["https://en.wikipedia.org/wiki/Virtual_hosting","https://www.wikidata.org/wiki/Q588365","https://g.co/kg/m/024mvh"]},"Web performance",{"@type":"Thing","name":"Web performance","sameAs":["https://en.wikipedia.org/wiki/Web_performance","https://www.wikidata.org/wiki/Q7978612","https://g.co/kg/m/0gfj3f1"]},"Web content management system",{"@type":"Thing","name":"Web content management system","sameAs":["https://en.wikipedia.org/wiki/Web_content_management_system","https://www.wikidata.org/wiki/Q45211","https://g.co/kg/m/0615s2"]},"Content management system",{"@type":"Thing","name":"Content management system","sameAs":["https://en.wikipedia.org/wiki/Content_management_system","https://www.wikidata.org/wiki/Q131093","https://g.co/kg/m/0k23c"]},"General Data Protection Regulation",{"@type":"Thing","name":"General Data Protection Regulation","sameAs":["https://en.wikipedia.org/wiki/General_Data_Protection_Regulation","https://www.wikidata.org/wiki/Q1172506","https://g.co/kg/m/0pk_7xs"]},"SERP",{"@type":"Thing","name":"SERP","sameAs":["https://en.wikipedia.org/wiki/SERP","https://www.wikidata.org/wiki/Q2205811","https://g.co/kg/g/11c5szp7kc"]},"Artificial intelligence",{"@type":"Thing","name":"Artificial intelligence","sameAs":["https://en.wikipedia.org/wiki/Artificial_intelligence","https://www.wikidata.org/wiki/Q11660","https://g.co/kg/m/0mkz"]},"Prompt engineering",{"@type":"Thing","name":"Prompt engineering","sameAs":["https://en.wikipedia.org/wiki/Prompt_engineering","https://www.wikidata.org/wiki/Q108941486","https://g.co/kg/g/11p6kpgt_n"]},"E-learning",{"@type":"Thing","name":"E-learning","sameAs":["https://en.wikipedia.org/wiki/E-learning_(theory)","https://www.wikidata.org/wiki/Q182250","https://g.co/kg/g/122czm1f"]},"Sharable Content Object Reference Model",{"@type":"Thing","name":"Sharable Content Object Reference Model","sameAs":["https://en.wikipedia.org/wiki/Sharable_Content_Object_Reference_Model","https://www.wikidata.org/wiki/Q827811","https://g.co/kg/m/06_40"]},"Experience API",{"@type":"Thing","name":"Experience API","sameAs":["https://en.wikipedia.org/wiki/Experience_API","https://www.wikidata.org/wiki/Q7807728","https://g.co/kg/g/1yw9ktxr8"]},"Joomla",{"@type":"Thing","name":"Joomla","sameAs":["https://en.wikipedia.org/wiki/Joomla","https://www.wikidata.org/wiki/Q13167","https://g.co/kg/m/07qb81"]},"Nginx",{"@type":"Thing","name":"Nginx","sameAs":["https://en.wikipedia.org/wiki/Nginx","https://www.wikidata.org/wiki/Q306144","https://g.co/kg/m/02qft91"]},"MySQL",{"@type":"Thing","name":"MySQL","sameAs":["https://en.wikipedia.org/wiki/MySQL","https://www.wikidata.org/wiki/Q850","https://g.co/kg/m/04y3k"]}],"areaServed":["United States",{"@type":"Country","name":"United States","sameAs":["https://en.wikipedia.org/wiki/United_States","https://www.wikidata.org/wiki/Q30","https://g.co/kg/m/09c7w0"]},"European Union",{"@type":"AdministrativeArea","name":"European Union","sameAs":["https://en.wikipedia.org/wiki/European_Union","https://www.wikidata.org/wiki/Q458","https://g.co/kg/m/0_6t_z8"]},"United Kingdom",{"@type":"Country","name":"United Kingdom","sameAs":["https://en.wikipedia.org/wiki/United_Kingdom","https://www.wikidata.org/wiki/Q145","https://g.co/kg/m/07ssc"]},"Australia",{"@type":"Country","name":"Australia","sameAs":["https://en.wikipedia.org/wiki/Australia","https://www.wikidata.org/wiki/Q408","https://g.co/kg/m/0chghy"]},"Canada",{"@type":"Country","name":"Canada","sameAs":["https://en.wikipedia.org/wiki/Canada","https://www.wikidata.org/wiki/Q16","https://g.co/kg/m/0d060g"]},"Russia",{"@type":"Country","name":"Russia","sameAs":["https://en.wikipedia.org/wiki/Russia","https://www.wikidata.org/wiki/Q159","https://g.co/kg/m/06bnz"]},"China",{"@type":"Country","name":"China","sameAs":["https://en.wikipedia.org/wiki/China","https://www.wikidata.org/wiki/Q148","https://g.co/kg/m/0d05w3"]}],"memberOf":["Mensa International",{"@type":"Organization","name":"Mensa International","sameAs":["https://en.wikipedia.org/wiki/Mensa_International","https://www.wikidata.org/wiki/Q184194","https://g.co/kg/m/0140pf"]},"National Rifle Association",{"@type":"Organization","name":"National Rifle Association","sameAs":["https://en.wikipedia.org/wiki/National_Rifle_Association","https://www.wikidata.org/wiki/Q863259","https://g.co/kg/m/0j6f9"]},"CompTIA",{"@type":"Organization","name":"CompTIA","sameAs":["https://en.wikipedia.org/wiki/CompTIA","https://www.wikidata.org/wiki/Q597534","https://g.co/kg/m/040shq"]},"ISFCE LLC",{"@type":"Organization","name":"ISFCE LLC","sameAs":["https://isfce.com","https://g.co/kg/g/11wxm5r0rg"]}],"hasCredential":[{"@type":"EducationalOccupationalCredential","name":"Joomla 3 Certified Administrator","credentialCategory":"Certification","description":"Administrator Exam is the first available Joomla! certification exam","recognizedBy":{"@type":"Organization","name":"Open Source Matters, Inc.","sameAs":["https://en.wikipedia.org/wiki/Open_Source_Matters,_Inc.","https://g.co/kg/g/11f00wvjhz"]},"url":"https://certification.joomla.org/certified-user-directory/michael-richey","about":["Content management system",{"@type":"Thing","name":"Content management system","sameAs":["https://en.wikipedia.org/wiki/Content_management_system","https://www.wikidata.org/wiki/Q131093","https://g.co/kg/m/0k23c"]},"Web content management system",{"@type":"Thing","name":"Web content management system","sameAs":["https://en.wikipedia.org/wiki/Web_content_management_system","https://www.wikidata.org/wiki/Q45211","https://g.co/kg/m/0615s2"]},"Joomla",{"@type":"Thing","name":"Joomla","sameAs":["https://en.wikipedia.org/wiki/Joomla","https://www.wikidata.org/wiki/Q13167","https://g.co/kg/m/07qb81"]}],"educationalLevel":"expert","image":{"@type":"ImageObject","url":"https://www.richeyweb.com/images/contact/badge.webp","contentUrl":"https://www.richeyweb.com/images/contact/badge.webp","width":{"@type":"QuantitativeValue","value":300,"unitCode":"PX"},"height":{"@type":"QuantitativeValue","value":86,"unitCode":"PX"},"caption":"Joomla 3 Certified Administrator"}},{"@type":"EducationalOccupationalCredential","name":"Certified Computer Examiner","credentialCategory":"Certification","description":"Internationally recognized computer forensics certifiecation","recognizedBy":{"@type":"Organization","name":"ISFCE LLC","sameAs":["https://en.wikipedia.org/wiki/ISFCE_LLC","https://g.co/kg/g/11wxm5r0rg"]},"url":"https://isfce.com/","about":["Digital forensics",{"@type":"Thing","name":"Digital forensics","sameAs":["https://en.wikipedia.org/wiki/Digital_forensics","https://www.wikidata.org/wiki/Q3246940","https://g.co/kg/m/0cnxzfx"]},"Computer forensics",{"@type":"Thing","name":"Computer forensics","sameAs":["https://en.wikipedia.org/wiki/Computer_forensics","https://www.wikidata.org/wiki/Q878553","https://g.co/kg/m/02wxbd"]},"Mobile device forensics",{"@type":"Thing","name":"Mobile device forensics","sameAs":["https://en.wikipedia.org/wiki/Mobile_device_forensics","https://www.wikidata.org/wiki/Q6887097","https://g.co/kg/m/06zp3tp"]},"Network forensics",{"@type":"Thing","name":"Network forensics","sameAs":["https://en.wikipedia.org/wiki/Network_forensics","https://www.wikidata.org/wiki/Q7001032","https://g.co/kg/m/05pb280"]},"Database forensics",{"@type":"Thing","name":"Database forensics","sameAs":["https://en.wikipedia.org/wiki/Database_forensics","https://www.wikidata.org/wiki/Q5227405","https://g.co/kg/m/0cgqsy"]}],"educationalLevel":"expert","image":{"@type":"ImageObject","url":"https://www.richeyweb.com/images/contact/isfce-cce.webp","contentUrl":"https://www.richeyweb.com/images/contact/isfce-cce.webp","width":{"@type":"QuantitativeValue","value":150,"unitCode":"PX"},"height":{"@type":"QuantitativeValue","value":150,"unitCode":"PX"},"caption":"Certified Computer Examiner"}}],"hasOfferCatalog":{"@type":"OfferCatalog","name":"Web Services","itemListElement":[{"@type":"Offer","itemOffered":{"@type":"Service","name":"Hosting"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Development"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Search Engine Optimization"}}]}},{"@type":"WebSite","@id":"https://www.richeyweb.com/#website","url":"https://www.richeyweb.com/","name":"RicheyWeb","publisher":{"@id":"https://www.richeyweb.com/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.richeyweb.com/search?q={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string","valueMaxLength":256,"valueMinLength":2,"valuePattern":"^[A-Za-z0-9\\s]+$"}},"creator":{"@id":"https://www.richeyweb.com/#organization"},"copyrightHolder":{"@id":"https://www.richeyweb.com/#organization"}},{"@type":"WebPage","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#webpage","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick","name":"Google Tag Manager server-timing Trick","description":"This latest update to System - Google Tag Manager brings an alternative Tor tracking method for users behind caching reverse proxy.","isPartOf":{"@id":"https://www.richeyweb.com/#website"},"about":{"@id":"https://www.richeyweb.com/#organization"},"inLanguage":"en-GB"},{"@type":"Article","headline":"Google Tag Manager server-timing Trick","description":"This latest update to System - Google Tag Manager brings an alternative Tor tracking method for users behind caching reverse proxy.","author":{"@type":"Person","name":"Michael Richey","url":"https://172.238.168.238/contact-us","@id":"https://172.238.168.238/contact-us#person"},"datePublished":"2025-04-08T00:00:00+00:00","dateModified":"2025-11-25T00:00:00+00:00","about":["Google Analytics",{"@type":"Thing","name":"Google Analytics","sameAs":["https://en.wikipedia.org/wiki/Google_Analytics","https://www.wikidata.org/wiki/Q220577","https://g.co/kg/m/08w9_f"]},{"@type":"Thing","name":"Joomla","sameAs":["https://en.wikipedia.org/wiki/Joomla","https://www.wikidata.org/wiki/Q13167","https://g.co/kg/m/07qb81"]},"Content management system",{"@type":"Thing","name":"Content management system","sameAs":["https://en.wikipedia.org/wiki/Content_management_system","https://www.wikidata.org/wiki/Q131093","https://g.co/kg/m/0k23c"]},{"@type":"Thing","name":"Nginx","sameAs":["https://en.wikipedia.org/wiki/Nginx","https://www.wikidata.org/wiki/Q306144","https://g.co/kg/m/02qft91"]},"Apache HTTP Server",{"@type":"Thing","name":"Apache HTTP Server","sameAs":["https://en.wikipedia.org/wiki/Apache_HTTP_Server","https://www.wikidata.org/wiki/Q11354","https://g.co/kg/m/0_h2"]},"Varnish",{"@type":"Thing","name":"Varnish","sameAs":["https://en.wikipedia.org/wiki/Varnish_(software)","https://www.wikidata.org/wiki/Q81683","https://g.co/kg/m/0279z4k"]}],"mentions":["Web server",{"@type":"Thing","name":"Web server","sameAs":["https://en.wikipedia.org/wiki/Web_server","https://www.wikidata.org/wiki/Q11288","https://g.co/kg/m/083hh"]},"Load balancing",{"@type":"Thing","name":"Load balancing","sameAs":["https://en.wikipedia.org/wiki/Load_balancing_(computing)","https://www.wikidata.org/wiki/Q1526055","https://g.co/kg/m/0gl7w"]},"Reverse proxy",{"@type":"Thing","name":"Reverse proxy","sameAs":["https://en.wikipedia.org/wiki/Reverse_proxy","https://www.wikidata.org/wiki/Q1192309","https://g.co/kg/m/05g1fc"]},"Tor",{"@type":"Thing","name":"Tor","sameAs":["https://en.wikipedia.org/wiki/Tor_(network)","https://www.wikidata.org/wiki/Q224457","https://g.co/kg/m/04n38z"]},"HTTP",{"@type":"Thing","name":"HTTP","sameAs":["https://en.wikipedia.org/wiki/HTTP","https://www.wikidata.org/wiki/Q8777","https://g.co/kg/m/03hgt"]},"Header",{"@type":"Thing","name":"Header","sameAs":["https://en.wikipedia.org/wiki/Header_(computing)","https://www.wikidata.org/wiki/Q747318","https://g.co/kg/m/02dnj_"]}],"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#article","isPartOf":{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#webpage"},"publisher":{"@id":"https://www.richeyweb.com/#organization"},"keywords":"gtag examples","articleSection":"Google Tag Manager","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick","hasPart":[{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-which-server-again_2_1"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-configure-nginx-to-send-the-header_2_2"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-open-your-nginx-site-config_3_3"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-add-the-header-directive_3_4"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-test-your-config_3_5"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-apache2-configuration-isnt-much-different_2_6"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-apache-site-level-config-or-vhost_3_7"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-add-the-header-directive_3_8"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-if-you-are-using-varnish_2_9"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-inside-your-vcl_3_10"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-now-every-response-carries-the-header_2_11"},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-how-this-differs-from-the-default-method_2_12"}]},{"@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex","@type":"ItemList","name":"Google Tag Manager server-timing Trick","numberOfItems":12,"itemListElement":[{"@type":"ListItem","position":1,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-which-server-again_2_1","name":"Which Server Again?","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-which-server-again_2_1"}},{"@type":"ListItem","position":2,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-configure-nginx-to-send-the-header_2_2","name":"Configure Nginx to Send the Header","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-configure-nginx-to-send-the-header_2_2"}},{"@type":"ListItem","position":3,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-open-your-nginx-site-config_3_3","name":"Open Your Nginx Site Config:","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-open-your-nginx-site-config_3_3"}},{"@type":"ListItem","position":4,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-add-the-header-directive_3_4","name":"Add the Header Directive:","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-add-the-header-directive_3_4"}},{"@type":"ListItem","position":5,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-test-your-config_3_5","name":"Test Your Config:","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-test-your-config_3_5"}},{"@type":"ListItem","position":6,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-apache2-configuration-isnt-much-different_2_6","name":"Apache2 Configuration Isn't Much Different","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-apache2-configuration-isnt-much-different_2_6"}},{"@type":"ListItem","position":7,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-apache-site-level-config-or-vhost_3_7","name":"Apache site-level config or vhost","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-apache-site-level-config-or-vhost_3_7"}},{"@type":"ListItem","position":8,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-add-the-header-directive_3_8","name":"Add the Header Directive:","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-add-the-header-directive_3_8"}},{"@type":"ListItem","position":9,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-if-you-are-using-varnish_2_9","name":"If You Are Using Varnish","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-if-you-are-using-varnish_2_9"}},{"@type":"ListItem","position":10,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-inside-your-vcl_3_10","name":"Inside your VCL:","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-inside-your-vcl_3_10"}},{"@type":"ListItem","position":11,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-now-every-response-carries-the-header_2_11","name":"Now Every Response Carries The Header","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-now-every-response-carries-the-header_2_11"}},{"@type":"ListItem","position":12,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#articleindex-toc-how-this-differs-from-the-default-method_2_12","name":"How This Differs From the Default Method","url":"https://www.richeyweb.com/software/examples/google-tag-manager/google-tag-manager-server-timing-trick#toc-how-this-differs-from-the-default-method_2_12"}}]}]}
```
