• Resolved jimjawn

    (@jimjawn)


    Love, love, love this plugin! I’ve learned so much from using it I can’t thank you enough.

    Right now, I’m working on optimizing my site speed and I noticed that you have a variable for ga_speed_samplerate set to 1. My question is two fold. First, I’m assuming that’s setting the speed sample rate to 1% am I correct? Second, if I wanted to change that variable to say 25 or 50 or 100, what is the correct way of setting this so it’s properly reflected site wide and the analytics code.

    Thanks!!!!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    1% is the default value.

    You can adjust that by simply increasing the value and saving the settings. The plugin will handle the rest.

    When adjusting the value, to avoid capping, see these limits: https://developers.google.com/analytics/devguides/collection/analyticsjs/user-timings#sampling_considerations.

    Based on your average pageviews, set the percent accordingly.

    Thread Starter jimjawn

    (@jimjawn)

    Wow that was fast! Thanks! What file should I make the adjustments to? The variable shows up in a lot of places and I’m sort of new to PHP. Thaks so much!

    From your admin area, go to Google Analytics -> Tracking Code -> Advanced Settings screen. You’ll find tge option there.

    PS: never edit plugin’s PHP files, the changes will get overwritten by updates.

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

The topic ‘ga_speed_samplerate’ is closed to new replies.