• Resolved agreda

    (@agreda)


    Hi @specialk – Thanks for the great work and support!

    Is there documentation for how to specifically use the “Custom GA Code” field?

    I need to add the following to our gtag code on various sites:

    gtag('config', 'GA_MEASUREMENT_ID', {
      'linker': {
        'domains': ['domain1.com', 'domain2.org', 'sub.domain1.com', 'sub.domain2.com', 'sub.domain3.com']
      }
    });

    Following these instructions for: Bi-directional cross-domain measurement

    When I added the entire snippet, however, our GA Views stopped tracking all data. I clearly broke the gtag. What part of the code needs to be entered where?

    I did find this old related support topic you resolved, but it references the old analytics.js:
    AllowLinker for cross domain tracking?

    Any guidance is greatly appreciated. Thanks!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter agreda

    (@agreda)

    Based on that old topic. I’m wondering if the solution is to…

    Add this to “Custom Tracker Objects”:
    {'allowLinker': true}

    And add this to “Custom GA Code”:
    ga('linker:domains', ['domain1.com', 'domain2.org', 'sub.domain1.com', 'sub.domain2.com', 'sub.domain3.com']);

    Am I anywhere close?

    • This reply was modified 3 years, 11 months ago by agreda. Reason: comment code
    Plugin Author Jeff Starr

    (@specialk)

    Hi @agreda, glad to help. Should be able to just add the following code to the plugin setting, “Custom Tracker Objects”:

    {'linker':{'domains':['example-pet-store.com']}}

    Save changes and done. Make sure to check the tracking code by viewing the source of your web pages.

    • This reply was modified 3 years, 11 months ago by Jeff Starr.
    Thread Starter agreda

    (@agreda)

    Wow. Thanks for the prompt response!

    I’ll check back soon if I encounter any issues, or to mark as resolved.

    Thread Starter agreda

    (@agreda)

    Works like a charm, thanks again!

    Plugin Author Jeff Starr

    (@specialk)

    You are very welcome, @agreda!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Configure gtag for Cross-Domain Tracking’ is closed to new replies.