1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained Local Google Analytics (with CDN support) 1.0.0

Fix that damn “Leverage Browser Caching” warning

  1. TRGCommunity

    TRGCommunity Active Member

    TRGCommunity submitted a new resource:

    Local Google Analytics (with CDN support) - Fix that damn “Leverage Browser Caching” warning

    Read more about this resource...
    younes and Glockie like this.
  2. tajhay

    tajhay Well-Known Member

    Does the addon do anything besides removing the warning and puting the google analytics template in your local path? i.e. Does it make the site faster?
  3. TRGCommunity

    TRGCommunity Active Member

    tajhay likes this.
  4. Mouth

    Mouth Well-Known Member

    Great resource. Better for site load times to have GA being delivered by own CDN.
    TRGCommunity likes this.
  5. RoldanLT

    RoldanLT Well-Known Member

    Feature request:
    I think much better to grab the analytics.js everyday not once a month.
    Then append versioning/cache buster on the js file like:
    Change the cache buster string once updated js file is downloaded.
  6. Fred.

    Fred. Well-Known Member

    Does this work together with Digitalpoint Better Analytics?
  7. Mouth

    Mouth Well-Known Member

    Heads-up for others and @TRGCommunity that this no longer works and stops analytics loading as of XF 1.5.13, due to changes in the google_analytics template to force https.
    The fix is to enable developer mode and adjust Local Google Analytics modification's of the google_analytics template. Change required:

    <xen:if is="{$xenOptions.TRG_localga_enable}">{$javaScriptSource}/trg/local_ga/analytics.js<xen:else />https://www.google-analytics.com/analytics.js</xen:if>
    Without this fix, the HTML output for calling analytics locally is broken. Eg...
    eva2000 likes this.

Share This Page