user1558782
user1558782

Reputation: 123

migrating from analytics.js to gtag.js

How would you migrate a ga create command that uses the allowLinker and siteSpeedSampleRate parameters to the gtag config command?

ga('create' 'UA-1234567-25', 'auto', {'allowLinker': true,'siteSpeedSampleRate': 100 });

Upvotes: 5

Views: 1154

Answers (1)

XTOTHEL
XTOTHEL

Reputation: 5198

"linker" will allow you to accept incoming cross domain. "site_speed_sample_rate" will allow you to adjust the site speed sampling rate.

  gtag('config', 'UA-1234567-25', 
    {
      'linker': {'accept_incoming': true},
      'site_speed_sample_rate': 100
    });

Upvotes: 6

Related Questions